User panel stuff on forum
  9 posts on 1 page  1
Client Talk
2018-03-29, 19:40
Administrator
244 posts

Registered:
Sep 2015
/scr_shownick_order & /scr_clock_format can't be changed while connected to a server - does anyone know why that is? /scr_shownick_order has been like that since being added 9 years ago, no comment in the commit as to why the restriction exists.

The hud equivalent of the clock has no such restriction... maybe to stop the server from changing the clock format? it's passed directly to strftime(). JoeQuake has same restrictions so I'm guessing this is from a long time ago?

Cheers,
meag
2018-03-29, 21:39
Administrator
856 posts

Registered:
Jan 2006
Hi!
Don't know more about it, but I saw there's more of the shownick stuff that may not be changed while connected:
http://blaps.se/qw/screenshots/scr_shownick.jpg
IRC went Discord -> join the chats @ discord.quake.world
2018-03-30, 14:22
Member
9 posts

Registered:
Jul 2013
Is it possible this is done to support some server scripting, or mod?
2018-03-30, 18:47
Administrator
244 posts

Registered:
Sep 2015
bps - some of those make sense, I'm just not sure what the deal is with the clock. Maybe there a time when only hour & minute was allowed in the clock format, and it was checked in a similar way to f_ruleset?

sauroman - could be, it would stop the mod/server from changing the setting, but only after full connection (so a malicious server could probably get round it). Can't find any trace of those cvars in old copy of ktpro, which would have been the most obvious place for it.

It's not a big deal, just one of those functionality differences between old & new huds that stops the cvars being merged.
2018-04-02, 01:25
Member
16 posts

Registered:
Dec 2017
Just change it, if anything comes to light you can just revert
2018-09-15, 22:17
Member
362 posts

Registered:
Dec 2006
Displaying seconds used to be prohibited, back when there was no gameclock and /scores obfuscated the seconds.
2018-09-17, 12:37
Member
16 posts

Registered:
Dec 2017
...back when everyone used external clocks
2018-09-20, 20:20
Administrator
244 posts

Registered:
Sep 2015
My best guess is that a mod used to set this, and then this filter was added to stop the server messing with it once :seconds was allowed.

I've switched it over to be the same enumerated type as hud_clock_format now, 0 was the default %H:%M:%S anyway and this way we're not passing cvar values directly into system functions.
2018-09-22, 11:43
Member
202 posts

Registered:
Dec 2006
jawn wrote:
...back when everyone used external clocks

good times
  9 posts on 1 page  1