player.plr renamed player.JSON

Discussion in 'Technical Archives' started by MarcG, Jun 26, 2014.

  1. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    This may be a feature or something but this has happened as per the thread title, also when copying in my controller.ini from Build660 this also gets renamed to controller.JSON


    Feature or is something wrong?
     
  2. DocJones

    DocJones Registered

    Joined:
    Jan 26, 2011
    Messages:
    403
    Likes Received:
    5
    Feature - take a look inside one of the files. Interesting find though.
     
  3. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    ahh ok thanks mate, yeah I'm going through the "plr" now and changing what I need too. Already finding RF2 crashes but figured out I need to add a few "" and , , here and there :p
     
  4. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Yeah.. I'm surprised they forgot to put this in the release notes. Controller.ini is in json now too.
     
  5. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Are you saying the default plr json has some syntax errors that you needed to fix? If so, it would probably be worth noting what exactly you changed.
     
  6. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    ok a little help, I'm changing this line:

    "Repeat Shifts":0,

    ...and by the power of looking at the other lines I change it to

    "Repeat Shifts":4,

    this works just fine but...

    "Repeat Shifts":4"MG change this next build",

    my now quoted area does not save when I load and exit RF2, the 4 remains but not my text afterwards. Looking at the other lines I cant see what I'm doing wrong :confused: I do this to remind me of what lines to change for every new Build (as I always start with a fresh "plr")
     
  7. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    no just changing what plr entries I always change, see above :)
     
  8. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Your comment is going to get wiped out because it isn't propper JSON syntax. You may be able to add a comment of your own in place of ISI comment. I haven't actually tried this though.

    So for example:
    Code:
    "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",
    
    Could be changed to:
    Code:
    "Repeat Shifts":0,
    "Repeat Shifts#":"MG change this next build",
    
    Although the game may wipe out the value in Repeat Shifts# everytime you load. I also haven't tried adding your own values to see if they will survive a reload. For example:
    Code:
    "Repeat Shifts MG#":"Change this next build",
    
    Looks like I need to write an editor for the plr and controller files or else people are going to have lots of problems editing it without breaking the syntax.
     
  9. Joe Campana

    Joe Campana Registered

    Joined:
    Jan 19, 2012
    Messages:
    129
    Likes Received:
    2
    or they could just use one of the countless free editors available everywhere, including online editors like this: http://jsoneditoronline.org/
     
  10. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    aahh I did'nt see that the comments are repeated (pun!) itself below! Obviously the now Old PLR only had one entry and you added text with // after it it!

    Thanks for pointing me in the right direction, works now :)
     
  11. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    notepad works fine ;)
     
  12. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    Marc, here it looks like you say rF2 won't work at all if you don't change the .plr or Json file?
     
  13. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    you need to read the whole thread, I was doing it wrong ;)
     
  14. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    But; do we or do we not change the file in order to get the game started in the first place?
    I can't really make that up anymore.
     
  15. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    not sure I follow, but no you dont have to change anything in the player.JSON file at all if you dont want too.
     
  16. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Interesting, a month ago or so I actually tried opening the jsons with several online editors (including the one you just linked to) and they failed due to syntax problems. Maybe there were some changes since the last time I tried. I also tried parsing them with MS's dotnet libs without success. This was also a while back. I will try it again because a tool for converting old controller.ini's to controller.json's would be handy.
     
  17. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Yeah... just don't put a " in you comment without escaping it or accidentally remove a comma. :p
     
  18. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    No... the default json files will load fine. He was trying to alter a value and add a comment to himself and broke the file. This isn't a bug... just an error he made when editing the file.
     
  19. MJP

    MJP Registered

    Joined:
    Oct 5, 2010
    Messages:
    988
    Likes Received:
    21
    Just delete the JSON files, copy over your controller/multiplayer INIs and PLR and launch the game then exit. The game will convert your old files to the new JSON format and made backups of the older files.
     
  20. pay2021

    pay2021 Registered

    Joined:
    Jul 7, 2012
    Messages:
    792
    Likes Received:
    4
    JSON, like AC files!!
     

Share This Page