| Anonymous | Login | Signup for a new account | 21-06-26 14:17 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |
| 0001903 | SphereServer | executable - generic | public | 28-01-11 23:18 | 11-02-11 03:11 | |
| Reporter | Coruja | |||||
| Assigned To | MrSugarCube | |||||
| Priority | normal | Severity | minor | Reproducibility | always | |
| Status | closed | Resolution | no change required | |||
| Platform | OS | OS Version | ||||
| Product Version | ||||||
| Target Version | Fixed in Version | |||||
| Summary | 0001903: Console error using SERV.CLIENT.x | |||||
| Description | If 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 Reproduce | Using 28/01 sphere release | |||||
| Tags | No tags attached. | |||||
| Nightly Version | Automated (specify build number) | |||||
| Experimental Flags | None | |||||
| Option Flags | None | |||||
| Internal Build Number | ||||||
| Attached Files | ||||||
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 |