Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Mon Dec 17, 2007 10:27 pm   

[2.18] Lua errors in triggers?
 
Is there something speical I have to enable in lua scripted triggers to display errors? Doing something like calling a function that doesn't exist does not seem to raise a lua error, the script simply terminates silently, the debugger says nothing about it.

Lua errors are generated just fine for ones entered on the command line though.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Dec 18, 2007 11:42 am   
 
I get errors raised fine from triggers - I created a trigger with the script invalid ( " = and an error was raised just fine. Similarly, attempts to call non-existant functions give the normal "attempt to call global xxx (a nil value)".

Perhaps you've defined the function somewhere?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Tue Dec 18, 2007 3:24 pm   
 
Fang Xianfu wrote:
I get errors raised fine from triggers - I created a trigger with the script invalid ( " = and an error was raised just fine. Similarly, attempts to call non-existant functions give the normal "attempt to call global xxx (a nil value)".

Perhaps you've defined the function somewhere?
Nope, I've had the script silently fail for parse errors and such too, I ended up adding zs.debug() calls at the end of my trigger code to make it easier to identify if it failed or not.

Hmm; that gives me an idea, I'm working on a converted zMud session, I'll start one from scratch and see if it still occurs.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net