[Tutorial] control any prisoner!

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

Moderator: NBJeff

wilcomega
level1
level1
Posts: 20
Joined: Wed Nov 21, 2012 4:34 pm

[Tutorial] control any prisoner!

Postby wilcomega » Wed Apr 30, 2014 10:32 pm

with the alpha 10 update when you have failure conditions enabled, there is a possibility that you get locked up inside your own prison.
but what if you have your friends prison that you want to try to escape, well go ahead with this explanation.

its accually really simple, make sure you are not in your save file in the game.
open the save file with any text endit, i preffer Notepad++, and look for a prisoner. it should look something like this:

Code: Select all

BEGIN "[i 110]"   
        Id.i                 110 
        Id.u                 657617 
        Type                 Prisoner 
        SubType              0 
        Pos.x                64.6715 
        Pos.y                50.4506 
        Or.x                 -0.0770595 
        Or.y                 0.997027 
        Vel.x                -0.0264429 
        Vel.y                0.342129 
        Dest.x               62.5000 
        Dest.y               54.5000 
        Energy               41.0000 
        Cell.i               4 
        Cell.u               325366 
        Category             MaxSec 
        BoilingPoint         52.3358 
        Gang.id              1 
        Gang.timer           1.68260 
        BEGIN Bio       
            Forname              John 
            Surname              Daymond 
            Age                  22.0000 
            BodyScale            1.21405 
            HeadType             Head1 
            Traits               Violent 
            Traits               RisksLife 
            Traits               Lethal 
            Traits               Clever 
            Sentence             22 
            Served               4.00039 
            Parole               18 
            SkinColour           0x9e6329ff 
            BEGIN Convictions
                Size                 2 
                BEGIN "[i 0]"      Crime AttemptedMurder  Sentence 19  Plea true  Guilty true  END
                BEGIN "[i 1]"      Crime Perjury  Sentence 3  Plea true  Guilty true  END
            END
            BEGIN Family     
                Size                 3 
                BEGIN "[i 0]"      Type Wife  Age 22.5894  BodyType FemaleBody  HeadType FaceWife  BodyScale 0.836556  SkinColour 0xffddb7ff  ClothingColour 0x8747adff  END
                BEGIN "[i 1]"      Type Mother  Age 46.0000  BodyType FemaleBody2  HeadType FaceOldWoman3  BodyScale 1.08675  SkinColour 0x9e6b3aff  ClothingColour 0x77200fff  END
                BEGIN "[i 2]"      Type Father  Age 43.0000  BodyType Prisoner3  HeadType FaceOldMan5  BodyScale 0.983970  SkinColour 0x9e6731ff  ClothingColour 0x613d16ff  END
            END
        END
        BEGIN StatusEffects END
        BEGIN Needs     
            BEGIN Needs     
                Size                 11 
                BEGIN "[i 0]"      id.i 0  id.u 661480  Type Bladder  ActionPoint 57.0000  TimeToAction 600.000  TimeToFailure 720.000  Charge 99.2986  END
                BEGIN "[i 1]"      id.i 1  id.u 661481  Type Bowels  ActionPoint 51.0000  TimeToAction 600.000  TimeToFailure 1440.00  Charge 97.1701  END
                BEGIN "[i 2]"      id.i 2  id.u 661482  Type Sleep  ActionPoint 42.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 37.1458  END
                BEGIN "[i 3]"      id.i 3  id.u 661483  Type Food  ActionPoint 52.0000  TimeToAction 960.000  TimeToFailure 1440.00  Charge 28.2708  END
                BEGIN "[i 4]"      id.i 4  id.u 661484  Type Hygiene  ActionPoint 64.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 63.2222  END
                BEGIN "[i 5]"      id.i 5  id.u 661485  Type Clothing  ActionPoint 49.0000  TimeToAction 4320.00  TimeToFailure 4320.00  Charge 95.0590  END
                BEGIN "[i 6]"      id.i 6  id.u 661486  Type Comfort  ActionPoint 38.0000  TimeToAction 720.000  TimeToFailure 1440.00  Charge 22.2639  END
                BEGIN "[i 7]"      id.i 7  id.u 661487  Type Safety  ActionPoint 56.0000  TimeToAction -360.000  TimeToFailure -360.000  Charge 68.3889  END
                BEGIN "[i 8]"      id.i 8  id.u 661488  Type Freedom  ActionPoint 58.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 3.65278  END
                BEGIN "[i 9]"      id.i 9  id.u 661489  Type Family  ActionPoint 44.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 32.1528  END
                BEGIN "[i 10]"     id.i 10  id.u 661490  Type Recreation  ActionPoint 42.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 2.14583  END
            END
        END
        BEGIN Experience
            TickTimer            0.766558 
            BEGIN Experience TotalTime 3.00000  Freetime 3.00000  MoodNormal 3.00000  NoCondition 3.00000  END
            BEGIN Results    END
        END
    END


when you have found it you want to put the following line in the first section, thats where Id.i and Id.u are, also Type and sybType.
somewhere between those lines you want to paste this line:

