RimWorld

RimWorld

57 ratings
Auto-assign Inventories on Caravan arrival
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
326.379 KB
31 Oct, 2022 @ 5:32pm
11 Jul @ 11:32am
6 Change Notes ( view )

Subscribe to download
Auto-assign Inventories on Caravan arrival

Description
Description:
Automatically distributes things carried in the inventory of caravan members to pawn's inventories in accordance to their requirements set by the "Assign"-tab assignments (like medicine) and drug-policies when a caravan arrives on a map.

- For example:
Alice and Bob are in the same caravan. Both should carry 5 beer due to a drug policy assignment.
Alice has 1 beer in her inventory and Bob has 12 beer.
Once Alice and Bob's caravan enters a map, this mod will distribute Bob's beers by moving 4 of them to Alice's inventory.
Now Alice carries 5 beer and Bob carries 8 beer, both satisfying their drug policy requirement.

Everyone is happy!
Until they die from an ambush of manhunting squirrels because they got drunk...

---

This will also work nicely if you are using the ammo option in Yayo's Combat 3 and set colonists to always carry a certain amount of ammo.

---

Compatibility:
No known incompatibilities.

Please report any issues and include the HugsLib log (CTRL+F12) if possible when reporting bugs,
it helps immensely tracking down what went wrong, thank you!

---

Modder notes:
If anyone wishes to integrate this patch into a bigger compilation of tweaks/patches, feel free to do so, but please inform me.
A short mention for writing the code would also be appreciated in that case.

---

GitHub: https://github.com/XT-0xFF/AutoAssignInventoryCaravan
11 Comments
Syrus  [author] 6 Jul @ 11:00am 
Version 1.6.0
No significant code changes
CrazyOwl 30 May @ 4:28am 
Thats a shame... I've been looking for ages for a mod that could make it so that my mechanitors wouldn't pile up all the caravan inventory in their own inventory and spread it to mechs instead.
Syrus  [author] 26 May @ 1:15pm 
No, the intention is only to ensure colonists have what they should have according to the Assign-tab and drug policies, instead of having the items piled on caravan animals or in one person's pockets

It will not move superflous items in colonists's inventories to caravan animals

Since colonists are not slowed down by carrying too much iirc, it does not matter if their inventory is full
CrazyOwl 26 May @ 4:46am 
Does it actually work the other way around? Can you set it so that some materials and items are transfered to pack animals or mechs?
Syrus  [author] 12 Apr, 2024 @ 3:10pm 
Version 1.5.0
No code changes -- tested and appeared to work fine
Syrus  [author] 7 Jan, 2024 @ 1:51pm 
Version 1.4.1
Reduced mod size by removing git-, obj-, & .vs-files
Syrus  [author] 17 Sep, 2023 @ 2:25am 
Don't know if it works with vehicles, I haven't played since they were introduced and it depends on how they are implemented. If you happen to test it, tell me if it works.

Simple Sidearms weapons don't get reassigned, though I was considering looking into writing a patch for it. Not sure how easily it can be done though, since Simple Sidearms has a special way of assigning weapons.
Highlander3787 16 Sep, 2023 @ 9:04pm 
Does this work with vanilla vehicles expanded and simple sidearms? I would love to add this to save time when I go raiding caravans if it does
G~ 25 Aug, 2023 @ 8:49am 
Man, I love the modding community. Thanks for your work, Syrus.
Karmapowered 21 Jun, 2023 @ 8:35am 
Such a nice mod to squish out yet another time-waster in my RW games (especially since I'm rather fond of frequent caravanning).

Thank you very much.