RimWorld

RimWorld

Animal Gear
AnimalCUTOUTCOMPLEX bug [found, and proposed fix]

If you add the AnimalCUTOUTCOMPLEX tag to an item, that item won't be sorted into the [Animal Apparel] tab in the apparel organizer.

The reason for this appears to be that it disrupts the patch that occurs in
/Animal Gear/Patches/OutfitThingCategories.xml

Specifically the lines that look like this:

<xpath>*/ThingDef[count(apparel/tags/li[contains(text(), "Animal")])=1]/thingCategories/li[contains(text(), "Apparel")]/text()

Those lines search for apparel items that contain ONE instance of the string "Animal" in their tags list. If the item has AnimalCUTOUTCOMPLEX in it, then there are suddenly TWO instances of "Animal" so those items don't get patched.

The easiest fix would probably just be to make it also search for and patch AnimalCUTOUTCOMPLEX.
Last edited by Oh God Spiders No; May 14, 2019 @ 11:01am
< >
Showing 1-7 of 7 comments
Oh God Spiders No May 14, 2019 @ 11:01am 
I found the bug that was causing the problem. I've revised the OP description with details.
Last edited by Oh God Spiders No; May 14, 2019 @ 11:02am
Dylan  [developer] May 14, 2019 @ 1:48pm 
ah, yeah makes sense ^^
I put in >= instead of = tested it, it should now work with one or more "Animal"-containing tags (just updated the mod)
Oh God Spiders No May 14, 2019 @ 2:38pm 
Nice! Will do.
Dylan  [developer] May 28, 2019 @ 2:57pm 
Hey ^^ great work so far on the mod, it seems to come along nicely.

I just saw that you added me as a friend here on steam, I usually don't add people here. We could chat on the discord if needed, I am only rarely online there, just let me know.
Oh God Spiders No May 28, 2019 @ 4:07pm 
Oh I'm the same way, I only just now started accepting friend requests because I'm modding. For years before that I denied all friend requests since I only really play single player games.

I figured I'd friend you since we're sort of collaborating now but no pressure to accept or be on call :)
Dylan  [developer] May 29, 2019 @ 12:07pm 
^^ ok, I will think about it ;D

(but really, I was impressed about how organized your mod page/progress indicator etc. is ^^)
Oh God Spiders No May 29, 2019 @ 12:19pm 
Thanks! Spending time setting up those pages took away a lot of time that I could have spent actually making armors, but I think that good presentation tangibly contributes to one's enjoyment of a mod, and adds to the sense that it is a core component of the Vanilla+ game. Also it manages subscriber expectations, establishes a brand, and helps keep me motivated by giving me a checklist that is fun to complete.
< >
Showing 1-7 of 7 comments
Per page: 1530 50