Prison Architect

Prison Architect

Not enough ratings
LaundryFix automatic fix and buyable spare uniforms
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.167 KB
Aug 5, 2024 @ 2:01pm
Aug 9, 2024 @ 5:30pm
9 Change Notes ( view )

Subscribe to download
LaundryFix automatic fix and buyable spare uniforms

Description
Changelog:
- new Object 'Automatic Fix'
-> This object will delete ALL prisoner uniforms in your prison and places a dirty prisoner uniform on EVERY bed (not BulkBeds). The exactly needed amount of uniforms is evenly distributed to all marked Intake locations.
- new Object 'LaundryFix Mark Intake Location'
- new Object 'LaundryFix Debug Object'


LaundryFix automatic fix and buyable spare uniforms
This mod addresses laundry issues in large prisons with multiple laundries. Dirty and crumpled prisoner uniforms will now be moved to the nearest laundry machine and ironing board.
New Automatic Fix (Note: Dormitories with BulkBeds are not supported yet)
In v2 of this mod i created an Object which when placed will delete all prisoner uniforms in your prison and places a dirty prisoner uniform on EVERY bed (not BulkBeds). The remaining 10% of uniforms will be placed evenly near to the previously placed 'LaundryFix Mark Intake Location' objects.

This mod also allows you to buy a single spare prisoner uniform or a stack (20x) of spare prisoner uniforms, similar to this workshop mod: https://steamcommunity.com/sharedfiles/filedetails/?id=374083492
The game will automatically order prisoner uniforms if you have fewer than 110% of your prisoner capacity in uniforms. (in small prisons its more than 110%) However, Prison Architect is not efficient at distributing items evenly. Over time, this may lead to an imbalance in the distribution of uniforms, causing either a surplus (which can lead to a deadlock) or a shortage (leaving some cells without uniforms).

You can find the items listed as 'Spare Uniform 1x' and 'Spare Uniforms 20x'. Simply place the spare uniforms in the laundry or cell block that lacks enough uniforms. Be mindful of the number and placement of spare uniforms, as having more than the number of laundry baskets (per cell block and laundry) can lead to a deadlock. I recommend having fewer spare uniforms than half the number of laundry baskets per laundry. You can always dump unnecessary uniforms if needed.

How to apply?
(IMPORTANT: Backup your prison)
To ensure every cell has a prisoner uniform, you have two options:
Option 1. Automatic Fix (Bulk beds not supported yet)
- Place 'LaundryFix Mark Intake Location' in every intake area
- IMPORTANT: Leave 1-4 cells to the right (default orientation) unoccupied. The number of needed free cells depends on your prison's capacity and number of intakes.
- Place 'LaundryFix Automatic Fix' somewhere on the map.
Option 2. Manual Fix (works best at night just before they wake up)
- Place a single spare uniform in every cell and dump all uniforms currently in the laundry or laundry baskets.
- Place spare uniforms equal to 10% of your capacity in your intake zones (round up).
(Optional): You can verify your changes by placing the 'LaundryFix Debug Object' and checking if 'sumUniformAll' is correct: (this object will have a huge impact on perfomance, so only place it temporarily)
prisoner uniforms ordered/needed = math.Ceil(totalCapacity*1.1)
6 Comments
SirenIsTired Nov 9, 2024 @ 8:32am 
rad thank you
xZohaan  [author] Nov 6, 2024 @ 10:34am 
Yes, i mean the reception.
SirenIsTired Nov 6, 2024 @ 8:25am 
I'm sorry, what do you mean by "intake area"? as in the reception area where prisoners are brought in? the laundry room? or do we need one of those in each cell?
Ozoneraxi Oct 22, 2024 @ 8:19pm 
@xZohaan - Honestly it is ridiculous the community has to rely on over engineered solutions to fix what should have been seemingly simple and functional features.
xZohaan  [author] Aug 9, 2024 @ 6:42am 
@Ozoneraxi:
Yes, that should be correct. The issue of uniforms not being delivered to some cells could be due to them being placed in empty cells instead (no prisoner assinged). The "Automatic Fix" object in the new version of this mod addresses this by ensuring that a dirty prisoner uniform is placed on every bed (excluding BulkBeds) and that the correct number of uniforms is evenly distributed to all marked intake locations. This helps prevent the misallocation of uniforms and ensures that every occupied cell receives one.
Ozoneraxi Aug 7, 2024 @ 1:45am 
So a possible reason some cells were not delivered uniforms in some prisons I saw was because they were delivered to empty cells instead? Good find.