Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Serv.Map.x.Sector.n function] Problem
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #1
[Serv.Map.x.Sector.n function] Problem
Hello guys,
can someone confirm if this is working?

-Added: Read/Write (SERV.MAP.map_num.SECTOR.sec_num function) to have access to individual sectors.

I tried SERV.MAP.0.SECTOR.489 LIGHT 0
but it doesn't work :/

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.
06-19-2013 03:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: [Serv.Map.x.Sector.n function] Problem
Make sure you are using a server version that has that feature, I've used it before, works fine for me.

[Image: 2nis46r.jpg]
06-19-2013 03:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: [Serv.Map.x.Sector.n function] Problem
sec_num it's actually <sector.number> + 1 .

Anyway light works weird, but you can see it works by using other section functions(i used itemcount for testing it).
Well it actually reads the properties but it can't set them properly, i think something override them
(This post was last modified: 06-19-2013 03:49 AM by darksun84.)
06-19-2013 03:41 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: [Serv.Map.x.Sector.n function] Problem
Where is the like button for darksun84?!
Hahaha how will I know that is X+1 ¬¬

Working fine, thanks!

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.
06-19-2013 04:25 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: [Serv.Map.x.Sector.n function] Problem
Not sure where you are getting your information from dark, but it aint sec_num +1
Unless you are standing in the wrong place....
The first sector for each map is sector 1... sectors don't start from 0 because well why would they..

[Image: 2nis46r.jpg]
06-19-2013 07:05 AM
Visit this user's website 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: #6
RE: [Serv.Map.x.Sector.n function] Problem
Not to argue here, but Sectors are 0 based while the (SERV.MAP.map_num.SECTOR.sec_num function) function is 1 based.
The reason behind the function being 1 based was that MAPLIST.map_num.SECTOR.QTY returns the total number of sectors... I won't go into details as to why it was better this way...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
06-19-2013 08:12 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: [Serv.Map.x.Sector.n function] Problem
Because it's your fault? Tongue

[Image: 2nis46r.jpg]
06-19-2013 12:26 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #8
RE: [Serv.Map.x.Sector.n function] Problem
Could you please write this info in revisions? Big Grin

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.
06-20-2013 12:51 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)