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
excluding one special sector from sectorsleep
Author Message
Berkley
Journeyman
*

Posts: 54
Likes Given: 28
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: 987
Likes Given: 5
Likes Received: 226 in 187 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: 54
Likes Given: 28
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
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



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: 987
Likes Given: 5
Likes Received: 226 in 187 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)