How to FIX stuck prisoners (prisoners that have to WEE)

(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.

Moderator: NBJeff

Guvnor
level2
level2
Posts: 80
Joined: Wed Oct 03, 2012 5:26 pm
Location: Wisconsin

How to FIX stuck prisoners (prisoners that have to WEE)

Postby Guvnor » Fri Oct 05, 2012 12:32 am

UPDATE: I've added this to bug tracker. http://bugs.introversion.co.uk/view.php?id=10
Also, this fix also dislodges prisoners stuck on medi-beds.


ISSUE: Prisoners get stuck with the "WEE" graphic displayed, usually in their cell. They will stay stuck forever. After a while, all of their needs will be at maximum.

If you play long enough you could have 1/3 to 1/2 of your prison population stuck like this. Edit your savegame file and take a look at a stuck prisoner:

BEGIN "[i 471]"
Id.i 471
Id.u 2423279
Type Prisoner
SubType 1
Pos.x 139.311
Pos.y 83.9998
Dest.x 185.000
Dest.y 85.0000
AiSetTarget true
Cell.i 32
Cell.u 2406268
Gang.id 1
Gang.timer 0.676531
BEGIN Needs
BEGIN Needs
Size 8
BEGIN "[i 0]" id.i 0 id.u 2423271 Type Bladder ActionPoint 63.0000 TimeToAction 600.000 TimeToFailure 720.000 Charge 100.000 END
BEGIN "[i 1]" id.i 1 id.u 2423272 Type Bowels ActionPoint 58.0000 TimeToAction 600.000 TimeToFailure 1440.00 Charge 100.000 END
BEGIN "[i 2]" id.i 2 id.u 2423273 Type Sleep ActionPoint 64.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 100.000 END
BEGIN "[i 3]" id.i 3 id.u 2423274 Type Food ActionPoint 64.0000 TimeToAction 960.000 TimeToFailure 1440.00 Charge 100.000 END
BEGIN "[i 4]" id.i 4 id.u 2423275 Type Hygiene ActionPoint 63.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 100.000 END
BEGIN "[i 5]" id.i 5 id.u 2423276 Type Defense ActionPoint 33.0000 TimeToAction -360.000 TimeToFailure -360.000 END
BEGIN "[i 6]" id.i 6 id.u 2423277 Type Family ActionPoint 37.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 100.000 END
BEGIN "[i 7]" id.i 7 id.u 2423278 Type [dev]Weapon ActionPoint 33.0000 END
END
END
END

To dislodge all stuck prisoners search and replace "AiSetTarget true" with "AiSetTarget false" or delete the lines that contain "AiSetTarget true" and leave a blank or neatly remove the line. At this point if you load your save game all of your prisoners will be unstuck and will begin to satisfy their needs as normal, but there is still one problem. It relates to "Charge 100.000." If these prisoners have been stuck for a wihle you will see their needs set to maximum, "Charge 100.000." These newly unstuck prisoners will be mighty pissed. http://www.youtube.com/watch?v=dgQzZbNxZZ0 Search and replace "Charge 100.000" with "Charge 1.0000" in your savegame file. Now when you load up your game you will enjoy several hours of relative peace and no stuck prisoners.

Here is what a fixed prisoner looks like:

BEGIN "[i 471]"
Id.i 471
Id.u 2423279
Type Prisoner
SubType 1
Pos.x 139.311
Pos.y 83.9998
Dest.x 185.000
Dest.y 85.0000
AiSetTarget false
Cell.i 32
Cell.u 2406268
Gang.id 1
Gang.timer 0.676531
BEGIN Needs
BEGIN Needs
Size 8
BEGIN "[i 0]" id.i 0 id.u 2423271 Type Bladder ActionPoint 63.0000 TimeToAction 600.000 TimeToFailure 720.000 Charge 1.0000 END
BEGIN "[i 1]" id.i 1 id.u 2423272 Type Bowels ActionPoint 58.0000 TimeToAction 600.000 TimeToFailure 1440.00 Charge 1.0000 END
BEGIN "[i 2]" id.i 2 id.u 2423273 Type Sleep ActionPoint 64.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 1.0000 END
BEGIN "[i 3]" id.i 3 id.u 2423274 Type Food ActionPoint 64.0000 TimeToAction 960.000 TimeToFailure 1440.00 Charge 1.0000 END
BEGIN "[i 4]" id.i 4 id.u 2423275 Type Hygiene ActionPoint 63.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 1.0000 END
BEGIN "[i 5]" id.i 5 id.u 2423276 Type Defense ActionPoint 33.0000 TimeToAction -360.000 TimeToFailure -360.000 END
BEGIN "[i 6]" id.i 6 id.u 2423277 Type Family ActionPoint 37.0000 TimeToAction 1440.00 TimeToFailure 1440.00 Charge 1.0000 END
BEGIN "[i 7]" id.i 7 id.u 2423278 Type [dev]Weapon ActionPoint 33.0000 END
END
END
END
Last edited by Guvnor on Sat Oct 06, 2012 7:51 am, edited 1 time in total.
Huehuecoyotl
level0
Posts: 3
Joined: Mon Oct 01, 2012 6:22 am

Postby Huehuecoyotl » Fri Oct 05, 2012 12:56 am

How do you edit the file?
Guvnor
level2
level2
Posts: 80
Joined: Wed Oct 03, 2012 5:26 pm
Location: Wisconsin

Postby Guvnor » Fri Oct 05, 2012 12:57 am

It's just a text file so any text editor will do. Notepad, for instance.
User avatar
eagleFMJ
level1
level1
Posts: 24
Joined: Sat Sep 29, 2012 2:09 am

Postby eagleFMJ » Fri Oct 05, 2012 3:03 am

Does this work for all stuck prisoners or just the ones with wee symbol?

eagle
Guvnor
level2
level2
Posts: 80
Joined: Wed Oct 03, 2012 5:26 pm
Location: Wisconsin

Postby Guvnor » Fri Oct 05, 2012 3:11 am

It works for all stuck prisoners.
Kamirose
level0
Posts: 6
Joined: Wed Oct 03, 2012 10:49 am

Postby Kamirose » Fri Oct 05, 2012 3:25 am

I don't see the AiSetTarget true value for my stuck prisoner. This is what I have for him:

Code: Select all

    BEGIN "[i 788]"   
        Id.i                 788 
        Id.u                 530053 
        Type                 Prisoner 
        SubType              1 
        Pos.x                179.415 
        Pos.y                79.0681 
        Shackled             true 
        Cell.i               71 
        Cell.u               517510 
        Timer                0.780339 
        Gang.id              1 
        Gang.timer           1.76480 
        BEGIN Needs     
            BEGIN Needs     
                Size                 10 
                BEGIN "[i 0]"      id.i 0  id.u 530043  Type Bladder  ActionPoint 33.0000  TimeToAction 600.000  TimeToFailure 720.000  Charge 75.7876  END
                BEGIN "[i 1]"      id.i 1  id.u 530044  Type Bowels  ActionPoint 50.0000  TimeToAction 600.000  TimeToFailure 1440.00  Charge 65.9657  END
                BEGIN "[i 2]"      id.i 2  id.u 530045  Type Sleep  ActionPoint 53.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 66.6670  END
                BEGIN "[i 3]"      id.i 3  id.u 530046  Type Food  ActionPoint 36.0000  TimeToAction 960.000  TimeToFailure 1440.00  Charge 89.8883  END
                BEGIN "[i 4]"      id.i 4  id.u 530047  Type Hygiene  ActionPoint 38.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 81.0761  END
                BEGIN "[i 5]"      id.i 5  id.u 530048  Type Comfort  ActionPoint 56.0000  TimeToAction 720.000  TimeToFailure 1440.00  Charge 94.3597  END
                BEGIN "[i 6]"      id.i 6  id.u 530049  Type Defense  ActionPoint 48.0000  TimeToAction -360.000  TimeToFailure -360.000  END
                BEGIN "[i 7]"      id.i 7  id.u 530050  Type Freedom  ActionPoint 63.0000  TimeToAction -1440.00  TimeToFailure -1440.00  END
                BEGIN "[i 8]"      id.i 8  id.u 530051  Type Recreation  ActionPoint 34.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 100.000  END
                BEGIN "[i 9]"      id.i 9  id.u 530052  Type [dev]Weapon  ActionPoint 48.0000  END
            END
        END
    END


Would just changing his x and/or y position unstick him?
Guvnor
level2
level2
Posts: 80
Joined: Wed Oct 03, 2012 5:26 pm
Location: Wisconsin

Postby Guvnor » Fri Oct 05, 2012 3:33 am

I don't think he's stuck, he's handcuffed. Just remove the line "shackled true" and save the file. That should do it.
MrCai
level1
level1
Posts: 16
Joined: Tue Oct 02, 2012 8:14 pm

Postby MrCai » Fri Oct 05, 2012 7:53 am

Nice find, what about e.g. Grounds Keeper frozen with "place in medibed", their entry I gather be in the same text file, or just prisoner in there?
Kamirose
level0
Posts: 6
Joined: Wed Oct 03, 2012 10:49 am

Postby Kamirose » Fri Oct 05, 2012 7:58 am

Guvnor wrote:I don't think he's stuck, he's handcuffed. Just remove the line "shackled true" and save the file. That should do it.

He's been sitting handcuffed in the same spot in the canteen for three days now, not doing anything else. He's pretty stuck. I'll try the handcuffs, though.

Edit: Setting the handcuff stat to false worked :) Also was able to test the first way on a stuck prisoner, and it worked. Thanks ^^
Guvnor
level2
level2
Posts: 80
Joined: Wed Oct 03, 2012 5:26 pm
Location: Wisconsin

