Search found 94 matches

by Pruvan
Thu Oct 23, 2014 1:21 pm
Forum: General
Topic: [NEW USERS, READ FIRST] This is NOT the Alpha forum!
Replies: 135
Views: 202827

Re: [NEW USERS, READ FIRST] This is NOT the Alpha forum!

I cannot hand that key over because it is a security risk. How is showing your product key to the company you bought it from a security risk? I've had to contact Steam support some years ago due to my account having been hijacked, and I had to show some of my CD-keys linked to it then as well as a ...
by Pruvan
Wed Oct 22, 2014 3:50 pm
Forum: Community Members
Topic: Mantis clean up - you can help too!
Replies: 371
Views: 29420

Re: Mantis clean up - you can help too!

http://bugs.introversion.co.uk/view.php?id=6575 --> No Bug. http://bugs.introversion.co.uk/view.php?id=6586 child of http://bugs.introversion.co.uk/view.php?id=3838 http://bugs.introversion.co.uk/view.php?id=6581 duplicate of http://bugs.introversion.co.uk/view.php?id=5441 http://bugs.introversion....
by Pruvan
Mon Oct 20, 2014 8:41 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

Just wondering, is it possible to have the area defined as the room the object is in rather than just a distance around it AFAIK this is not possible yet. Well my LUA is exactly like above now but still having the same result. materials.txt looks fine. Does your lua file have the same name as your ...
by Pruvan
Mon Oct 20, 2014 12:26 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

I put in the script you typed out there but there just walking over the mines with no damage being caused what am I missing? Same as above, forgot to end the for loop with an "end". Try this: function Create() end function Update(timePassed) local mineRadius = 5; -- 5 tile radius for inst...
by Pruvan
Mon Oct 20, 2014 12:19 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

Thanks for all the help but I'm still getting the same problem One more thing I forgot, which I missed cause of the code tags here. You have to start your script files with an empty line. So your first line should be blank, before adding any functions, variables, etc... The game probably can't find...
by Pruvan
Sun Oct 19, 2014 1:10 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

No, it should look something like this: landmine.lua function Create() end function Update(timePassed) local mineRadius = 5; -- 5 tile radius for instance local amountOfDamage = 1; -- Kills 'em outright local nearbyPrisoners = Object.GetNearbyObjects("Prisoner", mineRadius); for prisonerNa...
by Pruvan
Sat Oct 18, 2014 9:06 am
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

Just something simple that if the prison ran within proximity of an object it would damage him to unconscious or dead. local mineRadius = 5; -- 5 tile radius for instance local amountOfDamage = 1; -- Kills 'em outright local nearbyPrisoners = Object.GetNearbyObjects("Prisoner", mineRadius...
by Pruvan
Fri Oct 17, 2014 8:55 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

You're also mixing using semicolons and not using semicolons, pick one or the other, not both. See if that helps. Show your current code again if that still doesn't fix it.
by Pruvan
Fri Oct 17, 2014 6:00 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

You wrote create() with a lowercase letter again, it's Create(). You need to pay more attention to these things, programming is pretty much always extremely case sensitive.

Code: Select all

function create()

Should be

Code: Select all

function Create()
by Pruvan
Thu Oct 16, 2014 10:52 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

Attempt to index global 'object' (a nil value) Make sure you always type Object with an uppercase letter. Otherwise the scripting probably won't recognize it, which I'm guessing is causing the error. I see you typed it in lowercase a few times in your script (object). is it due to the fact that ins...
by Pruvan
Thu Oct 16, 2014 6:45 pm
Forum: Modding
Topic: Scripting to Damage Prisoners
Replies: 25
Views: 2707

Re: Scripting to Damage Prisoners

Object scripting is different from campaign scripting, so the functions from one won't work in the other. If you want to damage a prisoner you can change the prisoner's Damage property via Object.SetProperty(). So you're looking to do something like Object.SetProperty(prisonerName, "Damage"...
by Pruvan
Thu Oct 16, 2014 4:07 pm
Forum: Community Members
Topic: Mantis clean up - you can help too!
Replies: 371
Views: 29420

Re: Mantis clean up - you can help too!

The above posts should've been processed. Done across multiple days though, so let me know if I missed anything.
by Pruvan
Thu Oct 16, 2014 8:27 am
Forum: Modding
Topic: Updating a mod via steam
Replies: 11
Views: 1851

Re: Updating a mod via steam

Added a debug log to the Mantis issue. Here's a direct download link as well: https://www.dropbox.com/s/jtaz2nqu0lgmz2u/debug.txt?dl=0 And code wrap: alpha-25b pc steam compiled 14:18:23, Sep 22 2014 Loading Preferences from C:\Users\Pruvan\AppData\Local/Introversion/Prison Architect/preferences.txt...
by Pruvan
Thu Oct 16, 2014 8:09 am
Forum: Modding
Topic: Updating a mod via steam
Replies: 11
Views: 1851

Re: Updating a mod via steam

Can confirm that Steam isn't properly unpacking the mod into the mods folder again. http://s29.postimg.org/fe87res2d/danishmod.png Perfect example of issue 0005856: Mods don't "unpack" properly . I've updated the bug report to include your mod as an example. Basically, there's nothing wron...
by Pruvan
Mon Oct 13, 2014 1:00 am
Forum: Modding
Topic: [MOD][WIP] Functional Electric Chair A-28
Replies: 6
Views: 5466

[MOD][WIP] Functional Electric Chair A-28

http://s27.postimg.org/ssuq0cckj/thumbnail.png ======== Description ======== In an effort to make the electric chair have some function outside of the introduction sequence, I figured I might as well push the scripting system to the limit and give it a go. This mod was mostly an experiment to see i...

Go to advanced search