Page 1 of 2

event triggers not firing

Posted: Thu Mar 24, 2016 2:02 am
by nobody
I am using the msdp example adapted to RoD to echo the time when the WORLD_TIME changes.

The variable DOES change, I can echo it directly or view in variables list to show it, but as an event handler it doesn't trigger.

Any ideas?

win10 & mudlet 3

Thank you.

Re: event triggers not firing

Posted: Fri Mar 25, 2016 6:14 am
by Vadi
Show a screenshot of the event trigger?

Re: event triggers not firing

Posted: Sat Mar 26, 2016 8:15 pm
by nobody
If I check the variable it DOES change, but the event never triggers.


Thank you.

Re: event triggers not firing

Posted: Sat Mar 26, 2016 8:26 pm
by Vadi
Enable Debug (it's below Search in the script editor) and check the main screen for MSDP messages - what does it say?

Re: event triggers not firing

Posted: Sat Mar 26, 2016 8:46 pm
by nobody
System Message:
msdp event <msdp.WORLD_TIME> display(msdp)

and this showed in log....

Alias name=run lua code(^lua (.*)$) matched.
Alias: capture group #1 = <lua msdp event <msdp.WORLD_TIME> display(msdp)>
Alias: capture group #2 = <msdp event <msdp.WORLD_TIME> display(msdp)>
LUA: ERROR running script run lua code (Alias6) ERROR:[string "function Alias6()..."]:4: [string
"msdp event <msdp.WORLD_TIME> display(msdp)"]:1: '=' expected near 'event'new line arrived:

not sure if it means anything...

Re: event triggers not firing

Posted: Sun Mar 27, 2016 6:23 am
by nobody
As far as I can tell, NO events are actually firing and triggering anything.
The even does show from debug but it doesn't actually trigger the scripts.
This includes using the built-ins (via mudlet manual.. ie. onPrompt and others.)

Re: event triggers not firing

Posted: Sun Mar 27, 2016 7:12 am
by Vadi
Something is wrong here, as events do work in 3.0. I can't tell what from the information so far though. Can you try one of the event examples on the wiki?

Re: event triggers not firing

Posted: Mon Mar 28, 2016 2:52 am
by SlySven
@Vadim That error message is:
LUA: ERROR running script run lua code (Alias6) ERROR:[string "function Alias6()..."]:4: [string
"msdp event <msdp.WORLD_TIME> display(msdp)"]:1: '=' expected near 'event'"
- the un-spaced new line arrived is an unrelated badly formatted error message from (void)TConsole::runTriggers(int)

The error is being generated in TLuaInterpreter::parseJSON( ?, ?, "msdp" ) but it might be via __gmcp_merge_gmcp_sub_tables( ... ) which is in the LuaGlobal.lua file (and those external lua files have just caught me out in a different way...!)

It isn't due to a malformed msdp "key" by any chance - say one with two periods next to each other e.g. something like "msdp.room..name"?

Re: event triggers not firing

Posted: Mon Mar 28, 2016 5:01 pm
by nobody
Even more fun.... I couldn't even raise events from manually registered events. Then all the sudden I can. Now they seem to work except one.

On Reigns of Despair I can't seem to get the affects variable to read correctly. It always showers empty but raises the event constantly as being changed. I see from a mush client script that they are parsing this into a table to be useable. But mudlet shows it empty always.....

Re: event triggers not firing

Posted: Tue Dec 27, 2016 4:28 am
by Darmir
Was this supposed to be fixed? I just tried to use the script and I am also seeing the same issue as above?