RimWorld

RimWorld

Dye Vat
Wacoede 11 Oct, 2018 @ 7:44am
Fix for the Missing Exception Error and Mixed Ingredients fix
ok fixed the error with the bleached cloth by just cutting it out all-together

How To:
1. Open Recipes_DyeVat_Production.xml with Notepad++ or whatever editor you like
2. Find <defName>DV_BleachCloth</defName>
3. Replace that plus everything before </ReceipeDef> with the code below:
<defName>DV_BleachCloth</defName> <label>bleach dyed cloth</label> <description>Bleach dyed cloth to standard cloth.</description> <jobString>Bleaching cloth.</jobString> <allowMixingIngredients>true</allowMixingIngredients> <ingredients> <li> <filter> <categories> <li>DV_DyedCloth</li> </categories> </filter> <count>10</count> </li> </ingredients> <fixedIngredientFilter> <categories> <li>DV_DyedCloth</li> </categories> </fixedIngredientFilter> <products> <Cloth>10</Cloth> </products>
4. Profit from the fact it no longer outputs an unusable item AND you can mix multiple colours together when bleaching as long as they add up to 10
Last edited by Wacoede; 11 Oct, 2018 @ 7:47am
< >
Showing 1-5 of 5 comments
Tekuromoto 18 Nov, 2018 @ 5:38pm 
Awesome, thanks for this!
Tekuromoto 18 Nov, 2018 @ 5:45pm 
Mining further into the mod files, looking to mute the colours a bit, I found this:

<!--This item exists briefly before converting into <spawnCount> Cloth regardless of current stack count, needs a fix--> <ThingDef ParentName="DyeVatCloth"> <defName>DV_UndyedCloth</defName> <label>bleached cloth</label> <graphicData> <color>(162,157,152)</color> </graphicData> <stuffProps> <color>(162,157,152)</color> </stuffProps> <tickerType>Rare</tickerType> <comps> <li Class="GT_Utilities.CompProperties_GTReplaceThing"> <thingToSpawn>Cloth</thingToSpawn> <spawnCount>10</spawnCount> <replaceInstantly>true</replaceInstantly> </li> </comps> </ThingDef>

in Items_Resource_DyeVat_Stuff.xml.

So it looks like the undyed cloth isn't supposed to really exist, but the code above doesn't work. Thoughts?
KaylaKaze 29 May, 2019 @ 2:14am 
I was looking at this myself and was really confused as to why the bleached cloth was there in the first place.
Ghost 9 Feb, 2020 @ 4:25am 
@Wacoede thx for the fix mate :)
Ziku 12 Sep, 2020 @ 4:12am 
As for second part, didn't messed with that file, BUT there's very simple way to get rid of bleached cloth once for all. Simply change
<DV_UndyedCloth>10</DV_UndyedCloth>
to
<Cloth>10</Cloth>
(around line 55 in Recipes_DyeVat_Production.xml)
This will cause Bleaching job creating generic cloth from anything else (including 'bleached cloth' if you already spawned some before this fix).
< >
Showing 1-5 of 5 comments
Per page: 1530 50