RimWorld

RimWorld

918 ratings
Self Dyeing
6
5
4
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5
File Size
Posted
Updated
200.704 KB
31 Jul, 2021 @ 11:00pm
6 Apr @ 3:56am
22 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Self Dyeing

Description
Allow pawns to paint their clothes on their own.
Enable an option from Styling Station, and your pawns will paint their clothes bit by bit over time.

"I ain't got no time for this, do it yourself"

- you can make so pawns prefer ideology color over favorite;
- you can make pawns dye enough clothes for a buff OR dye all clothes with one color OR dye all clothes with ideo and favorite colors using one of them as primary;
- an option to make some fixed patters on how apparel should be dyed;

Some guidlines on how to control patterns:
- patterns without rules do nothing (except for pattern "do not dye");
- using multiple colonist outfits in the same pattern passes it to any one of selected outfits;
- using multiple apparel outfits in the same patternt makes so ALL selected outfits should allow a piece of apparel;
- using multiple layer rules in the same pattern makes so ALL layers should be a part of the same piece of apparel;
- using multiple body part group rules in the same pattern makes so ALL of them should be a part of the same piece of apparel;
- patterns work by the rule of "first come first sirved", i.e. first pattern that gets applied to a piece of apparel cancels all the following;
- patterns have higher priority over "random" dyeing, so colonists might not be able to achieve a buff because patters don't allow it.

You can see layers and bodyparts that clothing covers in clothing stats.

Often asked questions:
Q: I see more colors in station menu than in the mod selection.
A: Other colors are from current colony ideologies and from favorite of current pawn. It seems that game may add multiple ideo colors. So styling station has extra "variable" colors, when pattern editor only offers fixed ones.

Languages:
- English;
- Chinese Simplified by gaogzs;
- Chinese Traditional by gaogzs;
- Russian by Reiquard, khoss;

External links: github[github.com]
Popular Discussions View All (1)
40
14 Apr @ 8:42am
PINNED: Issues
avil
269 Comments
Gary 7 Aug @ 6:13am 
Haha you're right. Further to my last comments, I have done even more digging and I think this is actually due to an issue with the game's defs.

I can see there's a colour introduced in version 1.5 to Data\Core\Defs\ColorDefs\ColorDefs.xml, called ReddishBrown. It's supposed to have a parent of HairColorDefBase, but they left it blank. I suspect this causes the game to consider it "Misc", which makes it appear on the styling station. Because your code doesn't show "Misc", only "Ideo", it doesn't show.

So this ReddishBrown I see on the native styling station for Apparel I am pretty sure shouldn't be there.
avil  [author] 7 Aug @ 6:03am 
You're digging too deep. I've added faq to mod desription. In short, these're colors that pawns add, not "default" colors. (ideo colors, favorite colros, etc).
Gary 7 Aug @ 5:58am 
(continued)

I downloaded the source for the mod, and recompiled with "x.colorType == ColorType.Ideo || x.colorType == ColorType.Misc" in Dialog_ColorPatterns, and could then see that brown color in the mod's colour picker.

I am assuming there's some code in the game somewhere that adds this "Misc" ColorType to an existing definition at runtime, but I think it's a bit beyond my skills to find out how that's happening.

I would really appreciate it if you were able to do a sanity check on this for me, and update the mod so it matches the palette on the styling station dialog.

Here's a few screenshots to demonstrate: https://imgur.com/a/self-dyeing-stuff-nQTp7nI

Many thanks for this great mod, saves me a lot of time every play through.
Gary 7 Aug @ 5:57am 
Hi avil, The styling station seems to offer a dark brown colour for apparel that isn't available in the mod's colour picker interface. This dark brown is independent of those extra per-pawn favourite and ideo colors. I can observe this in 1.5 with no mods running except this one.

I think this is because the mod code looks for defs with ColorType "Ideo", but this brown colour doesn't have this property.

When I manually use the styling station to set this dark brown color, the apparel in the save game is set to RGBA(0.518, 0.325, 0.184, 1.000).

Seemed very bizarre to me, so I decompiled the games source code and had a look at Dialog_StylingStation. When building the list of colours, the game looks for a ColorType of "Misc", in addition to "Ideo", but I couldn't find any defs with this ColorType.

(to be continued)
Zenuge 5 Aug @ 11:06am 
2nd to Ken, never had a problem now colonist are just self dyeing even when disabled.
Nightfish 11 Jul @ 1:34am 
I see. I use dyes to color code pawns with a psychic bond so I have an easier time with caravans and quests. That's why I want them to be diligent about dying themselves.
avil  [author] 11 Jul @ 1:32am 
I think it would be too much. In the first place I made this mod so I could actually use styling station more than once for the whole run. I though it's neat but too much work, and didn't want it to affect the flow of the game. If anything, I think I should add a check to skip the action when mood is close to breaking point.
Nightfish 11 Jul @ 1:10am 
Would it be possible to have an option to make the self-dying a higher priority? I find that a lot of the time when my people swap items they do not recolor all of their gear and I would really like them to look uniform. I assume they don't do it all the way because they have enough of it recolored to get the moodbuff?
tanyfilina 3 Jul @ 1:54am 
Could you please add a compatibility with a Styling Station from Primitive Workbenches ?
Chroma 29 Jun @ 1:32pm 
I figured it out I wasnt giving them enough time to sort their colours out