So I've been using a tick timer successfully for over a month now, not a single issue with it, then all of a sudden today it's been quite... difficult. It'll not fire for several ticks, fire 2-3 times at once, or just at incorrect times (sometimes multiple times) during a tick.
To give an example;
It's meant to give me the message 3 times, so 6 is a double-fire etc. I ran a stopwatch for a few ticks, they don't appear to have changed in length (every 40-41 seconds), and even if they had it would be a pretty radical change I'd have thought for it to cause problems with a timer firing 7 seconds early?
As a test, I changed the timer to fire off after 3 seconds instead of 34, and used a stopwatch to test the interim between each one. There was about 5-6 seconds between each 3 second timer, so there appears to be a delay coming from somewhere now, and I just... don't see how, where or why.
The Trigger, variable and timer are all as follows. If anyone can see any reason or offer any tests I could do for it, I would be most appreciative!
To give an example;
Log said:
<581/581hp 405/405m 256mv 34583 Defensive 10:00am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 10:30am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 11:00am>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 11:30am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 12:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 12:30pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 1:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 1:30pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 2:00pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 2:30pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 3:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 3:30pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
<581/581hp 405/405m 256mv 34583 Defensive 10:00am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 10:30am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 11:00am>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 11:30am>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 12:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 12:30pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 1:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 1:30pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 2:00pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 2:30pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 3:00pm>
+ The Shalonost Suite +
You are hungry.
<581/581hp 405/405m 256mv 34583 Defensive 3:30pm>
+ The Shalonost Suite +
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
It's meant to give me the message 3 times, so 6 is a double-fire etc. I ran a stopwatch for a few ticks, they don't appear to have changed in length (every 40-41 seconds), and even if they had it would be a pretty radical change I'd have thought for it to cause problems with a timer firing 7 seconds early?
As a test, I changed the timer to fire off after 3 seconds instead of 34, and used a stopwatch to test the interim between each one. There was about 5-6 seconds between each 3 second timer, so there appears to be a delay coming from somewhere now, and I just... don't see how, where or why.
The Trigger, variable and timer are all as follows. If anyone can see any reason or offer any tests I could do for it, I would be most appreciative!
Trigger said:
<triggers>
<trigger
enabled="y"
group="Timer"
keep_evaluating="y"
match="^\<(.*?)\/(.*?)hp (.*?)\/(.*?)m (.*?)mv (.*?) (.*?) (.*?)\>$"
name="TickTimer"
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>now = "%8"
if(now ~= GetVariable('time')) then
ResetTimer('Tick')
SetVariable('time', "%8")
SetVariable('pray_timer',(GetVariable 'pray_timer')-1)
end -- tick</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="Timer"
keep_evaluating="y"
match="^\<(.*?)\/(.*?)hp (.*?)\/(.*?)m (.*?)mv (.*?) (.*?) (.*?)\>$"
name="TickTimer"
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>now = "%8"
if(now ~= GetVariable('time')) then
ResetTimer('Tick')
SetVariable('time', "%8")
SetVariable('pray_timer',(GetVariable 'pray_timer')-1)
end -- tick</send>
</trigger>
</triggers>
Variable said:
<variables>
<variable name="time">8:30pm</variable>
</variables>
<variables>
<variable name="time">8:30pm</variable>
</variables>
Timer said:
<timers>
<timer name="TickTimer" enabled="y" second="34.00" offset_second="0.00" send_to="12"
group="Tick" >
<send>Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")</send>
</timer>
</timers>
<timers>
<timer name="TickTimer" enabled="y" second="34.00" offset_second="0.00" send_to="12"
group="Tick" >
<send>Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")</send>
</timer>
</timers>