群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Save-game editing
”
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{version|Timeless}} 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! == Location (Steam Version) == {| class="wikitable" |- ! OS !! Location |- | Windows auto saves (including ironman saves) || <code>%USERPROFILE%\Documents\Paradox Interactive\Stellaris\save games\$EMPIRENAME+ID\</code> |- | Windows custom saves || <code>\Steam\userdata\%STEAMUSERID%\281990\remote\save games\$EMPIRENAME+ID\</code> |- | Mac || <code>$HOME/Documents/Paradox Interactive/Stellaris/save games/$EMPIRENAME+ID</code> |- | Linux || <code>$HOME/.local/share/Paradox Interactive/Stellaris/save games/$EMPIRENAME+ID</code> (<code>$XDG_DATA_HOME</code> is ignored!) |- | Linux (newer versions) || <code>$STEAMFOLDER/userdata/$STEAMID/281990/remote/save games/$EMPIRENAME+ID</code> |} Cloud saves can be edited. Here are the cloud saves locations: {| class="wikitable" |- ! OS !! Location |- | Mac || ~/Library/Application Support/Steam/userdata/<YOUR STEAM ID>/281990/remote/save games/ |} == Location (Paradox Launcher Version) == {| class="wikitable" |- ! OS !! Location |- | Windows || <code>%USERPROFILE%\Documents\Paradox Interactive\Stellaris Plaza\save games\$EMPIRENAME+ID\</code> |- | Mac || <code>???</code> |- | Linux || <code>$HOME/.local/share/Paradox Interactive/Stellaris Plaza/save games/$EMPIRENAME+ID</code> (<code>$XDG_DATA_HOME</code> is ignored!) |} == Location (GamePass Launcher Version) == {| class="wikitable" |- ! OS !! Location |- | Windows || <code>%USERPROFILE%\Documents\Paradox Interactive\Stellaris GamePass\save games\$EMPIRENAME+ID\</code> |} == Format == Each .sav file is a ZIP archive containing two text files: <code>gamestate</code> and <code>meta</code>. 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 [[wp:Newline|newlines]]. Windows Notepad will not save the newlines correctly, so another editor such as [[wp:Notepad++|Notepad++]] must be used. * The files within the ZIP archive must have correct timestamps. See OS-specific instructions below. * When zipping the files, '''you should select the two text files and create a new .sav archive from those files'''. If you try to zip the folder containing the edited files, you will get a broken save error when trying to load the game. Move the new .sav into the main save folder === Compression on Windows === [[File:7zip_options.png|thumb|Options for 7-Zip]] Use [[wp:7-Zip|7-Zip]] with the following options: * Archive format: zip * Compression speed: Fast * Compression method: Deflate * Do not include NTFS timestamps (<code>tc=off</code> parameters 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. By using the edit function in the 7zip file manager (the editor needs to be chosen by going to tools then options then editor and putting a link to editor of chice) the file can be edited and then once the file is closed 7zip will automatically re-compress the file to ensure no issues === Compression on Linux or macOS === Use Apple's '''Archive Utility''' app to unzip the .sav game file. To do that: [[File:Choose Application dialog.png|thumb|right|Navigate and select Archive Utility app]] 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 [http://pastebin.com/nyX1B4rH this Python script] from the directory containing the gamestate and meta files. An easier way to compress the saves on Mac is to highlight the two files, left click and click "Compress 2 Items". A .zip file named Archive.zip will appear: left click on this and click "Get Info". Under the "Name & Extension" section, click the box containing Archive.sav and change '''.zip''' to '''.sav'''. You will be prompted for confirmation on changing the extension. == Save Attributes == === ''gamestate'' File Details === Nearly any information about a given playthrough can be modified via editing the ''gamestate'' file. This includes current energy, mineral, food and unity stores, as well as planet tiles and pop traits. The following is an example of a populated tile on a Fallen Empire's planet, containing a dark matter power plant. <code>0={ active=yes pop=127 resources={ minerals={1.000 1.000 0.000} } building={ type="building_dark_matter_power_plant" modifier=yes } deposit="d_mineral_deposit" )</code> {{ModdingNavbox}} [[Category:模组制作]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Clear
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录