View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001903SphereServerexecutable - genericpublic28-01-11 23:1811-02-11 03:11
ReporterCoruja 
Assigned ToMrSugarCube 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001903: Console error using SERV.CLIENT.x
DescriptionIf I use SERV.CLIENT.X and this client X is offline, the sphere return 'invalid command' and a console error 'cant resolve SERV.CLIENT.X.SOMETHING'

Many times I got this error because sphere returns 100 players online on SERV.CLIENTS, them I use

FOR 0 <eval <SERV.CLIENTS>-1>
 SERV.CLIENT.<LOCAL._FOR>.SAY lol
ENDFOR

and I got many console errors because client 30, 46, 78, etc is not successfully online (maybe on 'connecting' screen)
I dont know how to solve this. Probably return 0 or -1 if the char is offline can fix this
Steps To ReproduceUsing 28/01 sphere release
TagsNo tags attached.
Nightly VersionAutomated (specify build number)
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000873)
Incanus (reporter)
29-01-11 01:25

From Sphere Wiki:
Note: The nth client may not be an ingame player character, <CLIENT.n> first as it returns 1 for ingame clients and 0 for non-player clients.
(0000878)
Coruja (developer)
29-01-11 05:26
edited on: 29-01-11 05:29

thats the problem, lol

.show serv.clients -> '80'
.show serv.client.50 -> '1'
.show serv.client.100 -> 'invalid command' (or 'cant resolve serv.client.100' if the function is called from some script)

EDIT: Btw, it works fine if X < serv.clients and return 0 if the char is not online
but if used X where X > serv.clients, the error occour

(0000879)
MrSugarCube (administrator)
29-01-11 05:36

The example script you included in the description does not check <serv.client.<local._for>>.

If serv.clients returns 80, then serv.client.100 is out of range.. 0 to 79 are valid indexes.

- Issue History
Date Modified Username Field Change
28-01-11 23:18 Coruja New Issue
29-01-11 01:25 Incanus Note Added: 0000873
29-01-11 03:50 MrSugarCube Severity major => minor
29-01-11 03:52 MrSugarCube Status new => closed
29-01-11 03:52 MrSugarCube Assigned To => MrSugarCube
29-01-11 03:52 MrSugarCube Resolution open => no change required
29-01-11 05:26 Coruja Note Added: 0000878
29-01-11 05:26 Coruja Status closed => feedback
29-01-11 05:26 Coruja Resolution no change required => reopened
29-01-11 05:29 Coruja Note Edited: 0000878 View Revisions
29-01-11 05:36 MrSugarCube Note Added: 0000879
11-02-11 03:11 MrSugarCube Status feedback => closed
11-02-11 03:11 MrSugarCube Resolution reopened => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker