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
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Sat Oct 23, 2004 8:05 pm   

Sync Zmud timer with game timer
 
I've got a slight problem in my scripts where Zmud timer is off by 1 sec with the game timer. It doesn't happen often, but when it does it's annoying. The last couple days it has happened more often than I like.

Have anyone else had this problem and dealt with it?
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Sun Oct 24, 2004 2:48 pm   
 
just use your uptime trigger to resync it anytime you check the uptime. Mine runs pretty well with the game clock. But 1 second or so off isn't bad.
_________________
Yama
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Oct 24, 2004 4:23 pm   
 
This is usually due to a little MUD server lag, causing the MUD to run slightly slower than realtime. Not a lot you can do about it, usually. Just trigger it to resync every time a tick event occurs.
Reply with quote
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Sun Oct 24, 2004 6:17 pm   
 
How do you trigger it to resync?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Oct 24, 2004 10:03 pm   
 
Say you have a spell that wears off at the end of a tick, make a trigger based on that text that issues the command #TZ:
#trigger {<Message that tick occurred>} {#TZ}
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