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-nmm6 (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-nmm6 (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-nmm6 (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
Weird roomdef behaviour
Author Message
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #1
Weird roomdef behaviour
Hello,

I've noticed some weird roomdef behaviour between room 1 and room 2.

room 1 (working one):
Code:
[ROOMDEF a_cabin3_1]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=Cabin3
GROUP=Cove
flags=0189a//
P=2230,1214,0,0
RECT=2223,1211,2233,1221,0

room 2 (not working):
Code:
[ROOMDEF cove_digi]
NAME=digi cove
GROUP=Pronajmy
P=2243,1204,0
RECT=2239,1199,2248,1209
FLAGS=0189a

As you can see, both rooms have same flags, however, items still disappear on timer in room 2. I've tried creating the roomdef again, no difference. Do you have any idea?
01-25-2014 08:40 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: #2
RE: Weird roomdef behaviour
Try adding the last 0 for plane to the 2nd. It shouldn't be necessary but I don't see anything else off the top of my head.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
01-25-2014 08:50 AM
Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #3
RE: Weird roomdef behaviour
Nope, items still decaying.
(This post was last modified: 01-25-2014 08:57 AM by tleilax.)
01-25-2014 08:52 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Weird roomdef behaviour
Maybe is an event that force the items to decay when you drop them on the ground.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-25-2014 10:35 PM
Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #5
RE: Weird roomdef behaviour
Nope, the same item doesn't decay in the room1 house. Sad
01-25-2014 11:00 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #6
RE: Weird roomdef behaviour
Does it really look like this, when you changed the second one?
Code:
RECT=2239,1199,2248,1209,0
And restarted sphere.

What about original areadefs the rooms are in, what are their definitions? I also see nothing wrong with that.
01-25-2014 11:34 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #7
RE: Weird roomdef behaviour
Best check the AREADEF that they are in as FLAGS are ignored in ROOMDEFs...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
01-26-2014 02:42 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #8
RE: Weird roomdef behaviour
Well you actually got me in the right way, thanks.

I had a_towncove areadef, which had flags without "region_flag_nodecay", but this room was before that areadef script in my sphere_map0.scp.

I put that roomdef at the end of the script and now it works correctly.

Thanks!
01-26-2014 06:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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