RimWorld

RimWorld

Armor Is Uncomfortable 2 (Superseded, use AIU3 instead)
Nationality  [developer] 16 Aug, 2020 @ 11:38pm
Bugs, Compatibility, & Issues
Post as much information as you can.
< >
Showing 1-12 of 12 comments
There appears to be a typo in AIUDefs.xml: modNameReable instead of modNameReadable. There was an error upon loading, which disappeared after i fixed xml file.
Last edited by Ineluctable Sex Predator #FixTF2; 7 Dec, 2020 @ 11:14pm
Nationality  [developer] 8 Dec, 2020 @ 7:17am 
That certainly explains why I couldn't get the mod news to work, lol. I will fix with a few other changes.
brightsideguy 9 Feb, 2021 @ 8:05am 
As Impreg mentioned in Dec, I get this same error, and had to go into the xml to fix it.
Nationality  [developer] 9 Feb, 2021 @ 11:55am 
I thought I had fixed that issue. Maybe I didn't update the mod?
Yeah, it seams so. Last modified date is 21 oct 2020
Came to report the same issue. At least you've got the mod pretty stable if we're all reporting the same little typo!
Nationality  [developer] 6 Mar, 2021 @ 11:46pm 
Okay, I'll try and post an update soon. Only reason I haven't is pure laziness.
thailyn 28 Apr, 2022 @ 10:28am 
Hey, I really enjoy using your mod. I was digging into how the formula for discomfort works, as I was patching locally some discomfort values for modded resources. It looks like the part of the computation for an apparel's discomfort based on its stuff is not working correctly, unfortunately. From looking at the decompiled code, it looks like the StatPart_Stuff part does:

discomfort += StuffPower_Discomfort * StuffEffectMultiplierDiscomfort

The default value of StuffEffectMultiplierDiscomfort (a property of the apparel, I think) is 0, and I don't see it being set by AIU anywhere (only the value of StuffPower_Discomfort for vanilla materials). Thus, for all apparel, the StatPart_Stuff part of the computation does not modify the discomfort. Furthermore, if the default value were changed (or values patched in for specific apparel), the discomfort would simply be increased, proportional to StuffPower_Discomfort (unless one of StuffPower_Discomfort and StuffEffectMultiplierDiscomfort was negative, but they both have 0 as their minimum values), not scaled based on the two values.

Instead, I think the StatPart_Stuff part of the formula should be replaced by something like:

discomfort *= (StuffPower_Discomfort - 1) * StuffEffectMultiplierDiscomfort + 1

So the discomfort is scaled based on StuffPower_Discomfort, which is a property of the material, but that modification is itself scaled based on StuffEffectMultiplierDiscomfort, which is a property of the apparel.

I'm very new to RimWorld C# modding, so I'm not sure if a StatPart with this formula already exists. However, it would be pretty straightforward to create a new one, since it is very similar to StatPart_Stuff. I plan on testing this out locally, but I'm curious what your thoughts are, or if I missed something in understanding how the formula works.
Nationality  [developer] 28 Apr, 2022 @ 11:33am 
@thailyn Hmm... I will investigate when I have the chance. Thank you for bringing this up.
Nationality  [developer] 21 Nov, 2022 @ 8:59am 
Originally posted by lost:
any chance this mod can autopatch leather optimizers?
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2252798130&searchtext=leather
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1713884017&searchtext=leather

I actually use Simple Chains: Leather in my own mod list, so they work together. Don't know about the other mod, but AIU is designed to be pretty much be compatible with everything.
does the StuffPower_Discomfort tag actually work for modifying an apparels discomfort according to material? in the info window it always says "Material effect multiplier: 0%"
< >
Showing 1-12 of 12 comments
Per page: 1530 50