Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ How to reset the wait timer subroutine thing?
How to reset the wait timer subroutine thing?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Ada
(20 posts) Bio
|
Date
| Mon 27 Jun 2011 02:45 PM (UTC) |
Message
| Hi! I was trying to use the "wait" module as described here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4956
But I miscalculated the time I needed to wait between each command sent to the game so I hit Ctrl-Shift-R to reset the script. However, now I keep getting the error,
The timer (wait_timer_6145) subroutine named "wait.timer_resume" could not be found.
whenever I try to reset the script. Is there any way to get a 'clean slate' with this besides closing MUSHclient or the world entirely and restarting it? Thanks!
Love,
Ada | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #1 on Mon 27 Jun 2011 04:34 PM (UTC) |
Message
| You can remove the timer from the Timers screen in your World Properties, if that is what you mean.
If I misunderstand you though, please clarify a bit more. :) | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 28 Jun 2011 04:16 AM (UTC) |
Message
| Yes, the wait.time function basically adds a timer to the timer list. If you then reload the script the timer fires but can't find the script it is supposed to run. You could delete the timer if it is in the main world file.
This shouldn't be too much of an annoyance during testing. For production use, if you need to prematurely exit a "wait" loop, build in some sort of flag that gets tested in the loop. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Ada
(20 posts) Bio
|
Date
| Reply #3 on Tue 28 Jun 2011 09:05 AM (UTC) |
Message
| Ahh, yay! Never noticed a timer gets added. Thanks! | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,657 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top