RimWorld

RimWorld

Not enough ratings
Food Is Not Reserved For Prisoners
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
218.283 KB
17 Jul @ 2:30pm
23 Jul @ 6:29pm
2 Change Notes ( view )

Subscribe to download
Food Is Not Reserved For Prisoners

Description
Ever tried to haul some food from a prison, only to be told it's reserved for prisoners? Yeah? That's really dumb: hence this mod.

This mod does two things:
1. It makes it so that colonists can be forced to haul a thing, even if to haul that thing would be considered a breach of propriety.
2. It removes the ": Reserved for prisoners" suffix from the right-click-menu option for forcing a pawn to ingest something.

This is achieved via two trivial and inobtrusive Harmony transpiler patches.

But wait—there's more! By popular demand, this mod can actually do three things! (Ooh... fancy).
If you would prefer your colonists to be able to haul food from prisons automatically, you can make it so by enabling the "Allow automatic hauling" setting in this mod's options.

When the "Allow automatic hauling" setting is enabled, pawns will automatically haul food stored in prisons just as they would any other item.
There are two exceptions: food delivered to a prison, by a warden, via the "Deliver Food" job will be temporarily reserved-for-prisoners; food dropped in a prison by manually dropping the food from a colonist's inventory will also be temporarily reserved-for-prisoners (this is an opt-out setting).
These exceptions are in place to prevent pawns from getting stuck in a loop of delivering food only to immediately haul it back to whence it came.

The source-code for this mod can be found at https://github.com/just-harry/food-is-not-reserved-for-prisoners-for-rimworld.
17 Comments
Zombie 10 Aug @ 8:09am 
1.5 for us neanderthals?
Avarice 26 Jul @ 2:45pm 
well that makes me super excited! Time to wait even more impatiently for my most used mods to update for 1.6. XD

this problem has haunted me for a looong time. Awesome! I was ready to play games with hauling zones to ensure food was nearby if I could only stop auto hauling. This "compromise" is great.
VitaKaninen 23 Jul @ 6:39pm 
Nice!
"Just Harry"  [author] 23 Jul @ 6:38pm 
There's more demand than I anticipated for allowing automatic hauling.

Well—I am a man of the people, so I've added an option for allowing automatic hauling :csdsmile:

To avoid the issue of pawns getting stuck in an infinite loop of delivering food only to immediately haul it back to whence it came, I've implemented a small compromise: food delivered to a prison by a warden, or manually dropped in a prison from a pawn's inventory, is temporarily reserved-for-prisoners for nine hours (that duration is configurable).

When a thing of food is selected, if it's temporarily reserved-for-prisoners it will have a gizmo for prematurely cancelling that reservation.
Avarice 23 Jul @ 4:04pm 
I would personally love a mod that allowed automatic hauling away of food in a prison cell, the trade off of not delivering prison food would be small for me. Although I personally imagine changing/removing jobs is a headache which is why I havent even bothered looking into it

I will without a doubt use and love this mod. (this mod as in the one you posted and i'm now subscribed to, not the hypothetical.)
Kupie 23 Jul @ 11:08am 
Thanks for this! Drove me crazy that for the prison I'd have to right click -> Pick up (which I think is part of pick up and haul) -> manually go drop the items out of prison
Adora 22 Jul @ 11:23am 
I just started running into this issue with prisoner's that produce food items like insect jelly and what not with the biology stuff. It's crazy to see this initially uploaded so recently when I assume people have struggled with this for years. This is very helpful!

I've been searching all over, and I do not know how to mod, but is it possible to remove the prisoner reserved food function all together? Like if I wanted to give my prisoner's food, I could designate a stockpile in the prison, this way I could also specify what meals they get, or do not get if I am experiencing a food crisis, and make it a dumb labor hauling job.

The meal delivery job to prisoners is a pretty silly one overall IMO.

This mod fixes my immediate problem, but something that removes the prison food restriction entirely would require less manual management.

Thank you!
VitaKaninen 21 Jul @ 6:26am 
I see, Thanks!
"Just Harry"  [author] 21 Jul @ 6:23am 
The original intention is to make it possible to haul food out of a prison at all.

The vanilla behaviour is such that it's impossible to haul food out of a prison, because: the right-click-menu option for hauling is disabled for food in a prison; the vanilla haul-designator has no effect on food in a prison; and colonists won't automatically haul food that's in a prison (even if it's not in a stockpile, and even if there's a higher priority stockpile elsewhere).

With a mod-added hauling-designator that affects food in a prison, the value-proposition of this mod is lessened, yes :D

Also, I realise now that I can't add an option to make this affect automatic hauling, because that would break the "Deliver Food" job for prison wardens (the delivered food could get hauled away before the prisoner eats it).
VitaKaninen 21 Jul @ 5:58am 
Well, that is how I would use this mod, but maybe I am not understanding what your intention was.

I use the Pick up and Haul mod, so I can already manually tell them to haul it or pick it up. If this mod just does the same thing, then maybe I don't need it. I thought it freed up the food items so that haulers would come by and pick them up if I strip a prisoner in the prison, or if too many meals get dropped in there for some reason.

If I still have to manually tell them to haul it, then I can already do that with the other mod, so maybe I don't understand what this mod is attempting to fix, or how you intend for it to be used.

Is this intended for people who are not using Pick up and Haul, and have no other way to move food out of the prison?