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
timerd problem. (56d-Nightly)
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: timerd problem. (56d-Nightly)
I'm testing here using this code, and its working fine

Code:
[TYPEDEF t_test_timer] // usage: just type ".xevents +t_test_timer" or ".xtype t_test_item" and then ".xtimerd 10"
ON=@Timer
say timer
return 1

But note that sphere internal engine must loop through all objects on world to keep updating the timer of each one, and its not a good idea loop through many hundreds/millions of items 10x per second (TIMERD), so sphere only uses TIMERD on chars, and TIMER on items. You can set TIMERD on items but it will automatically drop the precision (eg: TIMERD=22 will turn into TIMER=2)
02-06-2020 07:14 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
timerd problem. (56d-Nightly) - Satvet - 02-04-2020, 11:04 AM
RE: timerd problem. (56d-Nightly) - Coruja - 02-06-2020 07:14 AM
RE: timerd problem. (56d-Nightly) - Satvet - 02-18-2020, 01:29 PM
RE: timerd problem. (56d-Nightly) - Coruja - 02-21-2020, 03:33 PM
RE: timerd problem. (56d-Nightly) - Satvet - 02-21-2020, 09:01 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)