Early Modding Support

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

Moderator: NBJeff

knapaxe
level0
Posts: 7
Joined: Tue Oct 12, 2010 4:33 am

Early Modding Support

Postby knapaxe » Thu Sep 27, 2012 4:03 pm

Just a quick query to Mark and Chris as to your support or willingness to look the other way when someone fiddles around with the guts of PA.
User avatar
gsuberland
level2
level2
Posts: 161
Joined: Wed Sep 26, 2012 7:29 pm
Location: United Kingdom
Contact:

Postby gsuberland » Thu Sep 27, 2012 4:05 pm

I've already been digging around in the DAT files ;)

Fingers crossed we'll end up with full modding support, like every other game IV have made.
knapaxe
level0
Posts: 7
Joined: Tue Oct 12, 2010 4:33 am

Postby knapaxe » Thu Sep 27, 2012 5:04 pm

I fiddled around and added a couple grants. That seems to be a simple interface there. Just 2 files to keep track of. With a bit more work, we could add a scenario or two before PA goes gold. Seeing as the grants are handled in LUA I wonder what else we can uncover and manipulate with some LUA code.

My main concern was if Chris is all that concerned with us going a bit further with "testing".
tradami
level1
level1
Posts: 30
Joined: Wed Sep 26, 2012 6:48 pm

Postby tradami » Thu Sep 27, 2012 5:13 pm

What editor are you using?
knapaxe
level0
Posts: 7
Joined: Tue Oct 12, 2010 4:33 am

Postby knapaxe » Thu Sep 27, 2012 5:18 pm

notepad++
tradami
level1
level1
Posts: 30
Joined: Wed Sep 26, 2012 6:48 pm

Postby tradami » Thu Sep 27, 2012 5:22 pm

knapaxe. Where are the files that you are editting? If it's the .dat files, how do you open them properly?
Mas Tnega
level5
level5
Posts: 7898
Joined: Sat Mar 02, 2002 11:54 pm
Location: Edinburgh
Contact:

Postby Mas Tnega » Thu Sep 27, 2012 5:49 pm

They're just RAR files with .dat instead of .rar.
tradami
level1
level1
Posts: 30
Joined: Wed Sep 26, 2012 6:48 pm

Postby tradami » Thu Sep 27, 2012 5:51 pm

Got it! Thanks!
RabidZombie
level5
level5
Posts: 2414
Joined: Fri Nov 18, 2005 10:09 pm

Postby RabidZombie » Thu Sep 27, 2012 5:54 pm

knapaxe wrote:I fiddled around and added a couple grants. That seems to be a simple interface there. Just 2 files to keep track of. With a bit more work, we could add a scenario or two before PA goes gold. Seeing as the grants are handled in LUA I wonder what else we can uncover and manipulate with some LUA code.

My main concern was if Chris is all that concerned with us going a bit further with "testing".


The campaigns are lua, but they're nothing more than a sequence of hard coded events by my rubbish first glancing look.

Will start messing around with it once I've gotten my first prison off the ground.
Illanair
level3
level3
Posts: 270
Joined: Tue Jan 11, 2011 8:43 pm
Location: Denmark

Postby Illanair » Thu Sep 27, 2012 6:04 pm

The dat files are just plain old .zip files. Just open them with Winzip or Winrar and pack them back together as a .zip and rename the files.
RabidZombie
level5
level5
Posts: 2414
Joined: Fri Nov 18, 2005 10:09 pm

Postby RabidZombie » Thu Sep 27, 2012 7:55 pm

Illanair wrote:The dat files are just plain old .zip files. Just open them with Winzip or Winrar and pack them back together as a .zip and rename the files.


Nope. They be rars.
Mas Tnega
level5
level5
Posts: 7898
Joined: Sat Mar 02, 2002 11:54 pm
Location: Edinburgh
Contact:

Postby Mas Tnega » Thu Sep 27, 2012 8:04 pm

And you don't actually need to repack them afterwards. The game is quite content to look at the /data folder
Illanair
level3
level3
Posts: 270
Joined: Tue Jan 11, 2011 8:43 pm
Location: Denmark

Postby Illanair » Thu Sep 27, 2012 8:16 pm

RabidZombie wrote:
Illanair wrote:The dat files are just plain old .zip files. Just open them with Winzip or Winrar and pack them back together as a .zip and rename the files.


Nope. They be rars.


Oh they switched it from the Uplink? I didn't notice, heh. Then again I use WinRAR and I only unpacked the file, never tried repacking it. :D
knapaxe
level0
Posts: 7
Joined: Tue Oct 12, 2010 4:33 am

Postby knapaxe » Thu Sep 27, 2012 10:00 pm

RabidZombie wrote:The campaigns are lua, but they're nothing more than a sequence of hard coded events by my rubbish first glancing look.

Will start messing around with it once I've gotten my first prison off the ground.


It looks like a combination of the save file coding and lua for the cut scene parts.

For the lua bits that I've seen thus far, we have an objective class and a game class. I'll peruse some more after work.
Nicotin
level1
level1
Posts: 28
Joined: Thu Sep 27, 2012 1:47 pm

Postby Nicotin » Thu Sep 27, 2012 11:26 pm

There is also a Trigger class which takes objectives and runs a function upon it's completion.

Sadly you can't use the Trigger in the Grants.lua for unlockable grants.

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 1 guest