The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TimerCall
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
TimerCall
Doesn't seem to be working. I've set it to 1, added a "serv.log Test" on [FUNCTION f_onserver_timer] and it never appears.


Code:
// Amount of items in one sector to start showing "x items too complex"
MaxSectorComplexity=2000
///1024

// Limit the number of cycles the while/for loop can proceed. Setting this to
// zero disables the limitation
MaxLoopTimes=0

// Amount of minutes to call f_onserver_timer (0 disables this, default)
TimerCall=1

// Should sphere record the time it takes to do actions like treating npcs, scripts, clients and such?
// Can be viewed by right clicking the mouse on sphere screen.
Profile=0

///////////////////////////////////////////////////////////////
//////// Magic/Effects Settings
///////////////////////////////////////////////////////////////

// Allow casting while equipped
EquippedCast=1

// Words of power for player using magic
WOPPlayer=1

// Words of power for staff using magic
WOPStaff=1

Sphere Version 0.56d-Nightly [WIN32] by http://www.spherecommunity.net, compiled at Dec 17 2016 (16:38:33)
(This post was last modified: 12-27-2016 03:32 PM by Leonidas.)
12-27-2016 03:31 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: TimerCall
are you sure that you had created f_onserver_timer correctly?
it's working fine here using TimerCall=1
Code:
[FUNCTION f_onserver_timer]
SERV.LOG Testing

result:
Code:
05:50:(sphere_serv_triggers.scp,150)Testing
05:51:(sphere_serv_triggers.scp,150)Testing
05:52:(sphere_serv_triggers.scp,150)Testing
05:53:(sphere_serv_triggers.scp,150)Testing
05:54:(sphere_serv_triggers.scp,150)Testing
05:55:(sphere_serv_triggers.scp,150)Testing
12-27-2016 06:02 PM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: TimerCall
Yeah:

Code:
[FUNCTION f_onserver_start]
// The f_onserver_start function is called on server startup.

//Serv.ServIP ip.address //Add your public IP here (not domain) if you are behind a router.
F_FEATURES



[FUNCTION f_onserver_timer]
SERV.LOG Test



[FUNCTION f_onserver_save]
// The f_onserver_save function is called before server is going to save.
// ARGN1 --> save is forced (writable)
// ARGN2 --> save stage (for backgroud save goes 1 to 6146 [sector count + 2])
// RETURN
//      0 --> normal action (save)
//      1 --> denyes save

I'm pretty sure it worked fine on 56c, now its just not working at all.
12-28-2016 10:05 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #4
RE: TimerCall
Well I feel stupid, just found another f_onserver_timer fuction in another script file which was the cause of this lol
12-28-2016 04:09 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)