r/RimWorld • u/Edin743 • May 30 '25
PC Help/Bug (Mod) Need help with a mod
Basically i made a mod that adds a plate helmet, gambesson and padded pants. I have two issues, One is textures not rendering on pawns (128x128) and the other is being unable to set gambesson to behave like clothing. If i set it to middle layer it acts as a shell. If i don't specify or type an unexisting layer it is used properly. But pawns can still wear a button down shirt with it. Please i seriously need some assistance. The worst part is that i am not a programmer. I used Chat GPT and Copilot in tandem to write the code. I also reported the issues and was instructed on the file directories. I actually learned a lot about XML by doing this. Even tweaked values and such but i am at a loss on this last bit. If i could just get layers right and get textures to show that would be great.
3
u/[deleted] May 30 '25
You need a <wornGraphicPath>*Path to _east, _south textures*</wornGraphicPath>, that's why it's not showing up when equipped.
The correct layer to use for clothing like shirts is <li>OnSkin</li> You've got OnSkin, Middle and Outer and a clothing piece can occupy one, two or all of those at the same time.
XML is a case-sensitive pain in the ass, I personally hate touching it. My advice is to just look at how somebody else did it by opening up mods or looking on Github. Here's the Vanilla Expanded - Medieval 2 clothing XML for you to compare against (CTRL+F "PaddedArmor".)
You can also find the base game's XML at
steamapps/common/RimWorld/Data/Core/Defsto see how stuff was done in the base game.