SphereServer BugTracker - SphereServer
View Issue Details
0002013SphereServerexecutable - genericpublic01-08-11 07:2501-08-11 08:51
Coruja 
 
normalminoralways
closedno change required 
 
 
Automated (specify build number)
None
None
1488
0002013: SERV.ITEMDEF returning console error
IF (<SERV.ITEMDEF.i_deed_<STRSUB 8 0 <BASEID>>>)
 ...
ENDIF

If i_deed_something exists it will return 1, but if i_deed_something is an undefined item it return a console error instead of return 0

00:17:ERROR:(deed_addons.scp,73)Undefined symbol 'i_deed_something'
No tags attached.
Issue History
01-08-11 07:25CorujaNew Issue
01-08-11 07:45CorujaNote Added: 0001201
01-08-11 08:51MrSugarCubeNote Added: 0001203
01-08-11 08:51MrSugarCubeStatusnew => closed
01-08-11 08:51MrSugarCubeResolutionopen => no change required

Notes
(0001201)
Coruja   
01-08-11 07:45   
the same occour using SERV.CHARDEF
(0001203)
MrSugarCube   
01-08-11 08:51   
The error is valid. Sphere doesn't know about the 'i_deed_something' defname and doesn't understand how to parse it.

You should check <DEF0.i_deed_something> first to make sure the defname exists (in this case you should be able to safely combine both checks -> <SERV.ITEMDEF.<DEF0.i_deed_something>>).