Page 1 of 1

did you know?

Posted: 10 Feb 2013, 14:37
by xbx
There's a hidden feature in the script modes (since quite a long time actually...):
#Const Description "balbalbal"

makes the description text appear in the help menu in-game.

And now there's a "ModeStatusMessage" string in the api, that should appear in the join dialog box before entering the server.
(if ModeStatusMessage is empty, the Description is shown instead)

Re: did you know?

Posted: 11 Feb 2013, 09:49
by Akbalder
Thanks. :thumbsup:
You should put in in Nadeo gamesmodes to encourage us to use it. ;)

Re: did you know?

Posted: 14 Feb 2013, 11:09
by Akbalder
In Realm's script, the "#Const Description" says "See rules on the spawn's screen for more details.".
It seems strange. :?
Isn't the help menu in-game supposed to replace the "press f1 at spawn" help?

I can't find "ModeStatusMessage" in any Nadeo script.
What kind of message should we write here?

Re: did you know?

Posted: 14 Feb 2013, 15:13
by steeffeen
Akbalder wrote:In Realm's script, the "#Const Description" says "See rules on the spawn's screen for more details.".
It seems strange. :?
Isn't the help menu in-game supposed to replace the "press f1 at spawn" help?

I can't find "ModeStatusMessage" in any Nadeo script.
What kind of message should we write here?
'ModeStatusMessage' can be set by server controllers to replace the 'Description' given by the mode script itself

the ingame help window keeps being empty for me, how do you set its text?
the text of Description is shown on the join server screen

Re: did you know?

Posted: 14 Feb 2013, 15:22
by w1lla
You can also use CMode::ModeStatusMessage("Test"); To display it aswell

Re: did you know?

Posted: 14 Feb 2013, 15:51
by Akbalder
I added the constant description in my script.

Code: Select all

#Const Description  """TYPE: Team versus Team
OBJECTIVE: Your team must send all the opposing team to jail.

See rules on the spawn's screen for more details."""
This value is displayed on the join server screen AND on the ingame help menu.

Re: did you know?

Posted: 14 Feb 2013, 16:40
by steeffeen
Akbalder wrote:I added the constant description in my script.

Code: Select all

#Const Description  """TYPE: Team versus Team
OBJECTIVE: Your team must send all the opposing team to jail.

See rules on the spawn's screen for more details."""
This value is displayed on the join server screen AND on the ingame help menu.
Hm, okay thanks.
i will check it later, but the last time i tried that the text wasn't shown in the help menu :cry:

Re: did you know?

Posted: 14 Feb 2013, 18:13
by Eole
You have to restart the server after updating the #Const value to see it in the help menu. Or at least I have to do that.

Re: did you know?

Posted: 14 Feb 2013, 19:24
by steeffeen
Eole wrote:You have to restart the server after updating the #Const value to see it in the help menu. Or at least I have to do that.
i don't know if that did the trick but it's working now, thanks :thumbsup: