Page 1 of 1

Server-side chat time and Help text?

Posted: 01 Jul 2013, 13:51
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

Re: Server-side chat time and Help text?

Posted: 01 Jul 2013, 14:17
by w1lla

Re: Server-side chat time and Help text?

Posted: 01 Jul 2013, 14:26
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

Re: Server-side chat time and Help text?

Posted: 01 Jul 2013, 15:36
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.

Re: Server-side chat time and Help text?

Posted: 01 Jul 2013, 16:26
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

Re: Server-side chat time and Help text?

Posted: 02 Jul 2013, 05:38
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. :)

Re: Server-side chat time and Help text?

Posted: 02 Jul 2013, 07:21
by w1lla
Try a wait(10000); then it might wait to go for next map