Code: Select all

AvatarControl        true 


just save it, head inside the game and play as the choosed prisoner
be sure to let me know if it was helpfull
Karrade
level1
level1
Posts: 44
Joined: Sat Feb 01, 2014 7:53 pm

Re: [Tutorial] control any prisoner!

Postby Karrade » Mon May 05, 2014 9:51 am

I really wish this was a sticky somewhere off to try it now!
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: [Tutorial] control any prisoner!

Postby xander » Wed Jul 09, 2014 12:07 am

Because I had a hell of a difficult time finding this earlier today, some keywords to help others find this via the search functionality in the future: prisoner mode, failure mode, play as a prisoner, force failure mode.

xander

EDIT: I've copied this information to the wiki. The article could probably use some formatting help.
pati04
level1
level1
Posts: 23
Joined: Sat Apr 05, 2014 6:53 pm

Re: [Tutorial] control any prisoner!

Postby pati04 » Wed Jul 09, 2014 7:02 am

Thanks, always wonderd how i can do it (there is no on/off thing in the savefile).
Firefitter
level1
level1
Posts: 30
Joined: Fri Jul 04, 2014 12:32 pm

Re: [Tutorial] control any prisoner!

Postby Firefitter » Thu Jul 10, 2014 2:08 am

Great post.

I found it quite easily.

+1
Bobylein
level0
Posts: 5
Joined: Fri Jun 07, 2013 2:50 pm

Re: [Tutorial] control any prisoner!

Postby Bobylein » Thu Jul 10, 2014 10:17 pm

Thanks for the info! though you still have the building overlay and your view is still where the guards are, not where your controlled prisoner is, so you can't see yourself if you go somewhere without guards/cctv :(
flarn2006
level0
Posts: 9
Joined: Sat Jun 21, 2014 3:06 am

Re: [Tutorial] control any prisoner!

Postby flarn2006 » Sun Jul 13, 2014 2:11 am

There's a very strange bug with this that I'm not sure if it happens normally (during the failure condition.) You know how when prisoners need to get past a locked door, they wait in front of the door and a guard opens it for them? Well that happens here too: when I bump into a locked door, it queues an "Open Locked Door" action, and a guard opens the door for me. However, this happens even for places I'm not supposed to be. For instance, if I walk in front of the prison's front door that leads outside to the road, a guard actually opens it for me so I can walk out! Of course, as soon as I step out of the building I'm marked as "escaping", so any nearby guards will tase me and carry me back to my cell.

But there's an odd bug here too: even once I'm brought back to my cell, I'm still marked as "escaping". So as soon as I regain consciousness, even if I'm still in my cell, any nearby guards will tase me again! This repeats indefinitely. While it's certainly an effective method of keeping me where I belong, I doubt most prisons would do this in real life. :mrgreen: Plus, even once I'm allowed to leave my cell, they still keep tasing me, and dragging me back into my cell if I managed to make it out the door before I got tased again.
User avatar
111none
level4
level4
Posts: 970
Joined: Fri Oct 19, 2012 3:32 am
Location: Wangjing, Beijing, Peoples Republic of China

Re: [Tutorial] control any prisoner!

Postby 111none » Mon Jul 21, 2014 4:42 pm

flarn2006 wrote:There's a very strange bug with this that I'm not sure if it happens normally (during the failure condition.) You know how when prisoners need to get past a locked door, they wait in front of the door and a guard opens it for them? Well that happens here too: when I bump into a locked door, it queues an "Open Locked Door" action, and a guard opens the door for me. However, this happens even for places I'm not supposed to be. For instance, if I walk in front of the prison's front door that leads outside to the road, a guard actually opens it for me so I can walk out! Of course, as soon as I step out of the building I'm marked as "escaping", so any nearby guards will tase me and carry me back to my cell.

But there's an odd bug here too: even once I'm brought back to my cell, I'm still marked as "escaping". So as soon as I regain consciousness, even if I'm still in my cell, any nearby guards will tase me again! This repeats indefinitely. While it's certainly an effective method of keeping me where I belong, I doubt most prisons would do this in real life. :mrgreen: Plus, even once I'm allowed to leave my cell, they still keep tasing me, and dragging me back into my cell if I managed to make it out the door before I got tased again.

It's probably due to the fact that IV's coding of this function is currently unfinished.
yimbee
level1
level1
Posts: 34
Joined: Fri Jul 04, 2014 8:13 pm

Re: [Tutorial] control any prisoner!

Postby yimbee » Wed Jul 23, 2014 11:44 am

wilcomega wrote:with the alpha 10 update when you have failure conditions enabled, there is a possibility that you get locked up inside your own prison.
but what if you have your friends prison that you want to try to escape, well go ahead with this explanation.

its accually really simple, make sure you are not in your save file in the game.
open the save file with any text endit, i preffer Notepad++, and look for a prisoner. it should look something like this:

Code: Select all

