RimWorld

RimWorld

Gloomy Extra - Kitchen
Semo  [developer] 22 Aug, 2020 @ 5:19am
Example - How to add recipes from other mods
This is an example of adding food recipes to the gloomy extra - kitchen items
This works for other food mods as well but we'll be using Cannibal Meals as and example because it was requested.

You want to make a local copy of the mod so any updates won't override your changes.
The best way to do this is by using Mod manager:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1507748539


1. Download Notepad++[notepad-plus-plus.org] and install it.

2. Make a local copy (using Mod manager) of the mod you want to change. In this case Cannibal meals.

3. Navigate to the mods folder (Steam\steamapps\common\RimWorld\Mods) or right click Rimworld in steam > Properties > Browse local files.

4. In the mods folder you'll find the mods you've installed locally. Find your mod you want to change. In this case it's VGCannibalPatch. It might be called _LocalCopy_VGCannibalPatch if you used Mod Manager.

5. In there you will find a 1.0 and a 1.1 folder. Open the 1.0 folder > Defs > RecipeDefs and open the Recipes.xml using Notapad++

6. Now you will see a whole bunch of XML code. Don't be scared. All you have to do is scroll down to line 84 or until you see the following code:


<recipeUsers>
<li>ElectricStove</li>
<li>FueledStove</li>
</recipeUsers>


If you can't find it you can press Ctrl+F and search for "recipeUsers"

The RecipeUser is the crafting table used for the recipe. In this case the Electric and Fueled Stove are used to make the cannibal recipes. Makes sense right?

What we need to do is add the Gloomy Electric Stove to the list so the game knows that these recipes can be made at this crafting table.

7. To do this all we have to do is add the def name "GL_ElectricStove" like this.


<recipeUsers>
<li>ElectricStove</li>
<li>FueledStove</li>
<li>GL_ElectricStove</li>
</recipeUsers>


If it's not showing up in the Gloomy Fueled Stove you just add "RGK_FueledStove" to the list as well.


<recipeUsers>
<li>ElectricStove</li>
<li>FueledStove</li>
<li>GL_ElectricStove</li>
<li>RGK_FueledStove</li>
</recipeUsers>


Save and you're done.

8. You just changed this in the 1.0 folder. This is for the base game without the DLC. If you have the DLC just repeat the same steps in the 1.1 folder. Just copy past it.

9. About the load order. You just added some code that tells the game which crafting table to use for the recipe. Make sure you load the changed / edited mod AFTER you loaded Gloomy - extra kitchen.

This is because the game doesn't know that gloomy extra kitchen exists until it loads it.


If you have any questions or can't figure it out please feel free to ask me any questions and I'll try to help you out.
Last edited by Semo; 22 Aug, 2020 @ 6:01am
< >
Showing 1-2 of 2 comments
velcroboy333 22 Aug, 2020 @ 6:22am 
1 small issue with this method is that, unless they make a local copy of the mod, any time the food mod they are altering updates it will erase their changes.
Semo  [developer] 22 Aug, 2020 @ 9:58am 
Originally posted by velcroboy333:
1 small issue with this method is that, unless they make a local copy of the mod, any time the food mod they are altering updates it will erase their changes.

Yes and no. I specified they should make a local copy so any update wouldn't erase their changes. They would have to aply the changes again after an update yes.

I could make a patch for this one mod but then I would have to make one for the next mod as well. And another. And another. I would have to keep track of all those mods even tho I don't use them myself. That's a lot of work. Not like you people pay me to do this.

Be happy I took to time to explain it to you, I'm here to answer any questions you might have.

If you want me to post a tutorial on how to make a patch, the're way better tutorials on the rimworld discord and forums.

Somebody asked on how to fix his problem. This is how you fix it.
Is it the best solution? No. Is it easy? Yes.
Last edited by Semo; 22 Aug, 2020 @ 10:00am
< >
Showing 1-2 of 2 comments
Per page: 1530 50