This article details Stellaris save game format and how to edit them. As a reminder, always make a backup copy of your save file before editing!
|Linux (newer versions)|| |
Cloud saves cannot be edited.
Each .sav file is a ZIP archive containing two text files:
meta. They include all the game state data and the meta-information that is shown on the load game screen.
The game seems to be unusually picky about the format when loading:
- The files within the ZIP archive must use UNIX-style newlines. Windows Notepad will not save the newlines correctly, so another editor such as Notepad++ must be used.
- The files within the ZIP archive must have correct timestamps. See OS-specific instructions below.
Compression on Windows
Use 7-Zip with the following options:
- Archive format: zip
- Compression method: Deflate
- Do not include NTFS timestamps (
tc=offparameters in bottom left of 7-Zip, or use a version equal to 9.12 beta or earlier)
Do not use WinRAR as it messes compressed lines.
Compression on Linux or macOS
Use Apple's Archive Utility app to unzip the .sav game file. To do that:
1. Right-click the .sav file and click Open With > Other... 2. Navigate to: <computer_name>/System/Library/ CoreServices/Applications 3. In the Choose Application dialog change Enable option to All Applications 4. Select the Archive Utility, then click Open
A folder appears with the same name as the .sav file containing the gamestate and meta files. Edit using any text editor able to save in Unix LF format.
Put the save back together using:
zip -X output.sav gamestate meta
The -X flag is needed to "eXclude eXtra file attributes".
Alternatively, run this Python script from the directory containing the gamestate and meta files.