Decoding - Mission Files



This section has information about the construction of the game files and how to edit them. If you know something about a that there is no information available about, please contribute! Provided are documents, descriptions and tools allowing you to edit the files.

The information here is based on The Peasants Rebellion, unless otherwise stated!




Contents: Included in the mission.dat files are all units and buildings that appear in a mission. They also store other information like wares that should be in a storehouse at the start, mission goals etc.
Status: 100%
Contributors: free_sms_km
Documents: free_sms_km html.gif
Lewin chm.gif
Litude txt.gif
Nick txt.gif
Tools: Harold download.png
Lewin download.png
Merchator download.png




Taking a look at one of the mission files seems to point out a complicated structure. Luckily, free_sms_km realized that the structure was actually very simple, but it was using a simple encryption to avoid just anyone to tamper with the files.


What will be explained here is how to break this "encryption". Explaining all the commands would be too much, but feel free to download any of the provided documents if you want more information about it.
So anyways, open up the mission%.dat file that you want to alter in a hex editor. Once you managed to open the file, recalculate it with XOR using the value EF. If you did the process correctly, the program should now start converting the file into readable ASCII. Just save it and open up in your preferred text editor (notepad will do just fine).
You will see a bunch of commands all starting with an "!". Now looking at the command names might explain quite well what it does, but understanding the input values will take more effort, which is where the above documents come in. Read them to find out more about these commands.

Remember to recalculate the file with XOR and the value EF after you finish your edits!