Modding:Overview: Difference between revisions

Jump to navigation Jump to search
5 bytes removed ,  23:43, 27 July 2019
no edit summary
imported>Koboldunderlord
No edit summary
imported>Koboldunderlord
No edit summary
Line 22: Line 22:
=== Setup ===
=== Setup ===


1. Install (Visual Studio for Mac)[http://visualstudio.microsoft.com/vs/mac/].  Make sure to install Monodevelop and any .NET tools it offers for C#.  While it can directly open the dll, it's hard to navigate and dive into.  
# Install (Visual Studio for Mac)[http://visualstudio.microsoft.com/vs/mac/].  Make sure to install Monodevelop and any .NET tools it offers for C#.  While it can directly open the dll, it's hard to navigate and dive into.  
2. Create a folder somewhere you want to save the decompiled code.  In this example, I'll use <code>~/QudCode</code>
# Create a folder somewhere you want to save the decompiled code.  In this example, I'll use <code>~/QudCode</code>
3. Open a terminal, and install ilspycmd: <code>dotnet tool install ilspycmd -g</code>
# Open a terminal, and install ilspycmd: <code>dotnet tool install ilspycmd -g</code>
4. Locate the code installation location.  For Steam at least, this exists at <code>~/Library/Application Support/com.FreeholdGames.CavesOfQud/code</code>
# Locate the code installation location.  For Steam at least, this exists at <code>~/Library/Application Support/com.FreeholdGames.CavesOfQud/code</code>
5. Run the following command, combining the two previous locations: ilspycmd -p -o ~/QudCode/ ~/Library/Application Support/com.FreeholdGames.CavesOfQud/code/Assembly-CSharp.dll</code>
# Run the following command, combining the two previous locations: ilspycmd -p -o ~/QudCode/ ~/Library/Application Support/com.FreeholdGames.CavesOfQud/code/Assembly-CSharp.dll</code>


This will output all the decompiled assets to ~/QudCode, and create a Visual Studio project file for you to open at that location!  From there you can use Visual Studio to explore the code. You will need to decompile again every time Caves of Qud updates.
This will output all the decompiled assets to ~/QudCode, and create a Visual Studio project file for you to open at that location!  From there you can use Visual Studio to explore the code. You will need to decompile again every time Caves of Qud updates.

Navigation menu