Decompiling Stacklands - BerryLoader/BerryLoader GitHub Wiki
This portion of the Wiki will focus on decompiling Stacklands.
DISCLAIMER: Please do not share dumped assets publicly
Step 1: Download ILSpy
If you are on windows, download ILSpy, on Mac/Linux download AvaloniaILSpy.
Step 2: Decompile the code
After opening ILSpy, click File > Open
, find where you installed Stacklands, and open Stacklands_Data/Managed/GameScripts.dll
. Most of the code is found in this DLL, if you are interested in more code, check the File guide section below.
After opening the DLL, it will appear in the panel on the right. Click GameScripts
and -
to view the list of classes. You can then click on any of them to view their source code.
Step 3: Exporting the code
Right click GameScripts
and select Save code
, then create a folder where the code will be exported.
File guide
While most of the code you need for modding is in GameScripts.dll
, some relevant code is stored in other files:
File | Content |
---|---|
Assembly-CSharp.dll |
Code for the Sokpop intro |
GameScripts.dll |
Code of the actual game |
SokLoc.dll |
All localization related code |