Editing Modding Tutorials/Flooring
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: | ||
− | + | <small>< [[Modding Tutorials]]</small> | |
− | < | ||
− | |||
− | </ | ||
− | + | In this tutorial, we're going to be learning how to add your own flooring too the game using the resource which we created in the last tutorial. | |
− | In this tutorial, we're going to be learning how to add your own flooring | ||
==Prerequisites== | ==Prerequisites== | ||
Line 19: | Line 15: | ||
After you have made your mod folder from the [[Modding Tutorials/Getting Started|Getting Started]] tutorial, you will need to create a new folder in which will contain your new flooring xml. Inside your <code>Defs</code> folder create a new subfolder called <code>TerrainDefs</code>. You're now done as far as creating folders go. | After you have made your mod folder from the [[Modding Tutorials/Getting Started|Getting Started]] tutorial, you will need to create a new folder in which will contain your new flooring xml. Inside your <code>Defs</code> folder create a new subfolder called <code>TerrainDefs</code>. You're now done as far as creating folders go. | ||
− | == Creating the new flooring ( | + | == Creating the new flooring (Wooden flooring example) == |
− | In this example, we'll be making a new | + | In this example, we'll be making a new wooden flooring using the wood which we created in the last tutorial! Your file should now look like this (if you're making a wood flooring like me) : |
<source lang="xml"> | <source lang="xml"> | ||
Line 27: | Line 23: | ||
<TerrainDefs> | <TerrainDefs> | ||
<TerrainDef> | <TerrainDef> | ||
− | <defName> | + | <defName>WoodFlooring</defName> |
− | <Label> | + | <Label>Wooden Flooring</Label> |
<RenderPrecedence>210</RenderPrecedence> | <RenderPrecedence>210</RenderPrecedence> | ||
− | <Description> | + | <Description>Wooden planks to liven up your lovely colony.</Description> |
<TexturePath>Things/Buildings/Floors/WoodFlooring</TexturePath> | <TexturePath>Things/Buildings/Floors/WoodFlooring</TexturePath> | ||
<Beauty>NiceTiny</Beauty> | <Beauty>NiceTiny</Beauty> | ||
Line 43: | Line 39: | ||
<CostList> | <CostList> | ||
<li> | <li> | ||
− | <thingDef> | + | <thingDef>Wood</thingDef> |
<count>2</count> | <count>2</count> | ||
</li> | </li> | ||
Line 51: | Line 47: | ||
</TerrainDef> | </TerrainDef> | ||
</TerrainDefs></source> | </TerrainDefs></source> | ||
− | |||
− | |||
== Testing == | == Testing == | ||
Let’s test our new mod! Fire up RimWorld, making sure to turn on <code>Development mode</code> in the options menu. Open the mods menu and make sure your mod is ticked (For active), and then press the tilde key (~) to check for any errors thrown on runtime. That’s right, no errors! Enjoy your new flooring! | Let’s test our new mod! Fire up RimWorld, making sure to turn on <code>Development mode</code> in the options menu. Open the mods menu and make sure your mod is ticked (For active), and then press the tilde key (~) to check for any errors thrown on runtime. That’s right, no errors! Enjoy your new flooring! | ||
− | |||
− | |||
− | |||
− | |||
== Conclusion == | == Conclusion == | ||
Line 66: | Line 56: | ||
You now know how to: | You now know how to: | ||
* make a simple flooring | * make a simple flooring | ||
− | * know most of the | + | * know most of the terrainDef's global attributes and their functions with the optional choices |
+ | |||
+ | Tutorial brought to you by Cala13er, If you have any questions about this tutorial. Message either Cala13er or Tynan on the forums. | ||
+ | |||
+ | Next we'll learn how to make a weapon! | ||
+ | |||
+ | [[Category:Modding tutorials]] |