Gammon Forum
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 (22,975 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.
15,201 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.