Prison Architect - Mod Creation tool (old auto grant)

Here is the place to post images, videos and downloads of your current and upcoming applications that you are working on.
1 post Page 1 of 1
Contributors
User avatar
reececlarke
VIP - Donator
VIP - Donator
Posts: 245
Joined: Tue Dec 08, 2009 6:47 pm

Well i thought i would update you guys on what i have been getting up too lately as of now. So yeah currently i am working on a tool which allows you to create mods for the game prison architect i will link the form here as well as copying and pasting it over although that post will be updated more often with the new links to download versions =P

So yeah just kinda getting into PA and thought i might as well try and add some what of mod support if i can to within what it lets you do which is quite limited at the moment sadly

link: http://forums.introversion.co.uk/viewto ... 42&t=21004

Save Now Out!

You can now save your files =P
(Example of save file: http://prison-exchange.com/browse/mods/ ... d-creator/ | https://mega.co.nz/#!bdoGGApT!Sl4bnkJXu ... 8H6WEcEF4Y )

*HUGE UPDATE!*
The update is finally here =]
Ever wanted to create your own mod for prison architect? well now you can!
the software is currently in development so i will add all of the other stuff as soon as i can A find out how to do things like add items as i do not believe they have implomented it yet although you can editing pre-existing items and B when i have the time =P
link: https://mega.co.nz/#!eYAHTRTC!IfJ-Cy4FI ... fqj6iZuDXQ
Alternative: http://prison-exchange.com/browse/apps/ ... t-creator/

If anyone has features you feel will improve the user experience please suggest them in the comments =P And if you do use this to make a mod feel free to link it in the comments I'm quite interested in seeing what you create with it =P

*Please fill out questionnaire if you can to help improve the software*
https://docs.google.com/forms/d/1Z5TUOe ... 4/viewform
***Instructions****

Video: http://youtu.be/rsD1krgCnOc
When you first open the software you will see a screen like this start by filling out all of the information and remembering to press ok
Image
Once you have filled it out you should see the following and make sure it shows in the tree view to the left
Image
Next what you will want to do is click on grants located in the tree viewer at the very top when you have done it enter the name and discription of the grant as well as the money rewarded when accepted and completed as before make sure it shows in the tree viewer then click on the grant you have just created.
Image
you should see something like the following this is were you can create requirements and edit the current grant you have selected via the treeviewer remember when you are editing grants do not use the tab pages as these will not select grants even if they information from them shows within the text boxes always use the tree viewer to do this. as well as this you can right click on a selected grant or requirement to delete it.
Image
After you have done this simply go to project and select build project this will now build your mod in the location you have chosen *currently saving mods in progress is not available but will be added in the near future* after you have done this just add a png image in the folder for your thumbnail remembering to call it thumbnail and your mod is compleate!
Image
Image
To create new biographies go to the biographies tree here you can add first and second names as well as create traits and crimes remember in the traits and crime all spaces within the name will be cut out so replace them with "TextLikeThisSoThatWordsAreReadAble" and this will also be were you are able to pick the chance of them inheriting the traits and the time length they will get for the crime and its risk
Image
to edit click on the biographies tab and select what you would like to edit(in the case of first and second names it requires less input just to right click and delete them then to create a edit tab) but for the others select them in the tree view and just like grants they will pop up allowing you to edit them this is were you also can assign traits
Image
For editing reform programs you will need to first go reform programs tree and select a program you would like to edit in this case we will use General Education as an example here we can rename it to what ever we like and change the settings like so pressing edit after here you can also add any properties that you like and then create the grant like normal.
Image
Saving: Well easy as clicking file and save
Loading: Clicking file and open.
Image
Auto save:
Auto save is currently set at every 5 mins and will ask you to save if you have not set the save location before however i do plan on allowing you to save in the time you select later on.
Image
Creating a new mod:
This is by far one of the most complex tasks a user will have to do within this program taking time,skill and dedication to complete.
Image


*Help my mod does not work!*
Simple fixes:
For some reason for my self having avast deep screen on causes the program to close and to stay in the task list until the computer is restarted to fix this just disable deep screen.
check if you have used a number value in requireroom as this can only be true or false
check if you have used a true or false in requireroomsavaliable as this can only be a number value
check if you have used a number value in requireresearch as this can only be true or false
check if you have used a true or false in requireobjects as this can only be a number value
(I will try and make it so you can only input the right type at a later date but for the moment please remember to use the right type)



*Known Bugs*
Mods created dont start for some reason and crash the game when you load them
this was because instead of requireobjects in the box it said objects to fix this litterly change that text to RequireObjects (patched in new version)
Adding spaces in bib would cause it to crash when you pressed add (patched in new version - forgot to add .replace(" ",string.empty) after the search so it would just look for the version with the spaces =P)
Chaning the name of a reform program makes it nolonger work ingame( patched in new version)
Making a mistake in requirements could crash the program (patched)

Description in requirements does not update with the entered data when you selected back to a requirement although this does not affect the mod building process (patch in new version)

*Features coming out soon*

*Old version - just thought you may like to see were this came from*
Ever wondered how to create grants of your own?
Well with this software it makes creating grants for the game easy as a few clicks away
Image
It enables you to add more then one objective to your grants!

file download link: https://mega.co.nz/#!aRBz2BRY!NoI5s1XrN ... e5Hag3VElA



*sorry for all the spelling mistakes as you can tell i am quite bad at spelling lol*


How to use:
Stage 1:
First create the grant name this will just be used to reference the grant in the game so remember not to use the same name as any other grant and have no spaces or another character that is not a letter or a number.
Once you have done that create the name of the grant that will be seen in game for example "Contract: Shower time!"
Once you have have entered a name you will want to enter a description in this case "The government have asked you to construct a shower in your prison"
after this you will want to add the money that they will get once they accept the grant and the money they will get once they have done it.

Stage 2:
Now what we will need to make are requirements or what the player will have to do in order to do the grant.
so what we will need to do is to create a requirement name not use else where in the same grant however you can use the same as used in other grants if you wish to do so.
once you have done this we will need to add the objective for this requirement or what the player will have to do so in this case we will select room option and then shower.
After we have select the value in this case as it is a room this will be true(if the requirement is to have the room exist) or false(if the room must not exist this could be useful in challenges such as do not use a workshop) however for things like objects and room amounts this must be a number unlike research and room which must be true or false.
now what we can add is money on completing however as this will be the only objective in the task we will leave this as 0
Now click add to objective list.
Now as we have compleated all the objectives in the grants list we can create the grant clicking the create grant button

Stage 3:
Now that we have created all the grants we want we can finish the mod off by clicking the create mod button
once we have done that its time to save it!
Create a new folder called "data"
inside data open notepad and copy the text under grants.lua and save it as grants.lua inside that folder.
next inside the folder create a new folder called language and inside that copy the text under english.txt and save that as english.txt inside that folder.
now that we have done that drag that folder to were ever the prison architect.exe file is and enjoy!




Ideas for grants you could create:
Challenge grants!
for example here is one of my own!

Stay under 10 guards
Image

here you can see how i have entered in the information in order to do this as you see at the start the players are given a large sum of money for accepting the quest how ever if they should get 10 or more guards they will lose $1 million!
Image
1 post Page 1 of 1
Return to “Work in Progress”