Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Leonidas
Master
Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 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 |
|
|
Coruja
Sphere Developer
Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7
Dimension Shard
|
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 |
|
|
Leonidas
Master
Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1
|
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 |
|
|
User(s) browsing this thread: 1 Guest(s)