Unique Prisoners

Discussion about Mods for Prison Architect

Moderator: NBJeff

User avatar
demeggy
level1
level1
Posts: 10
Joined: Wed Oct 14, 2015 8:05 pm
Location: UK

Unique Prisoners

Postby demeggy » Sat Oct 24, 2015 3:03 pm

Afternoon all,

I've been doing a bit of research to see if I can figure out how the unique prisoners ingame are created, and so far have come up 'stumped'. Any suggestions? Ideally I'm looking to assign a unique prisoner a specific face and body texture. The only way I can think of doing it is spawning them ingame via a LUA script and defining their properties as part of it.

Thanks,

D
User avatar
aubergine18
level2
level2
Posts: 231
Joined: Sun Jul 05, 2015 3:24 pm

Re: Unique Prisoners

Postby aubergine18 » Sat Oct 24, 2015 5:03 pm

First, it's not currently possible to add new types of prisoner entity (there is no 'Properties Prisoner' in the materials.txt). However you can do some customisations to existing prisoners...

Their sprites are in `people.png`, with positions defined (I think) in `objects.spritebank`.

You can't change things like skin colour, head, etc., for a specific prisoner because the Bios are not currently available to scripting.

You can change the body size using .SubType from a script; 0 = skinny, ... 3 = fat. Or something like that.

You can change the colour of their uniform via .Category property.

If you are doing a campaign script, there are additional things you could try. For example, you could look at a save game and see how "Actor" entities are defined, then try adding your own. An "Actor" entity is not a real prisoner, but their sprites can be customised to make them look as such. In theory you could spawn entities even in sandbox games, though I haven't tried.
User avatar
demeggy
level1
level1
Posts: 10
Joined: Wed Oct 14, 2015 8:05 pm
Location: UK

Re: Unique Prisoners

Postby demeggy » Sat Oct 24, 2015 5:36 pm

aubergine18 wrote:First, it's not currently possible to add new types of prisoner entity (there is no 'Properties Prisoner' in the materials.txt). However you can do some customisations to existing prisoners...

Their sprites are in `people.png`, with positions defined (I think) in `objects.spritebank`.

You can't change things like skin colour, head, etc., for a specific prisoner because the Bios are not currently available to scripting.

You can change the body size using .SubType from a script; 0 = skinny, ... 3 = fat. Or something like that.

You can change the colour of their uniform via .Category property.

If you are doing a campaign script, there are additional things you could try. For example, you could look at a save game and see how "Actor" entities are defined, then try adding your own. An "Actor" entity is not a real prisoner, but their sprites can be customised to make them look as such. In theory you could spawn entities even in sandbox games, though I haven't tried.


Much appreciated, this would explain why I was running short on answers when digging through the .dat files :)

Ta again, I'll let you know what turns up!

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 6 guests