PtokaX forum

PtokaX => Support => Topic started by: Dessamator on 15 February, 2012, 08:47:35

Title: Lua Error log (in Linux)
Post by: Dessamator on 15 February, 2012, 08:47:35
Hi,

I was recently attempting to debug a script in Linux, and apparently the error log is not created for anything beside "System.log".   I assume I'm ignorant of some setting or perhaps some configuration that needs to be done, but it compiled successfully, and runs all scripts.

Except for a small change i made in the make file, it seemed to reference lua5.1, and in my Fedora Core 16 system, it was just "lua", after the change it compiled successfully.

Is there any setting or command to force Ptokax to output the errors to a file?


Title: Re: Lua Error log (in Linux)
Post by: the-master on 15 February, 2012, 10:17:11
Plz read the scripting interface before posting, your answer is right before you..
its in the Settings bool IDs forSetMan.(G/S)etBool number 55, can be enabled with a simple script

function OnStartup()
                    SetMan.SetBool(55,1)
SetMan.Save()
end

running once will do the trick ;-)
Title: Re: Lua Error log (in Linux)
Post by: Dessamator on 15 February, 2012, 10:35:40
Quote from: the-master on 15 February, 2012, 10:17:11
Plz read the scripting interface before posting, your answer is right before you..
its in the Settings bool IDs forSetMan.(G/S)etBool number 55, can be enabled with a simple script

function OnStartup()
                    SetMan.SetBool(55,1)
SetMan.Save()
end

running once will do the trick ;-)

Ignorance is indeed bliss.

Thanks, sounds like something I would have said in the past. Anyway, it was never( as far as I can see) posted in the forum, and so should theoretically  help others too.

PS:   I'm not sure if it was something I was doing wrong or not. But it seemed to work after I changed it to :
SetMan.SetBool(55,true)

Title: Re: Lua Error log (in Linux)
Post by: the-master on 15 February, 2012, 11:18:11
it is inhere.. and mutor made a script with bits of explaining ;-)
http://forum.ptokax.org/index.php?topic=7244#msg69760
Title: Re: Lua Error log (in Linux)
Post by: Dessamator on 15 February, 2012, 11:33:50
Quote from: the-master on 15 February, 2012, 11:18:11

it is inhere.. and mutor made a script with bits of explaining ;-)
http://forum.ptokax.org/index.php?topic=7244#msg69760


To quote myself again, ignorance is indeed bliss.

Thanks, you are in fact correct, I've just not been updated on new Px versions  and the forum for many years, and this is the result.
Title: Re: Lua Error log (in Linux)
Post by: the-master on 15 February, 2012, 12:46:49
Shame on you  ;)