Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: EightDeer on September 14, 2017, 12:01:25 pm

Title: Edit pilot campaign data?
Post by: EightDeer on September 14, 2017, 12:01:25 pm
Is there a way to edit the .csg files? I'm trying to keep a list of kills, medals and promotions from Cardinal Spear all the way to the end of the FS2 campaign, to represent a long, glorious career. I know I'll lose some medals in the FS1 -> FS2 switch, but is keeping the rest possible?
Title: Re: Edit pilot campaign data?
Post by: niffiwan on September 14, 2017, 05:28:22 pm
You can edit the .csg file, but it's in a custom binary format. So you'd need:

1) a hex editor
2) to read FSO code to understand what the format of the file is
3) to have lots of patience for the trial & error required to edit the file correctly

FSO can write pilot files on json format, however is currently unable to read them back in that format. When this work is completed, editing pilot files will become a whole lot easier.