Changes

Jump to navigation Jump to search
no edit summary
Line 208: Line 208:  
To decompile the game code...
 
To decompile the game code...
   −
; On Windows:
   
:# First-time setup:
 
:# First-time setup:
:## Install the latest {{github|icsharpcode/ILSpy/releases|ILSpy}} release (get the "ILSpy_binaries" file under assets).
+
:## Install the latest {{github|icsharpcode/ILSpy/releases|ILSpy}} release for Windows release (get the "ILSpy_binaries" file under assets). You can use [https://github.com/icsharpcode/AvaloniaILSpy/releases Avalonia ILSpy] for Linux and macOS.
 
:## Open ILSpy.
 
:## Open ILSpy.
 
:## Click ''View > Options'', scroll to the "Other" section at the bottom, and enable "Always qualify member references".
 
:## Click ''View > Options'', scroll to the "Other" section at the bottom, and enable "Always qualify member references".
 
:# Open <tt>StardewValley.exe</tt> in ILSpy.
 
:# Open <tt>StardewValley.exe</tt> in ILSpy.
 
:# Right-click on ''Stardew Valley'' and choose ''Save Code'' to create a decompiled project you can open in Visual Studio.
 
:# Right-click on ''Stardew Valley'' and choose ''Save Code'' to create a decompiled project you can open in Visual Studio.
  −
; On Linux/MacOS&#58;
  −
:# Install [https://code.visualstudio.com/download Visual Studio Code].
  −
:# Get the [https://marketplace.visualstudio.com/items?itemName=icsharpcode.ilspy-vscode ILSpy .NET Decompiler] plugin for VSCode.
  −
:# Open the Visual Studio Code Command Palette (<code>Command+Shift+P</code>), then type <code>ilspy</code> to show the two commands.
  −
:# Choose ''Decompile IL Assembly (pick file)'', then choose the <tt>StardewValley.exe</tt> in your [[Modding:Player Guide/Getting Started#Find your game folder|game folder]].
  −
:# A tree view named <tt>ILSPY DECOMPILED MEMBERS</tt> should appear in the Explorer view. This lets you expand and select various nodes to see the decompiled C# code in the editor.
      
To unpack the XNB data/image files, see [[Modding:Editing XNB files]].
 
To unpack the XNB data/image files, see [[Modding:Editing XNB files]].
414

edits

Navigation menu