Editing Modding Tutorials/Basic Melee Weapon

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:
 
{{DISPLAYTITLE:Basic Melee Weapon}}
 
{{DISPLAYTITLE:Basic Melee Weapon}}
 
{{BackToTutorials}}
 
{{BackToTutorials}}
 +
 +
{{:Modding_Tutorials/Under_Review}}
  
 
This is a basic RimWorld mod tutorial for the purpose of creating a simple melee weapon.
 
This is a basic RimWorld mod tutorial for the purpose of creating a simple melee weapon.
Line 11: Line 13:
 
== Recommended Reading ==
 
== Recommended Reading ==
 
* [[Modding_Tutorials/Mod_folder_structure|Mod Folder Structure]]
 
* [[Modding_Tutorials/Mod_folder_structure|Mod Folder Structure]]
* [[Modding_Tutorials/XML_Defs|Defs]]
+
* [[Modding_Tutorials/Defs|Defs]]
 
* [[Modding_Tutorials/ThingDef|ThingDef]]
 
* [[Modding_Tutorials/ThingDef|ThingDef]]
  
 
== Sample Repository ==
 
== Sample Repository ==
 
[[File:ExampleMeleeWeapon.png|none|border|link=https://github.com/Aelanna/ExampleMeleeWeapon]]
 
[[File:ExampleMeleeWeapon.png|none|border|link=https://github.com/Aelanna/ExampleMeleeWeapon]]
A working implementation of this mod can be found [https://github.com/Aelanna/ExampleMeleeWeapon in this GitHub repository]. You can use it to compare against your work or as a basis for modification!
+
A working implementation of this mod can be found [https://github.com/Aelanna/ExampleMeleeWeapon|in this GitHub repository]. You can use it to compare against your work or as a basis for modification!
  
 
== Folder Setup ==
 
== Folder Setup ==
Line 26: Line 28:
 
└ MyModFolder
 
└ MyModFolder
 
   ├ About
 
   ├ About
   │ About.xml
+
   │ About.xml
  │ └ Preview.png
 
 
   ├ Defs
 
   ├ Defs
 
   │ └ ThingDefs
 
   │ └ ThingDefs
Line 161: Line 162:
 
   <WorkToMake>10000</WorkToMake>
 
   <WorkToMake>10000</WorkToMake>
 
   <Mass>0.75</Mass>
 
   <Mass>0.75</Mass>
</statBases>
+
  </statBases>
 
</source>
 
</source>
 
| class="TutorialCodeTable-description" |
 
| class="TutorialCodeTable-description" |
Line 228: Line 229:
 
=== 3. Done! ===
 
=== 3. Done! ===
  
Your first melee weapon is complete! Boot up RimWorld and you should be able to see and enable the "Example Melee Weapon" mod in your mod manager. You can then use [[Development mode|dev mode tools]] to spawn the weapon directly, or craft it at an [[Electric_smithy|electric]] or [[Fueled_smithy|fueled smithy]].
+
Your first melee weapon is complete! Boot up RimWorld and you should be able to see and enable the "Example Melee Weapon" mod in your mod manager. You can then use [[https://rimworldwiki.com/wiki/Development_mode dev mod tools]] to spawn the weapon directly, or craft it at an [[Electric_smithy|electric]] or [[Fueled_smithy|fueled smithy]].
  
 
If you get any errors, be sure to check out the [[Modding_Tutorials/Troubleshooting|troubleshooting guide]] or join us on the '''#mod-development''' channel on the [https://discord.gg/rimworld RimWorld Discord server].
 
If you get any errors, be sure to check out the [[Modding_Tutorials/Troubleshooting|troubleshooting guide]] or join us on the '''#mod-development''' channel on the [https://discord.gg/rimworld RimWorld Discord server].

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: