Reading the game's code

A big part of making mods is reading the game's code to figure out how to use and change it, so here's how to do that.

Important: Do not share any of the decompiled code, as this would technically be classed as piracy and we don't want to anger the lawyers!

Prerequisite software:

  • dnSpy

    • I recommend using dnSpyEx, as it is still being maintained

    • However if you want it the original dnSpy is here

Decompiling:

  1. Download dnSpy from above and unzip it

  2. Run dnSpy.exe, not dnSpy.Console.exe

  3. Go to File > Open and select the MyScriptAssembly.dll you copied earlier

  4. There should now be a list of C# types on the left (you may have to expand the dropdowns first)

Last updated