PtokaX forum

Development Section => LUA & PtokaX-Scripting-Interface => Topic started by: Typhoon on 27 January, 2004, 22:57:33

Title: Ptokax Debug
Post by: Typhoon on 27 January, 2004, 22:57:33
first of all, thx to you ptaczek for bringing us PtokaX, i have a little request/feature, while we are at the debug models...

i love all the new features, and especialy the new stack traceback in script editor, but can you maybe make a support for script bug logging for those bugs..
like you have made a logging for main chat ..

maybe use full i some matters when doing remote on servers its not allways all bugs i/we can see due to a script restart ..

maybe someone else are wanting this or can give some feedback on the subject..

greetz again..
from me :)
Title:
Post by: [NL]Pur on 28 January, 2004, 00:13:53
the trace back feature is great ,

tho i still can't see which line i'm at with my cursor
Title:
Post by: Typhoon on 28 January, 2004, 18:10:14
agree on that one Pur, i forgot to mention that... a inbuilt counter in script editor would be great instead of opening script in another editor just to get the counter at the bottom...

greetz
Title:
Post by: plop on 28 January, 2004, 23:56:02
would be handy indeed, not that i use it. lol
i love titmouse but still would like 1 tiny change on the output of the errors.
start counting on the lines with 0 instead of 1, as tit does that 2.
not a real big problem tho. lol

plop
Title:
Post by: Typhoon on 31 January, 2004, 14:29:27
agree on titmouse but i have tryed that tit f*cked up in the script, so now i use Emeditor and the inbuilt in ptokax..

greetz
Title:
Post by: NightLitch on 31 January, 2004, 15:12:06
Well I have nice feature in my little brain.

Why not sending a message to Masters or Level can be choose when scripts gotten an error in PM to them.

That I would find very usefull and a log that can be opened in hubsoft to
with command, so you can see what the error was.

My thoughts...
Title:
Post by: tezlo on 31 January, 2004, 15:31:31
run this..
nicktoreporterrorsto = "tezlo"
-- your nick comes here ^^

function Main()
omg()
end

report = _ERRORMESSAGE
_ERRORMESSAGE = function(str)
SendToNick(nicktoreporterrorsto, ">> error: "..str)
report(str)
end
then read the manual (http://www.lua.org/manual/4.0/manual.html#4.7) again :)

titmouse just looks weird.. and just about any decent editor lets you spec an external tool/compiler
Title:
Post by: pHaTTy on 31 January, 2004, 15:52:27
yep me, i tried titmouse, was ok, but still not right for me, i stick to good old trusty notepad and inbuild maybe i will write my own ptokax script editor with some how-to's etc andythink it wud be any useful?
Title:
Post by: NightLitch on 31 January, 2004, 16:41:43
Well I use EditPlus2 with LUA extesion & syntax's

works great.
Title:
Post by: NightLitch on 31 January, 2004, 16:43:34
And Thx Tezlo for that piece of code and the manual again. :-P heh
Title:
Post by: NightLitch on 31 January, 2004, 16:48:31
hey Tezlo what is omg() doing ??? getting nil on this...

is it needed ?
Title:
Post by: tezlo on 31 January, 2004, 17:48:13
eh its nil on purpose to trigger the error.. makes sense?
Title:
Post by: NightLitch on 31 January, 2004, 20:07:02
Yes understand...