> For the complete documentation index, see [llms.txt](https://spiderheck-modding.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spiderheck-modding.gitbook.io/guide/making-mods/reading-the-games-code.md).

# 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](https://github.com/dnSpyEx/dnSpy), as it is still being maintained
  * However if you want it the original dnSpy is [here](https://github.com/dnSpy/dnSpy)

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)