Postby Guvnor » Fri Oct 05, 2012 10:34 am

MrCai,

Grounds Keepers are in there as well. Their object type is "Gardener." They look like this:

Code: Select all

    BEGIN "[i 459]"   
        Id.i                 459 
        Id.u                 2472224 
        Type                 Gardener 
        Pos.x                43.5745 
        Pos.y                121.249 
        Or.x                 -0.999890 
        Or.y                 -0.00273836 
        Walls.x              -1.00000
        Damage               0.0778273 
        Vel.x                -1.24763 
        Vel.y                -0.00341682 
        Dest.x               37.5000 
        Dest.y               121.500 
        Timer                5.00000 
        JobId                41036 
    END


I've not seen a stuck gardner waiting for a MediBed, but I have seen a stuck guard. I was able to free the guard by clicking on him and choosing "cancel task." I think it was a right-click. You can also edit the save file and remove the line that includes the word "Damage." That will fully heal him.

Guvnor
Robert
level2
level2
Posts: 106
Joined: Tue Oct 30, 2001 5:39 am
Location: Oklahoma

Postby Robert » Fri Oct 05, 2012 2:10 pm

In my crazy mind I feel the handcuffed prisoners that just sit there are suppose to go into lock down but due to the amount of trouble caused their timer runs down before they are moved and the job is lost so they just sit there unlike the ones going to solitary their timer doesn't start until they are put there.

