Posted: 12 Jul 2003 21:52
This won't be easy. The problem is that the chunk is variable size, and when loading a game, it would need to be loaded in memory and remembered. That last part is difficult... especially because it's got a variable size. Everything else in these blocks is fixed size, though the size may change from one patch version to the next.orudge wrote:could someone (Josef/Osker) create a patch to load extra chunk with ID 03 (can be changed obviously if wanted), store this in memory somewhere, and then save it back again?
If you only need a few bytes instead of a whole history, it would be easier to store it in the unused bytes of the landscape3 array, where TTDPatch also stores some data. These are the bytes from 24cba..24db9. TTDPatch currently uses 24cba..24cca, so I could reserve 24ccb plus a couple more for you if you like. This would work with non-patch games as well.