did you know?

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
xbx
Nadeo
Nadeo
Posts: 1289
Joined: 14 Jun 2010, 17:35

did you know?

Post 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)
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: did you know?

Post by Akbalder »

Thanks. :thumbsup:
You should put in in Nadeo gamesmodes to encourage us to use it. ;)
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: did you know?

Post 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?
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: did you know?

Post 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
Last edited by steeffeen on 14 Feb 2013, 15:43, edited 1 time in total.
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    w1lla
    Posts: 2287
    Joined: 15 Jun 2010, 11:09
    Location: Netherlands
    Contact:

    Re: did you know?

    Post by w1lla »

    You can also use CMode::ModeStatusMessage("Test"); To display it aswell
    Last edited by w1lla on 14 Feb 2013, 16:28, edited 1 time in total.
    TM² Info
    SM Info
    QM Info

    OS: Windows 10 x64 Professional
    MB: MSI 970A-G46
    Processor: AMD FX-6300 3500 mHz
    RAM Memory: 16 GB DDR3
    Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
    KB: Logitech G510s
    Mouse: Logitech G300s
    Mode Creation
    ManiaScript Docs
    Akbalder
    Posts: 1059
    Joined: 15 Jun 2010, 11:00
    Contact:

    Re: did you know?

    Post 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.
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: did you know?

    Post 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:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      Eole
      Nadeo
      Nadeo
      Posts: 1265
      Joined: 26 Apr 2011, 21:08

      Re: did you know?

      Post 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.
      Contribute to the ManiaPlanet documentation on GitHub
      A question about ManiaScript? Ask it here!
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: did you know?

      Post 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:
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        Post Reply

        Return to “ManiaScript”

        Who is online

        Users browsing this forum: No registered users and 1 guest