RimWorld

RimWorld

Armor Is Uncomfortable 2 (Superseded, use AIU3 instead)
Nationality  [developer] 20 Oct, 2020 @ 7:55pm
Short Modding Guide
As of version 2.1, you can substitute your own uncomfortableness values in place of the mod's formula.

All you need to do is copy-paste this into your mod's patch XML, then adapt it to your needs. If the following means nothing to you, you should familiarize yourself with Rimworld Modding first. (I would link to the wiki, but Steam has that flagged as "suspicious" so I don't know what that's about. You know how to find it. You can use Google.)

<Operation Class="PatchOperationFindMod"> <mods> <li>Armor Is Uncomfortable 2</li> </mods> <match Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationAddModExtension"> <xpath>/Defs/ThingDef[defName="Apparel_WarMask"]</xpath> <value> <li Class="ArmorIsUncomfortable.ApparelDiscomfortOverride"> <baseDiscomfort>10</baseDiscomfort> </li> </value> </li> </operations> </match> </Operation>

The above sets the War Mask's base discomfort to 10. Note that an item's quality still can have an influence.

If in doubt, just leave it blank, the mod is pretty good at assigning reasonable values. It is only intended for weird apparel, like, I don't know, a cloth mask that jams stuff into your eye, or a mech that takes care of your every need so you can wear it forever.

Here's a rough guide that might help you assign appropriate values.

0.01 or less: socks, underwear, tuque or some other trivial piece of clothing.
0.01-0.10: shirt, pants, etc.
0.10-0.50: jackets, flak pants, parkas, light helmets
0.50-1: heavy helmets
1-3: kevlar vests and other minimal chestpieces
4-10: light full-bodied armor, certain clothes like whale-bone corsets
10-30: medium full bodied armor, or a mascot uniform
30-50: heavy armor, such as platemail
50+: something excruciating, like granite armor, or extreme training weights
Last edited by Nationality; 2 Jun, 2021 @ 10:43pm
< >
Showing 1-6 of 6 comments
Snowy Joe 24 Oct, 2020 @ 4:30am 
Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay!
RutraNickers 6 Jul, 2022 @ 10:05am 
tried using this code to patch Jewery, but it didn't work. I changed "Apparel_WarMask" to "Jewery_Bracelet" and put 0 instead of 10, but it did not work. I tried putting 10 there and the game got stuck loading in a black screen.
Last edited by RutraNickers; 6 Jul, 2022 @ 10:06am
Nationality  [developer] 6 Jul, 2022 @ 3:16pm 
@Rutra Nickers
Did you spell it "Jewery_Bracelet"? It might be "Jewelry_Bracelet".
Nationality  [developer] 6 Jul, 2022 @ 3:23pm 
Also, if jewelry comes from a mod, there might be some other issue involving the other mod. It's hard to know without knowing the specific implementation.
RutraNickers 6 Jul, 2022 @ 10:22pm 
It's from this mod here with the same name:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2020964421&searchtext=jewelry

Yeah, I misspelled here, but in the XML archive I copy-pasted from their own XML def file. I've probably done something dumb, but at least wasn't the spelling in this case.

I tried to add this code on their Patches_OtherMods.xml file where they patch some mods for compatibility sake. I got frustrated and redownloaded their mod to play the game though, so I don't have precisely what I typed there in hands unfortunately.
Last edited by RutraNickers; 7 Jul, 2022 @ 8:23am
Nationality  [developer] 7 Jul, 2022 @ 12:52am 
It's been a while since I've done rimworld modding, but there are a lot of things it could be. I'm afraid I can't be of much help unless I see the exact XML you copy-pasted.
Another possibility is that mods are incompatible. That would surprise me because AIU is a very compatible mod, pretty much compatible with anything.
< >
Showing 1-6 of 6 comments
Per page: 1530 50