Replies: 5 comments 6 replies
-
I don't understand the file formats that much, but what I know that people who play VegaStrike tend to keep their save files for a long time. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanation. From this, would it be possible to port out the current code that loads the savegame, and once it is in memory put it in the new format? |
Beta Was this translation helpful? Give feedback.
-
No, I agree that a newer and more better save file is needed. I agree that the save file does not have high enough fidelity. |
Beta Was this translation helpful? Give feedback.
-
As noted before, "It's probably better to have the backward compatibility as a python utility. " I will provide said utility as part of the change. |
Beta Was this translation helpful? Give feedback.
-
NOTE: #169 is about changing the saved game file format. I'd like to use some kind of ZIP file - think JARs, ODF, OOXML, etc - where we create a virtual saved game FS inside the ZIP and then store all the information for the saved game together. |
Beta Was this translation helpful? Give feedback.
-
General
Format
For now, this will be a JSON file, in the following format.
[ {"version": 1}, { ship 1}, { ship 2}, { ship 3}, ... ]
General Ship Format
Attributes in bold need to be considered further. See relevant comment in italics.
`{
"Key": "Fighter_Barracks__rlaan",
"Directory": "./installations/Rlaan_Fighter_Barracks",
"Name": "Fighter_Barracks__rlaan",
"Object_Type": "Installation", Is it used?
"Combat_Role": "BASE", Is it used?
"Textual_Description": ""WRITEME"\n", Merge stuff from master parts or remove fields taken from there.
"Hud_image": "rlaan_fighter_barracks-hud.sprite",
"Unit_Scale": "200",
"Mesh": ["rlaan_fighter_barracks.bfxm"}], An array. Simplifies processing in C++ or python. Check if there is support for more than one mesh.
"Mass": "8241769.5",
"Moment_Of_Inertia": "8241769.5", Same as mass. Check if used.
}`
Ship Format Short Form
In order to improve readability, ease of editing and game balance, the following is supported:
TBD
Consider this carefully. You can inherit one ship from another, but will this improve readability?
Components
Component List
"Jump_Drive_Present": "FALSE",
Integrated Components Short Form
{ "Fuel_Capacity": 100} Will take other fields from a template file. e.g. integrated=true.
{ "Armor": 15000}
will expand to
{ "Armor_Front_Top_Right": "15000", "Armor_Front_Top_Left": "15000", "Armor_Front_Bottom_Right": "15000", "Armor_Front_Bottom_Left": "15000", "Armor_Back_Top_Right": "15000", "Armor_Back_Top_Left": "15000", "Armor_Back_Bottom_Right": "15000", "Armor_Back_Bottom_Left": "15000"}
Mounts TBD
Replace
"{Zhuangzong;40;;special-missile;0;0;.28;;;0;0;1;0;1;0;1;1}"
with"Mounts": [ { _TBD_ } ]
Docks TBD
Replace
"Dock": "{10;-2.99;-0.01;0.0;0.57;0}{20;-11.96;-0.04;0.0;0.57;0}"
with"Docks": [ { _TBD_ } ]
Cargo TBD
Replace
""Cargo_Import": "{Consumer_and_Commercial_Goods/Domestic;.9;.2;;2}{Consumer_and_Commercial_Goods/Electronics;1.2;.2;;4}"
with"Cargo": [ { _TBD_ } ]
Beta Was this translation helpful? Give feedback.
All reactions