Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
excluding one special sector from sectorsleep
Author Message
Berkley
Journeyman
*

Posts: 52
Likes Given: 26
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #1
excluding one special sector from sectorsleep
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
02-12-2020 05:08 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 970
Likes Given: 5
Likes Received: 223 in 185 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: excluding one special sector from sectorsleep
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
02-13-2020 05:59 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Berkley
Journeyman
*

Posts: 52
Likes Given: 26
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #3
RE: excluding one special sector from sectorsleep
@Coruja

many thanks again. That's it.

Best regards, Lars
02-13-2020 11:31 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Journeyman
*

Posts: 232
Likes Given: 5
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 1



Post: #4
RE: excluding one special sector from sectorsleep
(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?

Grandmaster Localhost Admin
02-15-2020 08:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 970
Likes Given: 5
Likes Received: 223 in 185 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: excluding one special sector from sectorsleep
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
02-21-2020 01:32 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)

This forum uses Lukasz Tkacz MyBB addons.