Difference between revisions of "Modding Tutorials/Assembly Modding Example"

From RimWorld Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<small> [[Modding Tutorials]]</small>
+
{{BackToTutorials}}
 +
{{Credit|[[User:Haplo|Haplo]]}}<br/><br/>
  
 
== Description ==
 
== Description ==
Line 9: Line 10:
  
 
== Needed Tools ==
 
== Needed Tools ==
You need the following tools:  
+
You need the following tools:<br/>
  
- Microsoft Visual Studio 2013 Express (Desktop-Version) (free, download [http://www.microsoft.com/en-us/download/details.aspx?id=43733 here] or [http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop here])
+
* Any [[Modding_Tutorials/Recommended_software#IDE.27s|Recommended IDE]] or your preferred IDE;
 
+
* A basic understanding of C#
- A basic understanding of C#
+
* RimWorld
 
 
- RimWorld
 
  
 
== Download ==
 
== Download ==
Download the project [http://www.mediafire.com/download/hlu61b70dbp5wed/RimWorld_ExampleProjectDLL_070.zip here]
+
Download the project from [https://github.com/HaploX1/ExampleDllMod GitHub]
  
or from the attachment of the forum post [http://ludeon.com/forums/index.php?action=dlattach;topic=3408.0;attach=4008 here].
+
or from the attachment of the [https://ludeon.com/forums/index.php?topic=3408.0 forum post].
  
 
== Preparations ==
 
== Preparations ==
Line 29: Line 28:
 
- Go into your RimWorld-Folder:
 
- Go into your RimWorld-Folder:
  
     - Copy ..\RimWorld413Win\RimWorld413Win_Data\Managed\Assembly-CSharp.dll
+
     - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\Assembly-CSharp.dll
 
       to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
 
       to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
  
     - Copy ..\RimWorld413Win\RimWorld413Win_Data\Managed\UnityEngine.dll
+
     - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\UnityEngine.dll
 
       to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
 
       to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
 
  
 
== Enter The Project ==
 
== Enter The Project ==
Line 56: Line 54:
  
  
PS: For those of you, who only want the generator, [http://www.mediafire.com/download/qvkz59qzmkx3wk8/DarkMatterGenerator_103.zip here] is it, the finished [http://ludeon.com/forums/index.php?action=dlattach;topic=3408.0;attach=3347 Dark Matter Generator]
+
PS: For those of you, who only want the power generator: The finished mod is inside the project.
 +
 
 +
[[Category:Modding tutorials]]

Latest revision as of 18:37, 11 September 2016

Modding Tutorials

This page was originally created by Haplo.

Description[edit]

This is a small demonstration about how you can make a mod that's using an assembly (.dll).

With this little project you learn about the assembly and it's program. Additionally you'll build your own dark matter generator and an animated wind turbine. :-)

Note, that this is Windows only, as I have no experience with Linux or Mac. Sorry...

Needed Tools[edit]

You need the following tools:

  • Any Recommended IDE or your preferred IDE;
  • A basic understanding of C#
  • RimWorld

Download[edit]

Download the project from GitHub

or from the attachment of the forum post.

Preparations[edit]

Before you start the project, you need to make the following preparations:

- Extract the file to a folder of your choice

- Go into your RimWorld-Folder:

   - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\Assembly-CSharp.dll
     to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
   - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\UnityEngine.dll
     to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\

Enter The Project[edit]

Now that you've prepared everything, it is time to enter the project and take a look into what makes the pump do what it does and where the problem is..

So open the project by starting <YourExtractionFolder>\RimWorld_ExampleProjectDLL.sln

If everything is installed correctly, Visual Studio should startup, opening your project.

Everything else is described inside.

And once you're finished, you have created your very own dark matter generator.


With this in mind.. Have fun exploring the secrets of the RimWorld code.

See you on the other side.


The forum entry can be found here.


PS: For those of you, who only want the power generator: The finished mod is inside the project.