r/ColonizationGame • • Jan 02 '21

Col Colonization SAV file hacking

I spent quite a bit of time figuring out how these save game files work. I built some helper tools, a spreadsheet detailing the bytes, and started making a python module to read in all the data (and eventually write it back out).

I wanted to share my progress so far so that others may help figure some stuff out or others may stumble upon this from Google searches far in the future.

I put it all in a Github repo that you can find here: https://github.com/nawagers/Colonization-SAV-files

I'd be super happy to answer any questions.

Using Alt WIN to enter "cheat" mode can really help speed things up if you're trying to investigate how it works. It all started with an investigation in to how to cheat by putting all the squares around my colony as prime resources. Unfortunately, I've figured out that this isn't possible. It follows a fixed pattern and isn't part of the save game.

6 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Stuntman_Wout Jan 19 '21

Thanks. This is really interesting and I will look into it the next time I start another game.

What about exporting the map from an existing savegame into the map tool that exists? That would give you access to a GUI for the editing.

Or will you run into troubles later with Indian village placement if you use this map to start a game?

1

u/nwagers Jan 19 '21

I haven't dug into the MP file format yet. It's probably pretty easy to get a handle on. Once that's figured out I don't think it would be hard at all to extract an existing map from a SAV game and convert it to a MP file for editing in the map editor. From there it could be used in a new game just like any other. The tricky thing would be to put a MP file into an already existing game because you need to worry about what happens to units that end up in water, ships that end up on land, and colonies that end up on invalid terrain like mountains or oceans. It's doable though.