Editing Modding Tutorials/Decompiling source code
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The base game provides a bunch of code snippets in ''../Source/'', relative to your Rimworld installation.<br/> | |
+ | Since this isn't a lot, one might want to take a look at the game's full source code; | ||
− | + | # Download [http://ilspy.net/ ILSpy] (Download Binaries) and extract it to a directory of your choosing. Optionally create a desktop shortcut; | |
− | + | # '''Either''': associate the .dll extension with ILSpy (go to 3.) '''or''' open ILSpy and open a .dll (go to 6.); | |
− | + | # Navigate to ''Assembly-CSharp.dll'' in ''../Rimworld***_Data/Managed/'', relative to your Rimworld installation and with *** being a version number; | |
− | + | # Right-click "Open with" and select a standard program. Navigate to your ILSpy installation and double-click ''ILSpy.exe'', tick the checkbox and accept; | |
− | + | # Double-click ''Assembly-CSharp.dll'' (go to 9.); | |
− | + | # Open ILSpy; | |
− | + | # Go to File -> Open or press Ctrl+O, navigate to ''../Rimworld***_Data/Managed/'', relative to your Rimworld installation and with *** being a version number; | |
− | + | # Select ''Assembly-CSharp.dll'' and confirm; | |
− | |||
− | |||
− | # Download [http://ilspy.net/ ILSpy] ( | ||
− | # '''Either''': associate the .dll extension with ILSpy | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# Click the "+" next to ''Assembly-CSharp (***)'', you will now see a list including the items ''Rimworld'' and ''Verse''; | # Click the "+" next to ''Assembly-CSharp (***)'', you will now see a list including the items ''Rimworld'' and ''Verse''; | ||
− | # Take your time to look through the source code, to make yourself familiar. If you ever need the source code, open | + | # Take your time to look through the source code, to make yourself familiar. If you ever need the source code, open ILSpy again. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Modding tutorials]] | [[Category:Modding tutorials]] |