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:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer and decay flag
Author Message
CptObvious
Apprentice
*

Posts: 27
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #1
Timer and decay flag
Good day, I'm having an annoying problem with the decay flag.
I have to launch a sector.allitems checking a tag on everything and deleting it. When I do this I get a ton of console errors like
Quote:ERROR:Timer expired without DECAY flag 'curtain' (UID=40001bb3)?
Well... "curtain" is an item set as static (used in game .static i_curtain) and its timer is -1 as it should be.

What is the problem? Is something about the attr_static or attr_move_never? Is about the sector.allitems? Whaaaat?! >_<

Messing scripts on DNA Shard (ita) : P
04-27-2012 05:48 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Timer and decay flag
there is no problem its harmless in this situation.
04-27-2012 06:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: Timer and decay flag
you have to put an return 1 under the on@timer trigger at the end of your code
04-27-2012 06:11 PM
Find all posts by this user Like Post Quote this message in a reply
CptObvious
Apprentice
*

Posts: 27
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #4
RE: Timer and decay flag
LOL but these items have no @timer! Plus their timer is -1 and nothing can change this property °O°

Messing scripts on DNA Shard (ita) : P
04-28-2012 04:42 AM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #5
RE: Timer and decay flag
The timer became -1 after it expired.

If you just use .add to place a static it will have no timer. If you ever move the object and it doesn't have the no decay flag it will set its timer to the countdown for decay. Normally this would just delete the item... but yours isn't set to decay either, so Sphere is letting you know it expects you to be doing something when the timer goes off because it sure as heck has no idea what to do.

So it warns you and set the timer to -1 and continues.
04-28-2012 04:56 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #6
RE: Timer and decay flag
These might help.

Code:
on=@create
attr=attr_move_always

or

Code:
on=@create
attr=attr_can_decay   // same as attr_move_always
04-29-2012 12:47 PM
Find all posts by this user Like Post Quote this message in a reply
CptObvious
Apprentice
*

Posts: 27
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #7
RE: Timer and decay flag
Well the situation is a bit confusing.
I placed some items using the .static and some setting timer=-1 in the script (without flags). All of them, in the .info, have timer=-1.
When the sector.allitems occurs all of the items give that console error, without decaying.

It's like the sector.allitems resets the timer, so it become 0, so the item should decay but can't do it, so there is the error *_*

Messing scripts on DNA Shard (ita) : P
04-29-2012 07:01 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #8
RE: Timer and decay flag
Yes, I gave you the attribute answer. Which you can set on items that don't have it.
04-30-2012 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
CptObvious
Apprentice
*

Posts: 27
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #9
RE: Timer and decay flag
Oh, so I have to set them decay even if they shall not decay.

I'm trying right now Smile

Messing scripts on DNA Shard (ita) : P
04-30-2012 07:21 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #10
RE: Timer and decay flag
I assume my flag method worked?
05-01-2012 11:30 AM
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)