Editing Modding Tutorials/Getting started with mods

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 67: Line 67:
 
Now let's make a Def's folder inside the mod folder. This folder will contain all the XML files that define the content the mod will add.<br>
 
Now let's make a Def's folder inside the mod folder. This folder will contain all the XML files that define the content the mod will add.<br>
 
Start by creating a folder called "Defs" inside the mod folder, inside the Defs folder create a file called "ThingDefs.xml" <br>
 
Start by creating a folder called "Defs" inside the mod folder, inside the Defs folder create a file called "ThingDefs.xml" <br>
 +
In the root of the mod folder create a folder called "Patches". this folder will contain XML files that will be used to patch existing content in the game. Inside the Patches folder create a file called "ThingDefs_Patch.xml" <br>
 
let's also create a folder called "Textures" inside the mod folder. this folder will contain all the images that will be used in the mod.<br>
 
let's also create a folder called "Textures" inside the mod folder. this folder will contain all the images that will be used in the mod.<br>
 
Your mod folder should now look like this:  
 
Your mod folder should now look like this:  
Line 76: Line 77:
 
     Defs
 
     Defs
 
         ThingDefs.xml
 
         ThingDefs.xml
 +
    Patches
 +
        ThingDefs_Patch.xml
 
     Textures
 
     Textures
 
</pre>
 
</pre>
Line 138: Line 141:
 
<pre>
 
<pre>
 
<comps>
 
<comps>
    <tickerType>Rare</tickerType>
 
 
     <li Class="CompProperties_Rottable"> <!-- This tells the game that the item can rot -->
 
     <li Class="CompProperties_Rottable"> <!-- This tells the game that the item can rot -->
 
         <daysToRotStart>2</daysToRotStart> <!-- This is the number of days it takes for the item to start rotting -->
 
         <daysToRotStart>2</daysToRotStart> <!-- This is the number of days it takes for the item to start rotting -->

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: