Editing Modding Tutorials/Setting up a solution
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 12: | Line 12: | ||
Setting up can be different for different IDE's. Feel free to add '''''complete''''' instructions for your IDE of choice. | Setting up can be different for different IDE's. Feel free to add '''''complete''''' instructions for your IDE of choice. | ||
− | ===Visual Studio Community | + | ===Visual Studio Community 2019=== |
− | ''NOTE: Visual Studio | + | ''NOTE: Visual Studio 2019 is a rather heavy application (2-3 GB for basic functionality) but has a bit more functionality. Only Install if your computer can handle it! This tutorial is similar for other versions of Visual Studio.'' |
Line 32: | Line 32: | ||
## Expand your project in Solution Explorer. Then right click "References" -> Add Reference... | ## Expand your project in Solution Explorer. Then right click "References" -> Add Reference... | ||
## Click Browse... | ## Click Browse... | ||
− | ## Navigate towards <pre>RimWorldInstallPath/RimWorld******_Data/Managed</pre> and select files: <br/><pre>Assembly-CSharp.dll UnityEngine | + | ## Navigate towards <pre>RimWorldInstallPath/RimWorld******_Data/Managed</pre> and select files: <br/><pre>Assembly-CSharp.dll UnityEngine.dll</pre> |
## Click "Add" | ## Click "Add" | ||
## Click "OK" to close the Reference Manager. | ## Click "OK" to close the Reference Manager. | ||
− | ## Right | + | ## Right click on both Assembly-CSharp.dll and UnityEngine.dll and set Copy Local to False (Properties pane). |
− | ====Option 2 ( | + | ====Option 2 (Automatic Method):==== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
This option uses the [https://ludeon.com/forums/index.php?topic=39038.0 Rimworld Mod Development Cookiecutter] tool.</br> | This option uses the [https://ludeon.com/forums/index.php?topic=39038.0 Rimworld Mod Development Cookiecutter] tool.</br> | ||
'''Note: despite being automatic and potentially taking away some of the tedium away, the environment it sets up is very particular and this tool is currently not recommended for newcomers.'''</br> | '''Note: despite being automatic and potentially taking away some of the tedium away, the environment it sets up is very particular and this tool is currently not recommended for newcomers.'''</br> | ||
Line 92: | Line 67: | ||
## In your IDE project file browser, right-click the "References" folder and "Add reference"; | ## In your IDE project file browser, right-click the "References" folder and "Add reference"; | ||
## Choose the ".NET Assembly Browser" tab and "Browse..."; | ## Choose the ".NET Assembly Browser" tab and "Browse..."; | ||
− | ## Navigate towards <pre>RimWorld******/RimWorld******_Data/Managed</pre> and select files: <br/><pre>Assembly-CSharp.dll UnityEngine | + | ## Navigate towards <pre>RimWorld******/RimWorld******_Data/Managed</pre> and select files: <br/><pre>Assembly-CSharp.dll UnityEngine.dll</pre> |
## Click "Open" then "OK"; | ## Click "Open" then "OK"; | ||
## In the References folder, right-click Assembly-CSharp -> Properties and change "Local copy" to False. Do the same for UnityEngine, | ## In the References folder, right-click Assembly-CSharp -> Properties and change "Local copy" to False. Do the same for UnityEngine, | ||
Line 146: | Line 121: | ||
You're done! Note that Rider has a built-in decompiler—to view the source of a RimWorld class or method, just right-click its name and click Go To > Definition. | You're done! Note that Rider has a built-in decompiler—to view the source of a RimWorld class or method, just right-click its name and click Go To > Definition. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=Common issues= | =Common issues= |