[DISCUSSION] All of the functions on 'Object'

Discussion about Mods for Prison Architect

Moderator: NBJeff

pcgrosen
level1
level1
Posts: 10
Joined: Tue Jun 11, 2013 5:20 am

[DISCUSSION] All of the functions on 'Object'

Postby pcgrosen » Sun Aug 31, 2014 1:52 am

So I managed to print out all of the methods on Object by using this:

Code: Select all

   
for fname,obj in pairs(Object) do
   if type(obj) == "function" then
      Game.DebugOut(fname)
   end
end

Which prints out this:

Code: Select all

DEBUG: SetProperty
DEBUG: Delete
DEBUG: GetMaterial
DEBUG: GetProperty
DEBUG: CreateJob
DEBUG: ApplyVelocity
DEBUG: Spawn


So as you can see, there isn't much yet. The lua_function_list already had all of it. There may be other tables that we can use, so I'm looking into that now.
Dynamite874
level1
level1
Posts: 15
Joined: Tue Oct 30, 2012 11:24 pm
Location: United Kingdom
Contact:

Re: All of the functions on 'Object'

Postby Dynamite874 » Sun Aug 31, 2014 9:55 pm

Quick question, how and where did you print these ? Like did it work in game or outside.

Edit: No worries, found it :D
RGeezy911
level5
level5
Posts: 1098
Joined: Fri Aug 09, 2013 7:21 pm

Re: All of the functions on 'Object'

Postby RGeezy911 » Sun Aug 31, 2014 11:32 pm

I'm still curious. Is there a way to use Game.DebugOut to find all possible strings for a command?

Right now I'm in the middle of creating my tutorial scenario, but the User Interface remains locked. This is a massive roadblock for me, and my only hope is to find out all possible combinations of Game.Unlock.

I'm no expert on this, so I could use some help / information.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: All of the functions on 'Object'

Postby knoest26 » Sun Aug 31, 2014 11:43 pm

RGeezy911 wrote:I'm still curious. Is there a way to use Game.DebugOut to find all possible strings for a command?

Right now I'm in the middle of creating my tutorial scenario, but the User Interface remains locked. This is a massive roadblock for me, and my only hope is to find out all possible combinations of Game.Unlock.

I'm no expert on this, so I could use some help / information.

I'm joining you in this need :p
Inge Jones
level2
level2
Posts: 236
Joined: Tue Jul 29, 2014 9:15 am

Re: All of the functions on 'Object'

Postby Inge Jones » Mon Sep 01, 2014 8:30 am

Dynamite874 wrote:Quick question, how and where did you print these ? Like did it work in game or outside.

Edit: No worries, found it :D


Could you just summarise how you found it for those of us still wondering?
Dynamite874
level1
level1
Posts: 15
Joined: Tue Oct 30, 2012 11:24 pm
Location: United Kingdom
Contact:

Re: All of the functions on 'Object'

Postby Dynamite874 » Mon Sep 01, 2014 11:37 am

Well I tried getting to work in game, and I thought I had it working. However it seemed to only pop out the console, when I gave it an error. Also the Debug file does not report the commands either :(.

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 6 guests