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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Wed Apr 06, 2005 2:10 pm   

#alarm firing twice...sometimes..
 
Not sure why this is happening, but sometimes my hourly exp alarm goes off twice in a row. I did a search in the settings for exphour (the alias for it) and the two commands are the only ones that show and are the only ones that SHOULD show.

#ALIAS exphour {
gt ~@GLast hour~@R: ~@w@expperhour~@RXP ~@w@cashperhour~@R$~@w
expperhour="0"
cashperhour="0"
} "Char Status"
#ALARM "Alarm0" {*:00:00} {exphour} "Char Status"

Yet, i get 2 outputs. One with the info and the 2nd zero'd out.

gt @GLast hour@R: @w107@RXP @w14231@R$@w
gt @GLast hour@R: @w0@RXP @w0@R$@w

To check i've taken to typing #alarm at least once every hour to see if there is something else going in there, but the only output is the correct one:
+ Char Status: *:00:00 -> exphour [in 50:54]

But it randomly happens. One day at 10am, another at 11am then again sometime during the day...nothing that I have been able to pin down as all the time on this specific day of the week...

Any idea about this? I can live with it if there's no other choice, but damn it's annoying :-)
Used Pretty Print
Syntax Colourizer
_________________
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Wed Apr 06, 2005 4:00 pm   
 
Hmm, looks simple enough. I can see where that would be annoying. Since I cant see anything wrong script wise the only thing I can think to do is get rid of the obviously wrong output until a possible cause is found... not ideal I know.

#TRIGGER {^gt ~@GLast hour~@R: ~@w0@RXP ~@w0@R~$~@w$} {#gag}
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Mon May 02, 2005 7:58 pm   
 
Just a small bump in hopes that maybe someone knows what the heck is going on?...
_________________
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon May 02, 2005 8:17 pm   
 
I ran this and had no problem, time and time again it came back with just the one. Look to make sure you did not make a duplicate of it any where or inherited it from something else you did.

also try it in another character window to see if your still having the same problem.

If all fails to remedy the problem you could just always add #gag to your alias and that would knock out the last part.
_________________
megamog75 Smile
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Mon May 02, 2005 8:51 pm   
 
typing #alarm would give me each instance of it.
There is no duplicate of it.
And it only happens occasionally.
Not every time at 10am, not every time at 11am etc.
Sometimes it even goes off at *:59 rather than *:00
But that *:59 is like a second to 5 seconds before the *:00.
The #gag is the way to go, but it just points to a weird flaw i think in #alarm.
Aw well :(
_________________
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon May 02, 2005 8:56 pm   
 
I dont think this will work
but ever tryed it like

#ALARM "Alarm0" {*3600} {exphour} "Char Status"
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Tue May 03, 2005 12:43 pm   
 
i'll give it a shot DeReP.
Can't be any worse than it is now. Tho I prolly won't see any results for a while. Like I said it's rare that it happens, but annoying :-)
BTW, dunno if i said it before, and haven't had enuf coffee yet to scroll up and look, but out of the 5 alarms that I have for various ongoing things, THIS one is the only one that does it.
_________________
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Wed May 04, 2005 1:58 pm   
 
*grumble*
gt @GLast hour@R: @w992@RXP @w16783@R$$@w
gt @GLast hour@R: @w0@RXP @w0@R$$@w

so much for *3600 :-)
_________________
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 07, 2005 8:08 pm   
 
well, thought that Maelstrom might hit the nail in the head for this one with his naming alarm idea.

#ALIAS exphour {
gt ~@GLast hour~@R: ~@w@expperhour~@RXP ~@w@cashperhour~@R$$~@w
#T- exphour
expperhour="0"
cashperhour="0"
} "Char Status"

#ALARM "Alarm0" {*:00:00} {
#T+ exphour
#ALARM expshower {+.5} {exphour}
} "Char Status"

(Group) Vitae: 'Last hour: 4XP 816$'
(Group) Vitae: 'Last hour: 0XP 0$'

*mutter*
The doubling of this is never trackable for me. won't happen at same times consistently, so i can't say "Well, at 11AM EST it does it."
It does is whenever the heck it wants.
_________________
http://www.Aardwolf.com
Reply with quote
Ikyu
Beginner


Joined: 27 Feb 2005
Posts: 24

PostPosted: Sun Jul 10, 2005 8:02 am   
 
The same thing happens to me, and to my spouse with this trigger.
It only triggers occasionally with us as well.
Sofar i've not been able to track it down either.
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Jul 20, 2005 1:12 pm   
 
Changed this:
Vitae wrote:
#ALARM "Alarm0" {*:00:00} {
#T+ exphour
#ALARM expshower {+.5} {exphour}
} "Char Status"
to this:
#ALARM "Alarm0" {*:00:00} {
#IF ((@expperhour > 0) or (@cashperhour > 0)) {exphour} {#echo W00T! I R SuXoRz!!}
} "Char Status"

SO FAR:
It's been working. Ran a few Executes on it with diff #'s in the expperhour and cashperhour, and it's been fine.
Of course when i ran the malfunctioning thru 20 or so Executes it never misfired either. So, I'm just waiting to see :-)
_________________
http://www.Aardwolf.com
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Jul 20, 2005 2:07 pm   
 
Changed this:
Vitae wrote:
#ALARM "Alarm0" {*:00:00} {
#IF ((@expperhour > 0) or (@cashperhour > 0)) {exphour} {#echo W00T! I R SuXoRz!!}
} "Char Status"
to this
#ALARM "Alarm0" {*:00:00} {
#IF ((@expperhour > 0) or (@cashperhour > 0)) {exphour} {}
} "Char Status"
Cause like the crackhead that I am, it still would display both.

(Group) Vitae: 'Last hour: 87XP 3641$$'
W00T! I R SuXoRz!!

I am VERY confused.
Why does right clicking on a trigger and selecting Execute NEVER seem to point out a potential problem like this?
I ran it 20 or more times with #'s and 0's everywhich way, for this last wrong one, and for all the other wrong ones, and NOT ONCE did it ever show that anything was going to go wrong.
But the clock clicks over to an hour, and BOOM error.
*mutter*
Now to see what else happens with my change :-)
_________________
http://www.Aardwolf.com
Reply with quote
Bremen
Novice


Joined: 26 Dec 2002
Posts: 33
Location: USA

PostPosted: Sat Sep 17, 2005 3:16 am   
 
I posted this back on Christmas '02.
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=9662

I communicated with Zugg directly about it and he wasn't able to reproduce it, but I hope he doesn't think I'm insane any more now that others are running into it.

I think it just has to do with how quickly alarms are checked, sometimes it happens to check twice during the second of the new hour so it fires twice. You figured out the only real way to prevent it.
_________________
--Bremen, zMUD 7.21 on Windows 7 x64
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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