|
Atreides096 Beginner
Joined: 26 Apr 2004 Posts: 15 Location: USA
|
Posted: Mon Feb 26, 2007 9:09 pm
Finicky triggers |
Does anyone know what causes a trigger to just not work (not fire at all), but then after "editing" the trigger (simply deleting 1 character and then re-typing the same char in the same spot and hitting save suffices) it will begin to work again?
I've noticed this most commonly with #alarms, but it has happened to me with #triggers as well... |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Feb 26, 2007 10:28 pm |
Sometimes when they are converted to regex the algorithm gets the regex part wrong. Why it gets it wrong? I forget back when Zmud was still in beta I posted on it unfortunately I can't read those boards anymore and I forget the details. All triggers in Zmud are converted to regex in the background and you can see the regex pattern on the testing tab. Usually it has to do with escaping regex special characters like the period. So on the testing tab you might see. ^This is a test trigger\\. When what you need is ^This is a test trigger\.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Atreides096 Beginner
Joined: 26 Apr 2004 Posts: 15 Location: USA
|
Posted: Mon Feb 26, 2007 10:40 pm |
Yeah, I've noticed this too. But I'm referring to actual (and simple) zscript triggers, things like
which fires fine one day, and then the next day will just randomly decide not to work (typing #alarm shows it's not set to fire for 25 hours). Or simple patterns like
Code: |
#ac {({@scanning.MobToFind})} |
which just randomly decides when to work and when not to work....
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Feb 26, 2007 11:39 pm |
Well, see the thing is the SIMPLE zscript is converted to the regex in the background. Things like an #alarm I would not be surprised if they are rebuilt behind the scenes for each time you load zmud and certainly a pattern containing a changing variable could qualify as well. Still this is mostly conjecture and I'll shut up now and maybe Zugg will tell us what is happening.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|