Binary save game layout
Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design
Re: Binary save game layout
thanks to PanzerTum and this topic - was able to "refuel" the forgotten plane, instead of re-starting scenario or loosing experienced unit.
Re: Binary save game layout
I did that myself this way once. That was before I found the normal way of doing that:
https://www.slitherine.com/forum/viewtopic.php?t=25990
Control alt shift c and type fuel followed by a number not higher than the max fuel for that unit...
Re: Binary save game layout
Deployed units pretty much sussed out.
Sometimes the unit list seems a little corrupted and includes non-deployed units as well so had to build in a few extra checks.
A unit has 3 unit types, a base unit type, a switch unit type and a transport type.
Also included map coordinates (can be handy if a unit is in the wrong place at the wrong time..)
Whether unit is Aux or Core, suppression, all type of kills etc etc

Almost ready to start filling the deployed unit array and then I can have a first look at how to create an excel out of it.
Sometimes the unit list seems a little corrupted and includes non-deployed units as well so had to build in a few extra checks.
A unit has 3 unit types, a base unit type, a switch unit type and a transport type.
Also included map coordinates (can be handy if a unit is in the wrong place at the wrong time..)
Whether unit is Aux or Core, suppression, all type of kills etc etc

Almost ready to start filling the deployed unit array and then I can have a first look at how to create an excel out of it.
Re: Binary save game layout
Just succeeded to put the data into an excel for the first time. Still a bit rough in layout and naming..
Not all data is correct yet, Especially negative attack values when units can only return fire.
In the below image all the calcxxx rows are calculated values (oops I forgot experience...) calcsatt is soft attack calchatt hard attack etc.
In total each unit has 92 attributes, including names & image


Question is also on how to proceed. An excel is nice but maybe presentation of the data on a local webpage with a few extra functionalities would be nicer.
Also something I do not really have experience with although it will probably be a Python/Django combo.
Not all data is correct yet, Especially negative attack values when units can only return fire.
In the below image all the calcxxx rows are calculated values (oops I forgot experience...) calcsatt is soft attack calchatt hard attack etc.
In total each unit has 92 attributes, including names & image


Question is also on how to proceed. An excel is nice but maybe presentation of the data on a local webpage with a few extra functionalities would be nicer.
Also something I do not really have experience with although it will probably be a Python/Django combo.
Re: Binary save game layout
thanks a lot for the hint! Keep up the good work!PanzerTum wrote: ↑Sun Jan 08, 2023 10:14 am I did that myself this way once. That was before I found the normal way of doing that:
https://www.slitherine.com/forum/viewtopic.php?t=25990
Control alt shift c and type fuel followed by a number not higher than the max fuel for that unit...
not sure what you want to do with Excel...but from my work experience most people use only 5-10% of excel functions. ...but for large array of calculations i'm afraid there could be engine limitation in excel. i stumbled at something like "excel couldnt calculate all the formulas on the sheet" before and not sure what exactly it was.