Hi guys, I've encountered some annoying problem and cant solve it at all. There is a mod I like but it has bugs and I cant fix them by editing xml somehow, would appreciate any help.
The mod in question is Apocrypha 2033 - Apparel it has a group of seemingly bugged apparel that has no armor or temperature stats. Here's how it looks like
(https://www.imghippo.com/i/W2J6G1716163813.jpgf)
As you can see hoodie, sweater, bomber jacket etc dont have adequate stats rendering them useless. Somehow these stats exist in corresponding xml files but dont work in game, where is a mistake that needs fixing?
here is an example of sweater xml file. Could anybody tell whats wrong?
(https://preview.redd.it/need-help-serious-queston-about-modding-v0-4b70ckts0h1d1.jpg?width=1280&format=pjpg&auto=webp&s=4bb204ddd2d4d6c98de474d7128fe587797f5ef6)
(https://preview.redd.it/need-help-serious-queston-about-modding-v0-rr27jakv0h1d1.jpg?width=1280&format=pjpg&auto=webp&s=4f2dd40d599830ba7cccc0eb4f71831c4f088431)
Please! Its driving me nuts. Trying to change stats through rimmQOL didnt help either!
Somehow first image refuses to get shown
(https://preview.redd.it/need-help-serious-question-about-modding-v0-yscqfyjlzg1d1.jpg?width=1280&format=pjpg&auto=webp&s=fb8f5ef02e94422835ca5cdced89971573725ee5)
Found it.
Your Mod is deriving insulation from Stuff, but your Mod's Clothing does not have Stuff. It can only be made from Cloth, and thus doesn't have any variations. Those are what the game is trying to find, but cannot.
Your Mod is missing two things: you need a COSTSTUFFCOUNT and a STUFFCATEGORIES. Remove the COSTLIST. Both of these go in the ROOT of the Thing Def's brackets, in the same level as DEFNAME.
Here is an example of a Thing Def that can be built using Stuff:
<!-- SHUT MY MOUTH AND SLAP MY GRANDMA! IT NOW ACCEPTS STUFF!! -->
<costStuffCount>50</costStuffCount>
<stuffCategories>
<li>Metallic</li>
<li>Stony</li>
<li>Woody</li>
<!-- Support for Mod Stuff -->
<li MayRequire="Dubwise.Rimefeller">Plastic</li>
<li MayRequire="Dubwise.Rimefeller">Composite</li>
<li MayRequire="sarg.alphabiomes">AB_ExoticMetals</li>
</stuffCategories>
If you want an item that DOES NOT accept Stuff to have insulation, you need to put these two statements in your STATBASES bracket:
<statBases>
<Insulation_Cold>X</Insulation_Cold>
<Insulation_Heat>Y</Insulation_Heat>
</statBases>
Replace the numbers with positive or negative integers representing the tolerance to temperature that it adds (in Celcius).
You can easily write Patches to add the missing things that I mentioned above.