Server-side chat time and Help text?

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
aborttrap
Posts: 54
Joined: 03 Oct 2011, 01:52
Location: NSW, Australia
Contact:

Server-side chat time and Help text?

Post by aborttrap »

Hi guys,

I can't seem to find anywhere in the ManiaScript class reference a way to get the value used by the "Chat time" field in the in-game server creation menu. The closest thing I found was CUIConfig's CountdownEndTime, but this returned -1. I don't want to define this value in code, because the user would get confused why their value was ignored. I could define it as a #Setting, but this is just creating more complexity for the user.

Also can't find a way to change the mode's "Help" text (in a race, open the Pause menu > Help button). I noticed in here it shows a stretched ManiaPlanet logo and the name of my mode in capital letters - does this suggest there is a public way of doing this?

Thanks! :D
Last edited by aborttrap on 01 Jul 2013, 15:41, edited 1 time in total.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Server-side chat time and Help text?

Post by w1lla »

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

Re: Server-side chat time and Help text?

Post by steeffeen »

aborttrap wrote:the value used by the "Chat time" field in the in-game server creation menu
you can't read this value and it isn't used anyways
what exactly do you want to achieve?
aborttrap wrote:The closest thing I found was CUIConfig's CountdownEndTime
this value sets the end time of the countdown timer (at the top) which then counts down until the set time
aborttrap wrote:Also can't find a way to change the mode's "Help" text (in a race, open the Pause menu > Help button). I noticed in here it shows a stretched ManiaPlanet logo and the name of my mode in capital letters - does this suggest there is a public way of doing this?
you can modify this text via the description constant

Code: Select all

#Const Description "help text"
http://forum.maniaplanet.com/viewtopic. ... 79&t=16408
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    aborttrap
    Posts: 54
    Joined: 03 Oct 2011, 01:52
    Location: NSW, Australia
    Contact:

    Re: Server-side chat time and Help text?

    Post by aborttrap »

    Thanks!
    steeffeen wrote:you can't read this value and it isn't used anyways
    If it isn't used by the server at all, shouldn't that be a bug?
    steeffeen wrote: what exactly do you want to achieve?
    I'd like my game mode to use the server-side chat time value, rather than using my own hardcoded constant.
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Server-side chat time and Help text?

    Post by steeffeen »

    aborttrap wrote:If it isn't used by the server at all, shouldn't that be a bug?
    well i think it's only used in trackmania and therefore could be hidden in shootmania, right
    aborttrap wrote:I'd like my game mode to use the server-side chat time value, rather than using my own hardcoded constant.
    yeah but for which feature? the waiting time after a map? is that really so important that you want it to be configurable? i think most of the users don't care about the "Chat time" anyways and wouldn't mind using a #Setting for that
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      aborttrap
      Posts: 54
      Joined: 03 Oct 2011, 01:52
      Location: NSW, Australia
      Contact:

      Re: Server-side chat time and Help text?

      Post by aborttrap »

      steeffeen wrote:well i think it's only used in trackmania and therefore could be hidden in shootmania, right
      I'm making a TrackMania mode - and yes, changing the value in Time Attack (TrackMania) does change the end-of-game chat time.
      steeffeen wrote:yeah but for which feature? the waiting time after a map? is that really so important that you want it to be configurable? i think most of the users don't care about the "Chat time" anyways and wouldn't mind using a #Setting for that
      I thought it would be better to use the standard value, so that dedicated server owners can more seamlessly adapt to using my mode. :)
      User avatar
      w1lla
      Posts: 2287
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: Server-side chat time and Help text?

      Post by w1lla »

      Try a wait(10000); then it might wait to go for next map
      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
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: Google [Bot] and 2 guests