Search found 231 matches

by aubergine18
Sun Dec 06, 2015 10:07 am
Forum: Modding
Topic: [DEV TOOLS] I HAVE THEM!!!
Replies: 4
Views: 1286

Re: [DEV TOOLS] I HAVE THEM!!!

I think Cities:Skylines proves that justification to be 100% inaccurate on all counts. In C:S there's no DRM and modders are able to decompile and reverse-engineer the entire app, and then share modified versions of any aspect of the app via the workshop. Furthermore, the team at CO and their publis...
by aubergine18
Sun Dec 06, 2015 3:03 am
Forum: Modding
Topic: How to change the workers/square ratio for prison labour?
Replies: 3
Views: 610

Re: How to change the workers/square ratio for prison labour

I'm pretty sure it's hardcoded, there's certainly no config anywhere in the game that I've seen for changing it.
by aubergine18
Sun Dec 06, 2015 3:01 am
Forum: Modding
Topic: [DEV TOOLS] I HAVE THEM!!!
Replies: 4
Views: 1286

Re: [DEV TOOLS] I HAVE THEM!!!

I'm still not sure why IV don't give us access to more of these dev tools, it would save so much time when testing mods.
by aubergine18
Sun Dec 06, 2015 3:00 am
Forum: Modding
Topic: {Staff Roster} new mod on Steam
Replies: 3
Views: 638

Re: {Staff Roster} new mod on Steam

When getting num items in a table, instead of using table.getn() you can use #tableName so this maleNamecount = table.getn(maleNames) becomes this: maleNamecount = #maleNames It's much faster than using the table.getn() function (and table.getn() is also deprecated in later versions of Lua)
by aubergine18
Sun Dec 06, 2015 2:36 am
Forum: Modding
Topic: WIP Mod with Black Car
Replies: 2
Views: 501

Re: WIP Mod with Black Car

From vague memory, Chad's drinks mod has an engineer callout where he has some code to work out where the deliveries points are. There's also some scripting properties on cargo trucks that might be worth investigating: https://github.com/aubergine10/Prison-Architect-API/wiki/obj.Driver https://githu...
by aubergine18
Tue Nov 24, 2015 5:36 am
Forum: Modding
Topic: Modding Help
Replies: 40
Views: 2812

Re: Modding Help

GetNearbyObjects() returns name value pairs, where the name is actually a map object and the value is the numeric range from search origin to that map object. local searchFor, maxRange = 'Prisoner', 20 local results = this.GetNearbyObjects( searchFor, maxRange ) for obj, range in pairs(results) do i...
by aubergine18
Tue Nov 24, 2015 5:32 am
Forum: Modding
Topic: Prison Architect Weather?
Replies: 7
Views: 1271

Re: Prison Architect Weather?

It would be super useful to start a github repo - would make referring to code samples from the API wiki much easier.
by aubergine18
Tue Nov 24, 2015 5:18 am
Forum: Modding
Topic: Update 1 diffs
Replies: 4
Views: 604

Re: Update 1 diffs

Here's one thing I just noticed in materials.txt - the way bunk beds work...

BEGIN Requirement Type Object Id Bed Alt BunkBed END

"Alt"
by aubergine18
Tue Nov 24, 2015 4:00 am
Forum: Modding
Topic: Update 1 diffs
Replies: 4
Views: 604

Re: Update 1 diffs

I've not yet investigated to see what Lua scripting API changes have been made, so that is likely where some new stuff can be found (although it will likely be as broken in many ways, which is why I've not put in the effort to investigate it).
by aubergine18
Mon Nov 23, 2015 11:15 am
Forum: Modding
Topic: Update 1 diffs
Replies: 4
Views: 604

Update 1 diffs

I finally got round to updating the modding API docs with files from Update 1 and the diffs can now be found online: https://github.com/aubergine10/Prison-Architect-API/commit/5b214d3723f1a0df8e34fe9a0685f89bd49647dd Note: I also added a few additional files that can be modded so not everything show...
by aubergine18
Tue Nov 17, 2015 10:44 pm
Forum: Modding
Topic: Modding question
Replies: 8
Views: 777

Re: Modding question

Would it be worth adding a new HR administrator entity as a base for the scripting?
by aubergine18
Fri Nov 06, 2015 8:08 pm
Forum: Modding
Topic: Modding question
Replies: 8
Views: 777

Re: Modding question

Done via scripted warden?
by aubergine18
Sun Nov 01, 2015 4:23 pm
Forum: Modding
Topic: Prison Architect Weather?
Replies: 7
Views: 1271

Re: Prison Architect Weather?

Outdoor generators exploding when wet :)

Problem is, we can't script proper water at the moment. A meteor shower might be do-able though lol.
by aubergine18
Thu Oct 29, 2015 8:35 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 4013

Re: HELP coffee machine

Are you sure default markers are in the centre? ISTR that they are spaced out equally over the width of the object (maybe only applies to first 3 markers, not tested)
by aubergine18
Thu Oct 29, 2015 8:33 pm
Forum: Modding
Topic: Not had time to test, but maybe you can...
Replies: 1
Views: 336

Not had time to test, but maybe you can...

The `ToolbarSprite` doesn't currently work with sprites in sprites.png. It only works with sprites defined in objects.spritebank. In theory, however, there is another way to specifically define a toolbar sprite - RotateType 6 (and 5). I've not had chance to test this, but I hypothesise it might enab...

Go to advanced search