Changes

Jump to navigation Jump to search
→‎Decompile the game code: update outdated instructions
Line 218: Line 218:  
When you start working on more complex mods, you may need to look at how the game code works.
 
When you start working on more complex mods, you may need to look at how the game code works.
   −
Here's how to decompile the game code so you can look at it:
+
To decompile the game code so you can read it:
    
# Open <tt>StardewValley.exe</tt> in [https://www.jetbrains.com/decompiler/ dotPeek].
 
# Open <tt>StardewValley.exe</tt> in [https://www.jetbrains.com/decompiler/ dotPeek].
 
# Right-click on ''Stardew Valley'' and choose ''Export to Project''. Accept the default options to create a decompiled project you can open in Visual Studio. (Note that the decompiled code will not be functional due to limitations of the decompiler, but you'll be able to read the game code.)
 
# Right-click on ''Stardew Valley'' and choose ''Export to Project''. Accept the default options to create a decompiled project you can open in Visual Studio. (Note that the decompiled code will not be functional due to limitations of the decompiler, but you'll be able to read the game code.)
   −
Here's how to unpack the XNB data files:
+
To unpack the XNB data/image files, see [[Modding:Editing XNB files]].
 
  −
# Download the [http://community.playstarbound.com/threads/modding-guides-and-general-modding-discussion-redux.109131/page-6#post-2837587 Easy XNB Pack/UnPack Toolkit].
  −
# Copy the entire <tt>Stardew Valley\Content</tt> game folder into <tt>XNB-Mod-Toolkit\Packed</tt>.
  −
# Run <tt>XNB-Mod-Toolkit\UNPACK FILES.bat</tt> to unpack the files into <tt>XNB-Mod-Toolkit\Unpacked</tt>.
      
[[Category:Modding]]
 
[[Category:Modding]]
translators
8,404

edits

Navigation menu