Author Topic: JSON pilots  (Read 355 times)

0 Members and 1 Guest are viewing this topic.

Offline m!m

  • 211
Here is a small notification for the people not following the GitHub commit log (which are probably most users of FSO :nervous:).

The JSON pilot feature has just been merged which converts the previous .plr files from a custom binary format to the standardized JSON format. At the moment, only the main pilot files are stored as JSON but at some point the campaign files will also be converted to JSON.

FSO will automatically convert the binary pilots to JSON on your first launch and will then only use the JSON pilots. That means that the "old" pilots will not be updated anymore so if you switch to an older build you will not see the changes that were made to the pilot with a build which uses JSON pilots.

That is all, have a nice day.

 

Offline Spoon

  • 212
  • ♪ ♬ ヾ(´︶`♡)ノ ♬ 淫画
Please educate me on the reasons for this switch to JSON. What does it do, why was it done, what are the pros (or possible cons)? For I am ignorant and would like to know more.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Nightmare

  • 210
Does that mean that pilot files spontaneously corrupting is less likely now?

 
Well, JSON is just plain text, so if you pilot does get borked, you could theoretically fix it using notepad or something.

 

Offline m!m

  • 211
The given reasons are the most compelling ones. Since JSON is plain-text it is much easier to inspect (and change) the pilots files in case they got corrupted. There are still some bit-flags in there which make it harder to manipulate them but at least now you don't have to look up the byte-offset of the individual options in the FSO code.

 

Offline Nightmare

  • 210
Ah, that's pretty neat. I had a lot of trouble with corrupted pilot files; at one point pressing 1 didn't work for me anymore, and another time the game crashed while playing BP and after several restarts my pilot file had grown to over 200MB for some reason.

 

Offline wookieejedi

  • 28
  • Intensify Forward Firepower
Great news! I've been looking forward to that merge for a long time!

 
My old pilot files didn't get converted. I had to create a brand new pilot (again). Is there any way to convert the pilot files even after the first start?

 

Offline m!m

  • 211
I had some issues with the conversion code when using a mod. Try running retail FSO once, that should convert your pilots.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Anims: 420, Cutscenes: 10, Mainhalls: 7, Logos: 52
    • Steam
    • Twitter
    • Mix-Hai Productions
I had some issues with the conversion code when using a mod. Try running retail FSO once, that should convert your pilots.

That's kind of a non-minor issue. Is there a way we can help get that fixed to make the transition smoother?
Cutscene Upgrade Project - Mainhall Remakes - MixaelANITools - Between the Ashes - MjnMixael's Render Boutique - Mix-Hai Productions
Youtube Channel - P3D Model Box - Photobucket Albums - Model Releases - Downloads
Between the Ashes is looking for committed testers, PM me for details.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!

 

Offline m!m

  • 211
I will fix that as soon as possible. I don't plan on leaving it as it is :p

 
 
Great to head @m!m. I'll try as soon as it's merged. Running retail FS2 also didn't convert my "old" pilots.

 

Offline m!m

  • 211
Not the "Retail FS2" executable, I meant FSO without mods :p

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker
    • My old squad sub-domain
This means I can tweak pilots in codepad or notepad++?


:3

 

Offline Nightmare

  • 210
It's never been so easy to become a triple ace in a couple moments. :D

 
Not the "Retail FS2" executable, I meant FSO without mods :p

I know  ;)
I started FS2 SCP without mods, with MVP and with my own mod, but the only pilot I saw, was my newly created one. But now I started it without mods again and the pilots were converted... strange.

 

Offline m!m

  • 211
The fix has been merged so if you are compiling the builds from source you can do a pull and compile the newest version and it should start working in all circumstances.