Learn how to view and edit your save.
Locating your save file
Steam\steamapps\common\CSSecretSanta\secret_santa.dat
Opening and saving your save file
You should quit the game before doing this. Any changes you make will not apply if you don’t restart the game.
While the .dat extension might lead some to believe the file contains binary data, it’s actually plaintext. However, if you try opening it in a program like Notepad, you’ll be greeted by a jumble of letters and numbers. Something like this:
eyJtX1N0YWdlSW5mbyI6W3sibV9OYW1lIjoiU1RBR0VfTkFNRV9TQU5UQVNfSE9VU0UiLCJtX0lzD... ...you get the point.
That’s because the save file is Base64 encoded. You’ll need to use a tool that can decode Base64 to transform it into something usable. You can easily find a decoder by typing something like ‘base64 decode’ into your search engine of choice.
After decoding it, you will end up with something more readable, but pretty cramped. Something like this:
…you get the point.
This is a minified JSON file. While you could start reading it and editing as it is, it would be more convenient if you prettified/formatted it first. You can also search for a tool that does this. The end result is the exact same JSON file, but presented in a much more appealing way. Something like this:
{ "m_StageInfo": [ { "m_Name": "STAGE_NAME_SANTAS_HOUSE", "m_IsComplete": true, "m_Time": "0:16", "m_Bonus": "NONE", "m_Index": 2 }, { "m_Name": "STAGE_NAME_MALCOS_HOUSE", "m_IsComplete": true, "m_Time": "0:17", "m_Bonus": "NONE", "m_Index": 17 }, ...etc etc.
At this point, you can start reading the save file’s content and make guesses as to what’s what. You can start modifying it as well, if you wish. Read the next section of the guide for a description of each part of the save file.
If you did any modifications to your save, you will now need to apply all the steps to opening the file in reverse in order to save it and see it applied in-game. This consists of:
- Minifying the JSON file. You can also search for a tool that does this. I don’t think it’s strictly necessary to do this, but I recommend doing it anyways.
- Encoding it to Base64. Usually, any tool that can decode Base64 will also have a complimentary utility to encode to Base64.
- Replacing the contents of secret_santa.dat with the Base64 encoded text and saving it.
Afterwards, you should be able to start the game up and select ‘CONTINUE’ to load up the save along any changes you’ve made!
Save file contents
For example, Jenka’s House is number 16.
To be honest, I don’t know about this one. If you think you do, leave a comment about it!
The following are found for each stage listed in m_StageInfo.
The internal name for the stage. Can be one of the following:
- STAGE_NAME_SANTAS_HOUSE
- STAGE_NAME_MALCOS_HOUSE
- STAGE_NAME_CHAKOS_HOUSE
- STAGE_NAME_STRANGE_HOUSE
- STAGE_NAME_DUCK_HOUSE
- STAGE_NAME_CEMETERY_HOUSE
- STAGE_NAME_DANGEROUS_HOUSE
- STAGE_NAME_L_SHAPED_HOUSE
- STAGE_NAME_HI_TECH_HOUSE
- STAGE_NAME_DONUT_HOUSE
- STAGE_NAME_ISLAND_HOUSE
- STAGE_NAME_SNAKE_HOUSE
- STAGE_NAME_HALLWAY_HOUSE
- STAGE_NAME_DARK_HOUSE
- STAGE_NAME_MESSY_HOUSE
- STAGE_NAME_RUNDOWN_HOUSE
- STAGE_NAME_TOP_HEAVY_HOUSE
- STAGE_NAME_TANKER_HOUSE
- STAGE_NAME_CURLYS_HOUSE
Examples: “1:03” or “0:35”.
A number unique to each stage, corresponding to a position on the map, not the order they are played in. The default numbers for each stage are as follows:
Thanks to Pwnage Block for his great guide, all credit to his effort. you can also read the original guide from Steam Community. enjoy the game.