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
daarklord
Beginner


Joined: 22 Mar 2011
Posts: 12
Location: nilgiri.mythril.com

PostPosted: Thu Mar 31, 2011 7:44 am   

Alarm fires multiple times
 
I'm trying to make alarms that go off periodically.

This is the alarm:
Code:
idleInfo : *20:00

Code:
score
who


And what happens is when the clock turns hh:00:00 or hh:20:00, etc. the client will send
Code:
score
who
save      //from another alarm
score
who

at the same time. Sometimes it would just send one set as expected, but sometimes it sends double like that.

Previously I made this other alarm:
Code:
idleSave : *5:00

Code:
save


Which on its own also did
Code:
save
save

Most of the times when the hh:m5:00 or hh:m0:00 comes, it just sends one "save" but sometimes it sends two. I haven't seen it send 2 since the 20 minute alarm above was made. Edit: today, the save alarm occasionally fires twice but the 20 minute score alarm hasn't fired twice as far as I've seen.

Any idea why it's doing that?


Last edited by daarklord on Sat Apr 02, 2011 6:34 am; edited 1 time in total
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Mar 31, 2011 12:27 pm   
 
Are you certain that you have the alarm running only once? If you have accidentally started multiple identical alarms, it would produce the effect you are seeing. How is this alarm being initiated?
Reply with quote
daarklord
Beginner


Joined: 22 Mar 2011
Posts: 12
Location: nilgiri.mythril.com

PostPosted: Fri Apr 01, 2011 7:29 pm   
 
Well I checked and those are the only two alarms I have. I don't know what you mean by running once. They will keep running periodically. They get initiated by that part that is an asterix and a time. *5:00 starts every 5 minutes. At least that's what's supposed to happen.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Apr 01, 2011 8:17 pm   
 
What I meant was, is there something creating this alarm? Or is this something you created once, manually, and are letting run permanently? I was wondering whether multiple copies of the alarm were running at the same time.
Reply with quote
daarklord
Beginner


Joined: 22 Mar 2011
Posts: 12
Location: nilgiri.mythril.com

PostPosted: Sat Apr 02, 2011 6:19 am   
 
Oh sorry now I see what you're asking. It is only created once. But I have aliases to enable and disable those two triggers. Here they are.

Aliases:
1)
Code:
.idle

Code:
isIdle = 1
#ECHO "isIdle set to: " @isIdle
#CR
#T+ idleSave
#T+ idleInfo


2)
Code:
.unidle

Code:
isIdle = 0
#ECHO "isIdle set to: " @isIdle
#CR
#T- idleSave
#T- idleInfo


Edit: today, the save alarm occasionally fires twice but the 20 minute score alarm hasn't fired twice as far as I've seen.
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