Fix zlib compression for save file writing #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cloudy/Anno2205-Savegame-Modifier:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2
The
setcommand was already implemented, but thesave_filefunction produced corrupted save files.Problem:
zlib.compress()produces a78 9czlib header, but Anno 2205 expects78 da(default compression level header).Solution: Build the zlib stream manually:
78 daheaderTesting:
DifficultyMilitaryInvasions: 1 → 0 ✓DifficultyTraderPrices: 0 → 100 ✓setcommand #2Nice, it works! But Anno seems to require a signature anyways... The savegame does not appear in Anno.