SphereServer BugTracker - SphereServer
View Issue Details
0001895SphereServerexecutable - genericpublic22-01-11 13:3222-01-11 13:37
SomeBody 
 
normalmajoralways
closedduplicate 
20-09-2009, 0.56b Prerelease 
 
20-09-2009
DiagonalWalkCheck, WalkCheck
Command_Sysmsgs, NoHouseMuteSpeech
0001895: Time doesn't work properly when serv.time is close to overflow
When server total uptime value reaches big enough value (close to integer max value, which is 2,147,483,647) TIMER stops working on items - it expires immediately.

For exmaple, my server has serv.time = 2143201945 (online since 2003), if I set
.x timer 1814400
to any item, the timer will not be set, it expires rigth away. I suppose it is due to Sphere internal timer implementation (181440 + 2143201945 is greater then integer max size).

Morever, when server uptime reaches ~ 2,147,480,000 Sphere starts to do world save one by one without any delay (the exact value depends on save period in sphere.ini).

The workaround is to manually reset server time. Hovewer this seems to me like sphere timer mechanism is not quite robust.
1. Set serv.time to 2143201945
2. Try to set .x timer 1814400 to any item. The timer will expire right away
No tags attached.
duplicate of 0001447resolved Beyonder Timer MaxValue 
Issue History
22-01-11 13:32SomeBodyNew Issue
22-01-11 13:36MrSugarCubeRelationship addedduplicate of 0001447
22-01-11 13:37MrSugarCubeStatusnew => closed
22-01-11 13:37MrSugarCubeResolutionopen => duplicate

There are no notes attached to this issue.