Editing player.JSON

Discussion in 'General Discussion' started by redapg, Sep 22, 2015.

  1. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    After i've added a small Script, to edit the Knockout Qualifying Rules, to my online Tools for rF2, i thought it could be helpful to have something similar for the player.JSON, because many settings can't be done in the game UI.

    If that is interesting for you, please give some feedback and suggestions.

    The Link to the Tool is in my Signature

    Script is updated to match Build 1126

    You have 3 Options:
    - edit all Values, except some that make no sense to edit them manually- edit Values for AI only
    - edit Values for Multiplayer only
     
    Last edited: Jun 23, 2023
  2. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    Editing the player.JSON is the Devil! :D

    I will say first off as per the above line, be very careful when editing the player.JSON, it is a very important part of the RF2 process and slight changes can affect your game massively. As ISI recently pointed out, having a fresh player.JSON file has actually improved peoples experiences of the game especially in the graphics department, so personally I'd leave that area well alone and just let the in game options be the main factor.

    Having said that, here's my list of things that I change every time a new Build is released and could be helpful in your tool:

    I have this set to 4 as I often double-shift at times and it's annoying:
    "Repeat Shifts":0,
    "Repeat Shifts#":"0 = no repeat shift detection, 1 = detect and eliminate accidental repeat shifts within 100ms, 2 = 150ms, 3 = 200ms, 4 = 250ms, 5 = prevent shifting again before previous shift is completed",


    I have this set to 2 as I don't like the Message pop-up:
    "One Lap To Go Warning":0,
    "One Lap To Go Warning#":"Race only: 0=none, 1=message, 2=white flag, 3=both, Race+Qual: add 4. Feature not implemented for timed races or lapped vehicles.",


    I have this set to false as I have two screens so the game can continue running whilst I'm doing something else (also helpful with Alt+Tab):
    "Pause If Focus Lost":true,
    "Pause If Focus Lost#":"whether to automatically pause if window loses focus (single-player only)",


    I have a few others I alter but those 3 are probably the most useful to others.
     
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Thank you for your feedback, much appreciated. :)

    Script is updated with your 3 suggestions.
     
  4. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Updated first Post.
     
  5. Hazi

    Hazi Registered

    Joined:
    Jan 15, 2012
    Messages:
    917
    Likes Received:
    146
    THX
     
  6. Emery

    Emery Registered

    Joined:
    Oct 24, 2010
    Messages:
    3,035
    Likes Received:
    1,654
    Thanks, redapg, glad to see someone take this on!

    I thought I knew what most of the things do, but I'm not familiar with Low Speed Info... is that the message center?
     
  7. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    To be honest, i just took that info from the changelog of the Build 1008. :)

    There is written:
    Added a tiny bit of configurability to the new 'Low Speed Info' message box. PLR file value "LSI Top" lets you set its vertical position or disable it altogether.

    And i added it to my Script because i thought it would make sense to have it editable there.
     
  8. rhamm

    rhamm Registered

    Joined:
    Oct 8, 2010
    Messages:
    290
    Likes Received:
    22
    Virtual mirror settings would be nice too
     
  9. Emery

    Emery Registered

    Joined:
    Oct 24, 2010
    Messages:
    3,035
    Likes Received:
    1,654
    I've got a button mapped for those, cycles through them... can't remember the standard keyboard mapping.
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    That can be done in game. Default key is the Number "3".
    Or do you mean something else?
     
  11. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Added 3 more options:

    [​IMG]
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Added all Options (except 8 for the sounds, which is explained in the first post)

    If i counted correct, there are 496 player.JSON-entries and 488 are now shown in the Script.
    The Script allows to edit 276 and the others are just shown, because they are changeable in the games UI.

    Use it at your own risk, report bugs here and always make a backup. ;)
     
  13. Gijs van Elderen

    Gijs van Elderen Registered

    Joined:
    May 1, 2014
    Messages:
    1,393
    Likes Received:
    469
    Maybe a "create backup button?" :)

    And a "load backup" button: with a popup window "save current as backup?"
    a "create new" button : with the same popup window to create a backup from current setting.

    Maybe 2 tabs: single player and (multiplayer) server settings.

    Thanx for the tool. It will make testing certain settings much more easy.
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Thank you for the suggestions.

    Done. The button is under the "Save Values" Button.

    With the "create backup" button you get a backup of the uploaded file.
    I don't understand the need of this.

    Do you know exactly which player.JSON entries (except of the MULTI entries) have effect for multiplayer?
    I didn't play around with it seriously yet.
    And instead of splitting it into 2 tabs, i could add an option like "i just want to edit dedicated-server settings", which displays only the for that needed values then.
     
    Last edited by a moderator: Nov 15, 2015
  15. SpeedLab

    SpeedLab Registered

    Joined:
    Nov 25, 2012
    Messages:
    86
    Likes Received:
    0
    This will be very very useful to test as mentioned...thanks so much for this!!!
     
  16. Gijs van Elderen

    Gijs van Elderen Registered

    Joined:
    May 1, 2014
    Messages:
    1,393
    Likes Received:
    469
    Ah, They are all there. :)
    These are settings i sometimes use. These can't be adjusted in the dedicated.exe or for offline in single player.

    "MULTI BlueFlags":1,
    "MULTI Num Qual Sessions":1,
    "MULTI Num Race Sessions":1,
    "MULTI ParcFerme":0,
    "MULTI Unsportsmanlike Sensitivity":1.49765,
    "MULTI Reconnaissance":0,
    "Recon Pit Open":90,
    "Recon Pit Closed":90,

    At first i thought it was a tool(.exe) i could use to load settings from a backup folder and save them to my player.json and back to my backup folder.
    But I've a hotlink on my desktop now. :cool:

    Just a little thingy i've noticed on your editplayerjson.php

    Widescreen Overlays : " true/false" : If true, trees respond to ambient wind, crowds have some random motion ==> description :confused:
     
  17. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Do you know if the "MULTI Reconnaissance" entry is an on/off (0/1) option or is it meant to set a number of possible laps?

    Is corrected, there is no description in the JSON for that value, i've entered a wrong line accidentally.
     
  18. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,374
    Likes Received:
    31
    chris thx for the GUI very good idea!
    Added to my favorits :)
     
  19. Gijs van Elderen

    Gijs van Elderen Registered

    Joined:
    May 1, 2014
    Messages:
    1,393
    Likes Received:
    469
    The recon is 1=on and 0=off.

    The recon lap is driving from your pit/garage to your starting position. It's a nice alternative for the normal formation lap with a standing start. It's something you'll need to do in real live too and it can be chaotic sometimes.
    Unfortunatly it doesn't work well with the AI. They stay in the garage and spawn to grid just before countdown.

    It's time based: Recon time pits open + recon time pit closed. (In seconds)
     
  20. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Thanks for the info about "MULTI Reconnaissance".

    The new website for the player.JSON-Multiplayer-Options is online now.
    I have included all options that i guess can be helpful for the Multiplayer.

    Suggestions are welcome.
    And please report bugs.

    Thank you Alex. :)
     

Share This Page