SphereServer BugTracker - SphereServer
View Issue Details
0002300SphereServerexecutable - windows buildpublic29-03-14 03:0929-03-14 16:13
Coruja 
Ben 
normalminoralways
closedno change required 
 
 
Automated (specify build number)
None
None
1834
0002300: Can't read SERV.MAP[x] value
On latest nightly, if I try to read MAPx values from .ini it always return "invalid command" and a console error. Any other .ini setting can be read without problems, but not MAPx values

Example:
MAP0 is enabled on sphere.ini, but when I type ".show serv.map0" I got "invalid command" and these console errors (I just typed 1 command and got 3 errors)

22:57:ERROR:Unsupported Map 0
22:57:ERROR:Unsupported Map 0
22:57:ERROR:Unsupported Map 0
22:57:1:'lol' commands 'show serv.MAP0'=1

The same occour on scripts:

[FUNCTION lol]
FOR 0 5
 IF (<SERV.MAP<dLOCAL._FOR>>)
  SERV.B lol <dLOCAL._FOR>
 ENDIF
ENDFOR

22:59:ERROR:(lol.scp,13)Unsupported Map 0
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP0>
22:59:ERROR:(lol.scp,13)Unsupported Map 1
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP1>
22:59:ERROR:(lol.scp,13)Unsupported Map 2
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP2>
22:59:ERROR:(lol.scp,13)Unsupported Map 3
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP3>
22:59:ERROR:(lol.scp,13)Unsupported Map 4
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP4>
22:59:ERROR:(lol.scp,13)Unsupported Map 5
22:59:ERROR:(lol.scp,13)Can't resolve <SERV.MAP5>
No tags attached.
Issue History
29-03-14 03:09CorujaNew Issue
29-03-14 15:43XuNNote Added: 0002019
29-03-14 16:13BenNote Added: 0002021
29-03-14 16:13BenStatusnew => closed
29-03-14 16:13BenAssigned To => Ben
29-03-14 16:13BenResolutionopen => no change required

Notes
(0002019)
XuN   
29-03-14 15:43   
AFAIR, you typed it wrong: <serv.map.<dlocal._for>
(0002021)
Ben   
29-03-14 16:13   
Although not documented, <serv.MAPx...> and <serv.MAP.x...> are both valid syntax for the same command, but SERV.MAPX is not a command on it's own, it must be followed by .ALLSECTORS or .SECTOR.x.command

The MAPx ini settings are not readable in scripts.