BEGIN "[i 110]"   
        Id.i                 110 
        Id.u                 657617 
        Type                 Prisoner 
        SubType              0 
        Pos.x                64.6715 
        Pos.y                50.4506 
        Or.x                 -0.0770595 
        Or.y                 0.997027 
        Vel.x                -0.0264429 
        Vel.y                0.342129 
        Dest.x               62.5000 
        Dest.y               54.5000 
        Energy               41.0000 
        Cell.i               4 
        Cell.u               325366 
        Category             MaxSec 
        BoilingPoint         52.3358 
        Gang.id              1 
        Gang.timer           1.68260 
        BEGIN Bio       
            Forname              John 
            Surname              Daymond 
            Age                  22.0000 
            BodyScale            1.21405 
            HeadType             Head1 
            Traits               Violent 
            Traits               RisksLife 
            Traits               Lethal 
            Traits               Clever 
            Sentence             22 
            Served               4.00039 
            Parole               18 
            SkinColour           0x9e6329ff 
            BEGIN Convictions
                Size                 2 
                BEGIN "[i 0]"      Crime AttemptedMurder  Sentence 19  Plea true  Guilty true  END
                BEGIN "[i 1]"      Crime Perjury  Sentence 3  Plea true  Guilty true  END
            END
            BEGIN Family     
                Size                 3 
                BEGIN "[i 0]"      Type Wife  Age 22.5894  BodyType FemaleBody  HeadType FaceWife  BodyScale 0.836556  SkinColour 0xffddb7ff  ClothingColour 0x8747adff  END
                BEGIN "[i 1]"      Type Mother  Age 46.0000  BodyType FemaleBody2  HeadType FaceOldWoman3  BodyScale 1.08675  SkinColour 0x9e6b3aff  ClothingColour 0x77200fff  END
                BEGIN "[i 2]"      Type Father  Age 43.0000  BodyType Prisoner3  HeadType FaceOldMan5  BodyScale 0.983970  SkinColour 0x9e6731ff  ClothingColour 0x613d16ff  END
            END
        END
        BEGIN StatusEffects END
        BEGIN Needs     
            BEGIN Needs     
                Size                 11 
                BEGIN "[i 0]"      id.i 0  id.u 661480  Type Bladder  ActionPoint 57.0000  TimeToAction 600.000  TimeToFailure 720.000  Charge 99.2986  END
                BEGIN "[i 1]"      id.i 1  id.u 661481  Type Bowels  ActionPoint 51.0000  TimeToAction 600.000  TimeToFailure 1440.00  Charge 97.1701  END
                BEGIN "[i 2]"      id.i 2  id.u 661482  Type Sleep  ActionPoint 42.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 37.1458  END
                BEGIN "[i 3]"      id.i 3  id.u 661483  Type Food  ActionPoint 52.0000  TimeToAction 960.000  TimeToFailure 1440.00  Charge 28.2708  END
                BEGIN "[i 4]"      id.i 4  id.u 661484  Type Hygiene  ActionPoint 64.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 63.2222  END
                BEGIN "[i 5]"      id.i 5  id.u 661485  Type Clothing  ActionPoint 49.0000  TimeToAction 4320.00  TimeToFailure 4320.00  Charge 95.0590  END
                BEGIN "[i 6]"      id.i 6  id.u 661486  Type Comfort  ActionPoint 38.0000  TimeToAction 720.000  TimeToFailure 1440.00  Charge 22.2639  END
                BEGIN "[i 7]"      id.i 7  id.u 661487  Type Safety  ActionPoint 56.0000  TimeToAction -360.000  TimeToFailure -360.000  Charge 68.3889  END
                BEGIN "[i 8]"      id.i 8  id.u 661488  Type Freedom  ActionPoint 58.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 3.65278  END
                BEGIN "[i 9]"      id.i 9  id.u 661489  Type Family  ActionPoint 44.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 32.1528  END
                BEGIN "[i 10]"     id.i 10  id.u 661490  Type Recreation  ActionPoint 42.0000  TimeToAction 1440.00  TimeToFailure 1440.00  Charge 2.14583  END
            END
        END
        BEGIN Experience
            TickTimer            0.766558 
            BEGIN Experience TotalTime 3.00000  Freetime 3.00000  MoodNormal 3.00000  NoCondition 3.00000  END
            BEGIN Results    END
        END
    END


when you have found it you want to put the following line in the first section, thats where Id.i and Id.u are, also Type and sybType.
somewhere between those lines you want to paste this line:

Code: Select all

AvatarControl        true 


just save it, head inside the game and play as the choosed prisoner
be sure to let me know if it was helpfull




For give me why would you want to do this?
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: [Tutorial] control any prisoner!

Postby xander » Wed Jul 23, 2014 4:08 pm

yimbee wrote:For give me why would you want to do this?

Why not?

xander
spinroblox
level1
level1
Posts: 51
Joined: Mon Feb 18, 2013 3:15 am

Re: [Tutorial] control any prisoner!

Postby spinroblox » Mon Jul 28, 2014 7:21 pm

yimbee wrote:For give me why would you want to do this?

you don't want to be a prisoner?

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 7 guests