Changes

Jump to navigation Jump to search
763 bytes added ,  00:19, 16 March 2019
→‎Edit a save: + XPath plugin, tips
Line 114: Line 114:  
# Install [https://www.sublimetext.com/ Sublime Text] for Linux, Mac, or Windows. (If you already have another text editor which supports XML formatting, feel free to use that instead.)
 
# Install [https://www.sublimetext.com/ Sublime Text] for Linux, Mac, or Windows. (If you already have another text editor which supports XML formatting, feel free to use that instead.)
 
# Install the [https://packagecontrol.io/installation Package Control extension for Sublime Text].
 
# Install the [https://packagecontrol.io/installation Package Control extension for Sublime Text].
# Use the Package Control extension to install the Indent XML plugin ([https://packagecontrol.io/docs/usage see documentation]).
+
# Use the Package Control extension to install the ''Indent XML'' and ''XPath'' plugins (see [https://packagecontrol.io/docs/usage how to add plugins]).
 
# Open [[#Find your save files|your save file]] (the file that looks like <tt>Name_0123456789</tt>) in Sublime Text.
 
# Open [[#Find your save files|your save file]] (the file that looks like <tt>Name_0123456789</tt>) in Sublime Text.
 
# Click Selection > Format > Indent XML.
 
# Click Selection > Format > Indent XML.
 
# Make any changes you want and save. (See [http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ a guide for common changes].)
 
# Make any changes you want and save. (See [http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ a guide for common changes].)
 +
 +
'''Tips:'''
 +
<ul>
 +
<li>Click an element, and press <tt>CTRL</tt> + <tt>SHIFT</tt> + <tt>[</tt> to collapse the whole section which contains it. This is useful when you want to ignore a large field. For example, given this text in the save file:
 +
<source lang="xml">
 +
<ArrayOfInt>
 +
    <int>1981</int>
 +
    <int>0</int>
 +
    <int>0</int>
 +
    <int>0</int>
 +
    <int>0</int>
 +
    <int>0</int>
 +
</ArrayOfInt>
 +
</source>
 +
Click on one of the <tt><int></tt> fields and press those keys, and it will collapse into this:
 +
<source lang="xml">
 +
<ArrayOfInt> […]
 +
</ArrayOfInt>
 +
</source>
 +
</li>
 +
<li>Click any element, and look in the status bar to see the path to where you are in the save format (like <tt>/SaveGame/player/friendships/item[32]</tt>).</li>
 +
</ul>
    
===Duplicate a save===
 
===Duplicate a save===
translators
8,349

edits

Navigation menu