If we want to be able to load scenarios - like the LOTR scenario - that have been generated with the Activision 1.1 patch, we have to support the changed file format. From the change list of the Activision patch we get
So, open GameFile.cpp, add a new file type 66, and try to open the LOTR scenario. Instead of directly returning to the selection screen, it really starts to load now.
Getting some Assert popups, applying some modifications, getting lots of Assert popups
, thinking I should have started with something simpler than LOTR
, more debugging
, getting even more popups
, more debugging, more popups
, [ ... ] , but finally getting something recognisable on the display
with only about 20 popups left to Ignore.
In the end, the difference between the file formats appears to be an inserted byte in the city data. Reading and writing it (up to now I only encountered 0 as value) is no problem, but I don't have a clue what it is supposed to do. For now, I have added a new member variable and christened it m_unknown_from_patch, but I do not consider this ripe for inclusion in the altered source file thread yet. If you want to check it out, see for the code changes, and LOTRdata.zip for some LOTR data file changes.
Any suggestions on a name and possible meaning of the new data will be appreciated!
[Edit: moved the code to the altered source code thread after testing.]
* Incremented save file version to force string reload for old games.
Getting some Assert popups, applying some modifications, getting lots of Assert popups






In the end, the difference between the file formats appears to be an inserted byte in the city data. Reading and writing it (up to now I only encountered 0 as value) is no problem, but I don't have a clue what it is supposed to do. For now, I have added a new member variable and christened it m_unknown_from_patch, but I do not consider this ripe for inclusion in the altered source file thread yet. If you want to check it out, see for the code changes, and LOTRdata.zip for some LOTR data file changes.
Any suggestions on a name and possible meaning of the new data will be appreciated!
[Edit: moved the code to the altered source code thread after testing.]
Comment