SphereCommunity
Function f_onserver_timer issue - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Function f_onserver_timer issue (/Thread-Function-f-onserver-timer-issue)



Function f_onserver_timer issue - PePs1Man - 06-23-2017 10:47 PM

Hello everyone,

I am having issues with the function F_ONSERVER_TIMER.

Let's say I have TIMERCALL=2 in the ini settings and use the following function:

Code:
[FUNCTION f_onserver_timer]
serv.log f_onserver_timer called

To my knowledge, the timer should be triggered every two minutes, am I right?

But in practice, here's what I log for that fucntion:

Code:
02:54:(functions_f_command.scp,22)f_onserver_timer called
03:14:(functions_f_command.scp,22)f_onserver_timer called
03:34:(functions_f_command.scp,22)f_onserver_timer called
03:54:(functions_f_command.scp,22)f_onserver_timer called
04:14:(functions_f_command.scp,22)f_onserver_timer called
04:34:(functions_f_command.scp,22)f_onserver_timer called
04:54:(functions_f_command.scp,22)f_onserver_timer called
05:14:(functions_f_command.scp,22)f_onserver_timer called
05:34:(functions_f_command.scp,22)f_onserver_timer called
05:54:(functions_f_command.scp,22)f_onserver_timer called
06:14:(functions_f_command.scp,22)f_onserver_timer called
06:34:(functions_f_command.scp,22)f_onserver_timer called
06:54:(functions_f_command.scp,22)f_onserver_timer called
07:14:(functions_f_command.scp,22)f_onserver_timer called
07:34:(functions_f_command.scp,22)f_onserver_timer called
07:54:(functions_f_command.scp,22)f_onserver_timer called
08:14:(functions_f_command.scp,22)f_onserver_timer called
08:34:(functions_f_command.scp,22)f_onserver_timer called
(World save and GC data was trimmed out of this log)

I wanted to confirm with you guys prior sending this to the bugtracker.

Oh and here is my sphere release version:
Sphere Version 0.56c-Release [WIN32] by http://www.spherecommunity.net, compiled at Apr 10 2016 (16:50:52) [build 2807 / GIT hash 0dc0ebf]

Thanks and have a great day,

PePsiMan


RE: Function f_onserver_timer issue - darksun84 - 06-23-2017 11:13 PM

Was fixed in September 2016 Build.

05-09-2016, Coruja
Fixed: TimerCall setting on sphere.ini using wrong time format (hours instead minutes) to call f_onserver_timer function.