SphereServer BugTracker - SphereServer
View Issue Details
0001638SphereServernew feature requestpublic24-07-09 10:1105-01-14 21:36
babidi 
Ben 
normalminoralways
resolvedfixed 
 
0.56c Nightly 
Not Available
None
None
0001638: DEFMESSAGE section not accesible by serv.defmessage
the section
[DEFMESSAGE messages]
//alchemy_dunno "You have no clue how to make this potion."
//alchemy_lack "Hmmm, you lack %s for this potion."
.
.
.

is not accesible using the serv.defmessage...

the utility of making this accesible is to use defined messages for any server
ES. sphere_backward_compatibility.scp
[FUNCTION static] //by Thomas20198701
IF !(<ARGN>)
    IF (<ISEMPTY <DEF.<ARGS>>>)
        SYSMESSAGE Not a valid command or format. <======
        RETURN 0
    endif
endif

we could use SYSMESSAGE <serv.defmessage.cmd_invalid>
somethiung like that
No tags attached.
Issue History
24-07-09 10:11babidiNew Issue
24-07-09 10:11babidiNightly Version => Not Available
24-07-09 10:11babidiExperimental Flags => None
24-07-09 10:11babidiOption Flags => None
02-08-09 04:06MrSugarCubeCategoryexecutable - generic => new feature request
24-08-09 19:15dzhonyNote Added: 0000261
17-10-10 13:12babidiNote Added: 0000700
18-10-10 00:37ShiryuXNote Added: 0000701
18-10-10 07:54babidiNote Added: 0000702
21-10-10 03:16ShiryuXNote Added: 0000714
05-01-14 21:36BenNote Added: 0001881
05-01-14 21:36BenStatusnew => resolved
05-01-14 21:36BenFixed in Version => 0.56c Nightly
05-01-14 21:36BenResolutionopen => fixed
05-01-14 21:36BenAssigned To => Ben

Notes
(0000261)
dzhony   
24-08-09 19:15   
I've noticed that there is a keyword 'defmsg' (sphere command .show defmsg.something does not throw an exception, returning an empty string) and it is not documented on the wiki. Maybe something planned for this?
(0000700)
babidi   
17-10-10 13:12   
maybe can be used putting an unexisting command that will say is not existing using the def message?
like

IF !(<ARGN>)
    IF (<ISEMPTY <DEF.<ARGS>>>)
        fjhhjgfjhfg
        RETURN 0
    endif
endif
(0000701)
ShiryuX   
18-10-10 00:37   
Please, tell me you're not trying to read commented lines.
(0000702)
babidi   
18-10-10 07:54   
lol shiryx
should be uncomented
//cmd_invalid "Not a valid command or format"
(0000714)
ShiryuX   
21-10-10 03:16   
So. It was your mistake or still doesn't work?

BTW, Technically: SERV.DEFMESSAGE = DEFMSG
Is sort of redundance since they are global definitions, def or defmsg would be enough :)
(0001881)
Ben   
05-01-14 21:36   
Implemented.
Read and write with DEFMSG.X