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
➜ A timmer issue for mushclient 4.61
|
A timmer issue for mushclient 4.61
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Lonestar42
(4 posts) Bio
|
| Date
| Sat 01 Jun 2013 04:40 AM (UTC) |
| Message
| Hi Gammon:
I'm new user for mushclient from china, I got strange problem for timmer in mushclient. I ran a lua script on a VPS(Virsual Private Server, OS: windows XP). Sometimes the timer in mush will be reset to over 20 minutes...
e.g: I add a timer to "say:hello" every 5 minutes, But after a while(maybe 20 minutes), I found the timer indicate the next "say hello" time is after 20 minutes.
I guess maybe the mushclient has some compatbility problem with some hardware or OS? how Can I do some trouble shooting for this issue?
Thanks
BRs
your fans. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 03 Jun 2013 10:53 AM (UTC) |
| Message
| Please post your timer.
 |
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Lonestar42
(4 posts) Bio
|
| Date
| Reply #2 on Mon 03 Jun 2013 01:25 PM (UTC) Amended on Mon 03 Jun 2013 01:37 PM (UTC) by Lonestar42
|
| Message
|
Nick Gammon said:
Please post your timer.
(copying)
Hi:
The script I used is same as other players in same mud. They do not have such problem. Meanwhile, I try it on the real PC(Not a VPS), it seems work well(run about 2 hours, no any idle and the timer works fine).I tried on 4.84, the issue can be reproduced too.
Please check this screenshot when issue happens:
http://farm4.staticflickr.com/3786/8935844388_5e13c53433_o.jpg
The XML when issue happens:
<timers>
<timer name="timeup_li" enabled="y" minute="1" second="15.00" offset_second="0.00" send_to="12"
>
<send>g_quests.li.timeup = true</send>
</timer>
</timers>
<timers>
<timer name="home" enabled="y" minute="1" second="30.00" offset_second="0.00" send_to="12"
group="home" >
<send>home()</send>
</timer>
</timers>
below is the normal codtion's timer:
<timers>
<timer name="home" enabled="y" minute="1" second="0.00" offset_second="0.00" send_to="12"
group="home" >
<send>home()</send>
</timer>
</timers>
<timers>
<timer name="timeup_li" enabled="y" minute="1" second="15.00" offset_second="0.00" send_to="12"
>
<send>g_quests.li.timeup = true</send>
</timer>
</timers>
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Thu 06 Jun 2013 10:13 PM (UTC) |
| Message
| | The script might be changing the timer interval. Hard to say without seeing it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Lonestar42
(4 posts) Bio
|
| Date
| Reply #4 on Fri 07 Jun 2013 12:08 PM (UTC) |
| Message
|
Nick Gammon said:
The script might be changing the timer interval. Hard to say without seeing it.
Hi, thanks for your reply, below is the function of setTimer in script:
function SetTimer(name, secs)
local minute = 0;
if secs >= 60 then
minute = math.floor(secs/60);
SetTimerOption(name,"minute",minute);
secs = secs - minute*60;
end
SetTimerOption(name, "minute", minute);
SetTimerOption(name, "second", secs);
ResetTimer(name);
end
I guess setTimerOption and ResetTimer is the System function. But I cannot see any tricky part in here.
BRs | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Sat 08 Jun 2013 08:30 AM (UTC) |
| Message
| | I don't know, but maybe print out the new timer settings after resetting it to be sure it is right. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Lonestar42
(4 posts) Bio
|
| Date
| Reply #6 on Mon 10 Jun 2013 01:06 PM (UTC) |
| Message
|
Nick Gammon said:
I don't know, but maybe print out the new timer settings after resetting it to be sure it is right.
How Can I print out the new timer settings? thanks. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Tue 11 Jun 2013 04:26 AM (UTC) |
| Message
|
function SetTimer(name, secs)
local minute = 0;
if secs >= 60 then
minute = math.floor(secs/60);
SetTimerOption(name,"minute",minute);
secs = secs - minute*60;
end
SetTimerOption(name, "minute", minute);
SetTimerOption(name, "second", secs);
ResetTimer(name);
print ("minute = ", GetTimerOption(name, "minute"));
print ("second = ", GetTimerOption(name, "second"));
end
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #8 on Tue 11 Jun 2013 04:27 AM (UTC) |
| Message
| Also:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
29,207 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top