Page 1 of 1

Saved games format

Posted: Mon Jul 27, 2015 10:37 pm
by friedrich2
My brother and I are playing a game by email. We had both been running 1.4.0 and discovered that there was an update to 1.4.5 available, so we both got it at about the same time but I got it after I'd finished my impulse. I was playing Axis and had finished my impulse safely with no overstacking. When I sent the file to him, he got a message that one of my hexes in Belgium was overstacked: I had four land units, which is impossible of course. I figured I could solve the problem later and reintroduce the unit, so I just had him delete one of the smaller offending units.

Well, I did a lot of research in the saved game file, and I've learned a lot. I'm wondering if it would be kosher to present some or all of my findings to this forum or if I should just keep it to myself and my brother. Additionally, I'm wondering if anyone there could fill in the blanks, or if there's other documentation already developed. Thanks.

RE: Saved games format

Posted: Thu Aug 20, 2015 2:16 am
by Shannon V. OKeets
ORIGINAL: friedrich2

My brother and I are playing a game by email. We had both been running 1.4.0 and discovered that there was an update to 1.4.5 available, so we both got it at about the same time but I got it after I'd finished my impulse. I was playing Axis and had finished my impulse safely with no overstacking. When I sent the file to him, he got a message that one of my hexes in Belgium was overstacked: I had four land units, which is impossible of course. I figured I could solve the problem later and reintroduce the unit, so I just had him delete one of the smaller offending units.

Well, I did a lot of research in the saved game file, and I've learned a lot. I'm wondering if it would be kosher to present some or all of my findings to this forum or if I should just keep it to myself and my brother. Additionally, I'm wondering if anyone there could fill in the blanks, or if there's other documentation already developed. Thanks.
There is nothing stopping you from posting your findings about the GAM file structure. Note that many aspects of that format are dynamic. FOr example, if you have the Setup form visible, then information about that form is in the file, otherwise there is merely a one line placeholder. There are dozens of other similar situations (e.g., combat resolution).

I also modify the GAM format from time to time to accommodate additional information that needs to be stored. In those cases, the code has branching logic based on the version number of the game when it was saved.