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
➜ Bug reports
➜ World.GetTimerList deleting my timers.
|
World.GetTimerList deleting my timers.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Rhinoa
United Kingdom (37 posts) Bio
|
| Date
| Mon 10 Mar 2003 12:02 AM (UTC) Amended on Fri 14 Mar 2003 08:51 AM (UTC) by Rhinoa
|
| Message
| I have this:
timerList = World.GetTimerList
For Each t In timerList
world.setvariable t, world.gettimerinfo (t, 13)
next
Now, for some reason, it deletes all of my timers, and doesn't set any variables.
I've tried it with
and
and it works alright without deleting my timers, so my guess is it's the
bit.
~Rhinoa~ | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 12 Mar 2003 05:24 AM (UTC) |
| Message
| I can't reproduce it with these timers:
<timers>
<timer name="timer2" enabled="y" second="30" offset_second="15" >
<send>dance</send>
</timer>
<timer name="timer1" enabled="y" second="30" >
<send>sigh</send>
</timer>
</timers>
Did your timers have labels? Can you copy and paste a couple of example timers? What version of MUSHclient are you using? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Rhinoa
United Kingdom (37 posts) Bio
|
| Date
| Reply #2 on Wed 12 Mar 2003 08:59 AM (UTC) |
| Message
| All of my timers have labels. I'm using v3.32
Before I wrote this I did a little messing around.
I opened the world, I put the code in immediate and hit run. Like before it deleted my timers and set no variables.
I then readded all of my timers, and hit run again. But this time it set the variables perfectly, and didn't remove any of my timers.
(sample timers)
<timers>
<timer name="Save" script="WorldSave" enabled="y" minute="5" active_closed="y" >
</timer>
<timer name="Keep_Active" enabled="y" minute="15" >
<send>>
<</send>
</timer>
<timer name="Payment" script="Payment" enabled="y" second="1" active_closed="y" >
</timer>
</timers>
~Rhinoa~ | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Thu 13 Mar 2003 09:26 PM (UTC) |
| Message
| I added your three timers, saved and closed the world.
I then re-opened it, went into immediate mode, and ran your little script.
The variables were set and no timers deleted. This was with 3.32. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Rhinoa
United Kingdom (37 posts) Bio
|
| Date
| Reply #4 on Fri 14 Mar 2003 08:51 AM (UTC) |
| Message
| Well I guess it only wants to happen to me then..
Thanks for your help anyway Nick, I guess I'll have to find a way around it. I'll post here if I find out anymore. | | 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,122 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top