Timers resetting when reconnecting to a world.

Posted by Leudoberct on Mon 18 Mar 2019 07:27 PM — 10 posts, 33,135 views.

#0
Using Version 4.94.

I currently have some aliases set up on a world that I connect to, to create some timers and to display the time left on said timers.

Here is an example of the alias to create a timer:

AddTimer ("Climb_timer", 1, 32, 0, "Climb fail reset!",
timer_flag.Enabled + timer_flag.OneShot + timer_flag.TimerNote + timer_flag.ActiveWhenClosed + timer_flag.Temporary, "")

And here is an example of the alias to show the time remaining on a timer:

Note(GetTimerInfo ("Climb_timer", 13))

However, I have a bit of an issue. If I disconnect from a world, the timer will keep on ticking, going down and down etcetera, which is perfectly fine, and is working as intended. However, if I then reconnect to that world by pressing enter and clicking yes, it automatically resets the timer. This is not something I want it to do. Is there a way to disable this?
USA Global Moderator #1
What you're doing seems ok to me. Is it possible that you have an automated trigger that fires on reconnect that is causing this?
#2
Nope, the only triggers I have are ones that recognise specific lines of text and colour them.
USA Global Moderator #3
I don't see anything relevant in the release notes since 4.94, but just in case I missed something, could you try updating MUSHclient executable to the latest release? http://www.gammon.com.au/forum/?id=13918
Amended on Mon 18 Mar 2019 11:14 PM by Fiendish
#4
Isn't the 4.94 the latest stable? And is there a way to update without losing all my aliases and triggers?
USA Global Moderator #5
5.05 is the latest release.

As for not losing your aliases and triggers, those are stored in your world (.mcl) file, which you can backup before updating.
Amended on Mon 18 Mar 2019 11:23 PM by Fiendish
#6
Thanks, this seems to have fixed it. Didn't know 5.05 was the stable release, as the downloads page still says 4.94 was the stable version.
USA Global Moderator #7
What does stable mean anyway? :)
Australia Forum Administrator #8
It looks like that is by design:

https://github.com/nickgammon/mushclient/blob/master/doc.cpp#L7007

Therefore I’m not sure why upgrading fixed it.
Australia Forum Administrator #9
Leudoberct said:

Isn't the 4.94 the latest stable? And is there a way to update without losing all my aliases and triggers?


See http://gammon.com.au/forum/index.php?bbtopic_id=1 for news about newer releases.