Rimworld modding tutorial wiki. This allows you to add any custom field to any def.

Rimworld modding tutorial wiki. Jun 19, 2020 · Roaring to go? Here's a good tutorial that introduces a lot of things gradually. A DefModExtension doesn't directly add fields to classes as that's technically impossible to do at runtime. Feb 4, 2019 · Modding Tutorials/DefModExtension < Modding Tutorials A DefModExtension is a way to add fields to Defs. We will learn basic terms used in the RimWorld Modding community and how some of the systems operate. Maybe you want to subclass instead? Adding fields to Defs You can. You can also get Harmony on Steam. Requirements [edit] Tutorials should thoroughly cover a subject and provide step-by-step directions. Aug 21, 2025 · Please check out the Modding Tutorials hub for tutorials and guides on how to create and publish your own mods. . However, modding tutorials should not cover an unusual amount of information. This is the hub page for tutorials, guides, and reference materials for creating mods for RimWorld. Aug 4, 2025 · < Modding Tutorials While most of RimWorld's content is configured in XML, XML is ultimately just a data storage solution and understanding how the game actually functions requires reading decompiled source code. Things like Pawns, Plants, Equipment, Buildings are all ThingsWithComps, so ThingComps are broadly applicable. General Modding tutorials page on the RimWorld wiki Mod Help section on the ludeon forums Roxxploxx’s modding guide Jecrell’s step-by-step modding guide ZorbaTHut’s intro to modding features KeenKrozzy’s Guide to using custom textures GitHub repositories of modders RimWorld font, courtesy of Marnador XML Modding Tutorials/GameComponent < Modding Tutorials < Modding Tutorials/Custom Comp Classes Although neither explicitly nor formally linked, Map-, World- and GameComponents share a very similar design (and because of that they also share one tutorial). For example, you can cover a tutorial Apr 24, 2023 · < Modding Tutorials This tutorial gives you a broad idea how to work on a C# solution. The order of the mods in the list is important, if a mod has a dependency, in most cases the dependency has to be loaded before the mod that requires it. Adding behaviour to the Thing class If it's a ThingWithComps, you Sep 12, 2021 · Modding Tutorials/Custom Comp Classes < Modding Tutorials Creating a custom comp class is a convenient way to add new functionality to RimWorld. Aug 4, 2023 · This tutorial explains the structure of XML files for modding in RimWorld, providing essential information for creating or editing mods effectively. Apr 29, 2024 · Modding Tutorials/ThingComp < Modding Tutorials < Modding Tutorials/Custom Comp Classes A ThingComp is a specific type of Component that's attached to a ThingWithComps. Easy - Edit XML to apply existing functionality in new ways to make new things (like a gun, or animal). They allow for a more modular approach to adding functionality to different objects. Sep 21, 2025 · < Modding Tutorials This page was originally created by Alistaire. If you are looking for instructions on how to use RimWorld, please check out the general Modding hub. For masochists like me who prefer to make mods on Linux, here are a few resources to hopefully make your life a bit easier. While it is possible to create many mods by modifying or creating XML, writing custom C# code, either as stand-alone classes or as Harmony patches, allows changing almost anything in the game. As RimWorld does not have a formal modding API, nearly all of the information here has been gathered and maintained by the modding community. Modding Tutorials/Hello World < Modding Tutorials In this tutorial you will learn how to make a mod that runs on startup and writes "Hello World" to the dev console. NOTE: Decompiling RimWorld's source code is subject to the terms of RimWorld's End-User License Agreement. Once they are in this category, they are considered (unofficially) official. Dec 1, 2023 · Modding Tutorials/Hello World < Modding Tutorials In this tutorial you will learn how to make a mod that runs on startup and writes "Hello World" to the dev console. Oct 9, 2025 · This is the hub page for tutorials, guides, and reference materials for creating mods for RimWorld. Comps aren't a formal concept in the code: they're a design pattern used in different places. You can just edit the wiki pages directly on the wiki. Adding fields or methods to classes You can't. Want to take it slow? Smart. To integrate Harmony into your mod for use, download the latest stable release and add it as a reference to your C# project. Or not. In this tutorial you will learn how to set up a solution, along with instructions on setting the output directory and files for more convenient building right into the Assemblies folder. Not even with Harmony. Jun 2, 2025 · Finished tutorials should be in this category. Please do not include the Jan 18, 2021 · Modding Tutorials/Folder structure < Modding Tutorials In this tutorial you will explore Rimworld's folder structure. If you can read English, you can make a gun mod. The main Modding Tutorials page is Modding Tutorials. Aug 28, 2021 · Modding Tutorials/GameComponent < Modding Tutorials < Modding Tutorials/Custom Comp Classes Although neither explicitly nor formally linked, Map-, World- and GameComponents share a very similar design (and because of that they also share one tutorial). NET and Mono methods during runtime Harmony is the current best practice for changing the runtime execution of code in RimWorld. This allows you to add any custom field to any def. Sep 11, 2016 · Modding Tutorials/Assembly Modding Example < Modding Tutorials This page was originally created by Haplo. Jun 24, 2020 · Modding Tutorials/ModSettings < Modding Tutorials Mod settings allow you to offer customisation options to your users. Welcome to the unofficial RimWorld Modding Wiki, a wiki specifically designed to teach how to make mods! 0 active users are currently maintaining 17 pages and 74 files. Jun 22, 2020 · Modding Difficulty So how hard is it to mod RimWorld? Overall, RimWorld is a modder-friendly platform actively supported by the game's creators. And unless the issues with this tutorial are corrected there will only be backlash from the veteran modding community who really knows the ins and outs of the game's vanilla codebase and programming basics/best practices. It is strongly recommended that you read it before proceeding. It's strongly recommended to do the following before you start making a mod: If you want to contribute to the wiki, you don't need to clone the repository. < Modding Tutorials This page was originally created by Alistaire. Feb 11, 2019 · Modding Tutorials/ThingDef < Modding Tutorials ThingDef is one of the many Defs used in RimWorld. Modding Tutorials/Folder structure < Modding Tutorials In this tutorial you will explore Rimworld's folder structure. Jul 24, 2023 · Learn how to create and customize xenotypes in RimWorld with this comprehensive modding tutorial. Jan 16, 2023 · < Modding Tutorials Harmony - A library for patching, replacing and decorating . Modding Tutorials/Xml Adding Weapons Traits Research < Modding Tutorials This page is a tutorial on how to create a rimworld mod it will step you through the process of creating a mod from scratch. Feb 1, 2019 · Changing methods Use Harmony. from basic files structure to writing code for your mod. If you have a Def, you can get your mod extension from it. DefModExtensions are a simple way to extend functionality to a Def. Almost every "tangible" (and some intangible) things you see in RimWorld are backed by a ThingDef. The game support something called a DefModExtension. Abstracts and inheritance - AKA “what the hell am I copy-pasting over anyway?” Zhentar’s Introduction to PatchOperation: using xpath to target parts of Defs. Examples: Mod activation and order Open RimWorld, go to the Mods button, then drop the mod from the left column into the right one. k7 30x mbq wssn 8mss yhlzzhc ojhtl se8gx jzxo2 qcfkv