# RimWorld

Published articles for RimWorld.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Getting started with RimWorld modding on Linux

DevFeed: [Getting started with RimWorld modding on Linux](<https://devfeed.tech/articles/getting-started-with-rimworld-modding-on-linux-53016.md>)

Original publisher: [Read original article](<https://www.arp242.net/rimworld-mod-linux.html>)

Author: Martin Tournoij

Published: 2021-09-28T23:00:00Z

Content type: tutorial

Language: en

Sources: [arp242.net](<https://devfeed.tech/sources/arp242-net.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Code](<https://devfeed.tech/topics/code.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [XML](<https://devfeed.tech/topics/xml.md>), [Unity](<https://devfeed.tech/topics/unity.md>), [Hackathon-Kit](<https://devfeed.tech/topics/hackathon-kit.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [linux](<https://devfeed.tech/tags/linux.md>), [modding](<https://devfeed.tech/tags/modding.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rimworld](<https://devfeed.tech/tags/rimworld.md>)

### AI overview

A tutorial explaining how to create RimWorld mods on Linux using XML definitions and C# code with Mono. It introduces the mod structure, setup process, and creation of a custom weather type, with some steps also applicable to Windows and macOS.

### Source excerpt

This describes how to create RimWorld mods on Linux; this is an introduction to both RimWorld modding and developing C♯ with Mono; it's essentially the steps I followed to get started. This doesn't assume any knowledge of Unity, Mono, or C♯ but some familiarity with Linux and general programming is assumed; if you're completely new to programming then this probably isn't a good resource. A lot of this will work on Windows or macOS too; it's just the C♯ build steps that are really Linux-specific, as are various pathnames etc. RimWorld mods consist of two parts: A set of XML definitions ("Defs") which defines everything from items, actions you can take, research projects, weather, etc. This is the "glue" that actually makes stuff appear in the game, applies effects, etc. For (very) simple mods this may actually be enough, and no "real" coding is required. You can use XML files to both add new stuff, and RimWorld has facilities to patch existing in-game content. C♯ code which either adds entire new stuff, or monkey-patches existing code. As an example we'll make a little mod that makes it rain blood. Why? It seemed easy enough to do while also exploring some of the core concepts. Also, I was playing Slayer when I started on this. The complete example mod is on GitHub, but I encourage people to modify things manually (and maybe play around with things a bit) rather than copy/paste stuff from there; it's just a better way to learn things. Getting started Before we start with the C♯ stuff let's set up a basic mod which adds a new weather type; we just need to edit some XML for this. Mods are located in the Mods/ directory in your RimWorld installation directory; I'm using the version I bought from the RimWorld website and extracted to ~/rimworld so that's nice and simple. GOG.com games usually store the actual game data in a game/ subdirectory. I don't know where Steam stores things 🤷 This directory should already exist with a Mods/Place mods here.txt. A mod must have an