边缘世界 RimWorld

边缘世界 RimWorld

Animal Gear
Oh God Spiders No 2019 年 5 月 14 日 上午 9:32
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.
最后由 Oh God Spiders No 编辑于; 2019 年 5 月 14 日 上午 11:01
< >
正在显示第 1 - 7 条,共 7 条留言
Oh God Spiders No 2019 年 5 月 14 日 上午 11:01 
I found the bug that was causing the problem. I've revised the OP description with details.
最后由 Oh God Spiders No 编辑于; 2019 年 5 月 14 日 上午 11:02
Dylan  [开发者] 2019 年 5 月 14 日 下午 1:48 
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 2019 年 5 月 14 日 下午 2:38 
Nice! Will do.
Dylan  [开发者] 2019 年 5 月 28 日 下午 2:57 
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 2019 年 5 月 28 日 下午 4:07 
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  [开发者] 2019 年 5 月 29 日 下午 12:07 
^^ 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 2019 年 5 月 29 日 下午 12:19 
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.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50