SphereCommunity
excluding one special sector from sectorsleep - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: excluding one special sector from sectorsleep (/Thread-excluding-one-special-sector-from-sectorsleep)



excluding one special sector from sectorsleep - Berkley - 02-12-2020 05:08 AM

Hello,

is it possible to exclude one special sector from the sectorsleep feature?

It's because i use the time and weather script from admin phoenix.
The worldclock generator must be placed at 11,11, thats within a sector, nobody visits for months.
So i like to exclude that sector from sleep feature to let the script run without sleeping too.

Best regards, Lars


RE: excluding one special sector from sectorsleep - Coruja - 02-13-2020 05:59 AM

You just need to type ".go 11,11" and ".SECTOR.FLAGS=01" to make this sector never sleep

Code:
[DEFNAME sector_flags]
secf_nosleep    01 //sector will never sleep, this flag take over secf_instasleep
secf_instasleep    02 //sector will sleep as soon as there is no active client inside



RE: excluding one special sector from sectorsleep - Berkley - 02-13-2020 11:31 PM

@Coruja

many thanks again. That's it.

Best regards, Lars


RE: excluding one special sector from sectorsleep - Kanibal - 02-15-2020 08:29 PM

(02-13-2020 05:59 AM)Coruja Wrote:  sector will sleep as soon as there is no active client inside
Is there any reason to set this feature now?


RE: excluding one special sector from sectorsleep - Coruja - 02-21-2020 01:32 PM

Not really, sleeping sectors will stop all running timers inside it to avoid CPU usage, so it will freeze TIMER of items on ground and will also freeze all NPCs (because AI actions like walk/wander/etc are timer-based)

But "SectorSleep" setting on sphere.ini already make sectors sleep automatically after some time, so you don't need to make sectors sleep manually