RimWorld

RimWorld

119 ratings
Apparel Ownership
3
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
270.514 KB
25 Jun, 2024 @ 11:20am
10 Jul @ 2:32am
12 Change Notes ( view )

Subscribe to download
Apparel Ownership

Description
Intro
I created this mod to give apparel an ownership property since I was too frustrated by pawns stealing each others' stuff.

Description
With this mod pawns who are not the owner won't be allowed to wear that specific apparel (forcing is still possible, the ownership is retained but bypassed).
This is particularly useful if you are utilizing a repair/mending mod, so your pawns' apparel won't get shuffled every time it gets repaired (it can come in handy also for other reasons).

Added in the 1.5 version of this mod
- Mod option "Prefer owned apparel over non-owned (even if worse)", which allows preference of owned apparel over better non-owned one.
- Mod option "Allow owned-by-pawn-only filter in built storage", which adds a button in furniture storage (shelves-like) to allow only apparel owned by that specific pawn. Higher priority storage would still snatch the item out of this one, as it should. If an item is already stored somewhere with this filter non-active, but then the filter is activated, the items not allowed would be removed only if they've a "better" storage to go (higher priority) - they wouldn't be allowed back though, as it should.

CAUTION: To handle the new "Allow owned-by-pawn-only filter in built storage" I had to override the method involved in checking for a better storage during hauling. It had to be done, the vanilla logic is too entangled to just patch (it would override itself in the next tick). Because of this, make sure to have the mod quite high in the list, so all the other mods can patch. Except what's needed, the override retains the vanilla logic.
If a mod conflicts with this function and the higher position doesn't help, just disable this option in the mod and the vanilla method will be used as usual!

How to
To assign ownership, select a pawn and right-click on the apparel you want to assign. Select "Assign Ownership".
Ownership can be swapped to another colonist (click "Reassign Ownership") or reset so anyone can wear it again (click "Reset Ownership").

Apparel's ownership can be checked both in the quick panel (bottom left) when is selected and in the detailed info under the category "Apparel".

For 1.5 quick search function, you can search the owner's name and the apparel will be listed in the results.

The ownership doesn't override the policies, so if, for example, a duster is assigned to the pawn "Djinn," he won't wear it if his policies don't allow dusters.

One thing is sure, no one else will since it's his duster!

F.A.Q.
I'm not new to programming in C#, but I'm new to Rimworld modding, so be kind and feel free to leave comments and feedback. I'll try to address any issue and keep the mod smooth.

Where should I put the mod?
I suggest at the end of the list, since it attaches a property to all apparel.

Can I add/remove it mid-save?
Yes, in my tests it didn't cause any problem.

Does it have multilingual support?
Yes now it has. I added some languages (of course with AI support for translation), but feel free to add more.

Is it compatible with XXX?
I don't know, you can try and tell me. I have tested with 150+ mods that are currently on my mods list and there was no conflict. But you never know ~

Can you do this/that to make it better?
I don't know. I published it just cause it was a very frustrating problem for me and I didn't find any other mod that would address this in a simple way (without complex bio-coding or apparel management). The comment area is open for suggestions and I might do improvements if I have time and I like the ideas.

Why did you attach the function to the right-click of a pawn?
I found it convenient, like simulating that pawn attaching a tag on the apparel.

Final remarks
I hope that someone will find it useful and will improve their game experience.

Enjoy!
Popular Discussions View All (1)
2
8 Sep, 2024 @ 3:02pm
Bug with a few mods
Kor
72 Comments
JayBird 14 Oct @ 8:41pm 
@Djinn There's been a few, and I think all of them have been from Vanilla Apparel expanded. Off the top of my head I know one they really like to try stealing from each other is the Chef's Toque (a hat).
Djinn  [author] 12 Oct @ 12:39am 
@JayBird could you tell me which apparel they're trying to equip, so I can try to replicate it and eventually find the reason?
JayBird 11 Oct @ 2:43am 
I'm having the same issue as Synthhawk, my pawns endlessly try to equip apparel that is not theirs, to the point of starvation or exhaustion.
Djinn  [author] 16 Sep @ 4:09am 
@CloakerM I can't replicate that without the optional setting I mentioned. With that setting ON, I can replicate what you describe (and that's intended), without everything works normal. Maybe some conflict with other mods? Can't say, but I'm not able at the moment to replicate the issue.
CloakerM8 11 Sep @ 1:54pm 
No. When you have no personal apparel selected for a pawn they still will not collect any new apparel. It blocks the optimise apparel job entirely whether someone has personal apparel or not.
Djinn  [author] 11 Sep @ 7:15am 
@CloakerM8 That's not very clear, please explain better the dynamic. If you mean that when the optional setting to "prefer own apparel even if something better non-their is available" is ON they don't pick up anything else if it's not their...that's intended. It's an optional setting on purpose.
CloakerM8 10 Sep @ 4:30pm 
I'm having a problem with this mod that it breaks the optimise apparel job meaning that this mod breaks pawns from automatically getting apparel if its allowed.
pfe 30 Aug @ 9:43am 
I love your mod and it's amazing as is. There is one small thing that would help me in particular though is if I could add support for Outfit Stands Plus where I could make the Mechanized Outfit Stand capable of designating to restrict for Pawn apparel setting.

Only other comment is perhaps an additional tab either on the pawn or a completely new interface to track where the owned items are who they are attached to. Things start getting messy with very large colonies.
pogopogo 16 Aug @ 9:08am 
Simple and elegant, great mod! However, I'm having the same issue as Mikey Yakson: If I set the mod option to prefer owned apparel, the pawns stop wearing any other (unassigned) apparel (I'm on Odyssey/1.6). Hope you can find a way to replicate and fix it when you have time!
Djinn  [author] 8 Aug @ 11:57pm 
@Synthawk Cargo bay storage? I'm not sure what mod adds that kind of storage options of if you're just calling shleves in your ship that way...I need more info to debug that. Consider that impossibility to wear clothes that are not "your" is the core of this mod, so if pawns don't do it is because some other mod is overwriting the logic.