I have had success with escorting them to the holding cell after it quiets down resets them and gets the handcuffs removed allowing them to continue with their needs.
tertaim
level3
level3
Posts: 302
Joined: Fri Sep 28, 2012 11:24 pm

Postby tertaim » Fri Oct 05, 2012 3:29 pm

does this work for the medbay aswell?
User avatar
Chad
level3
level3
Posts: 255
Joined: Wed Sep 26, 2012 8:00 pm

Postby Chad » Fri Oct 05, 2012 4:04 pm

Robert wrote:In my crazy mind I feel the handcuffed prisoners that just sit there are suppose to go into lock down but due to the amount of trouble caused their timer runs down before they are moved and the job is lost so they just sit there unlike the ones going to solitary their timer doesn't start until they are put there.

I have had success with escorting them to the holding cell after it quiets down resets them and gets the handcuffs removed allowing them to continue with their needs.


Sounds reasonable to me. Most prisoners get stuck when they have to be escorted (eg sickbay or handscuffed prisoners).
MrCai
level1
level1
Posts: 16
Joined: Tue Oct 02, 2012 8:14 pm

Postby MrCai » Fri Oct 05, 2012 5:15 pm

Just done this now, all working well. However i didn't have the AI line, instead my stuck prisoners were in need of changing their shackled true to shackled false, thanks again
User avatar
Jimmeh
level0
Posts: 5
Joined: Sun Oct 07, 2012 12:53 am
Location: UK
Contact:

Postby Jimmeh » Tue Oct 09, 2012 12:38 am

The unstuck seemed to work pretty well, but repair all damage causes the save to crash the game every time it's loaded :( Wish I could get rid of these damn corpses.
FunSponge.net

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 1 guest