Administrator
284 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
Administrator
888 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:
Join us on discord.quake.world
Member
9 posts
Registered:
Jul 2013
Is it possible this is done to support some server scripting, or mod?
Administrator
284 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.
Member
16 posts
Registered:
Dec 2017
Just change it, if anything comes to light you can just revert
Administrator
384 posts
Registered:
Dec 2006
Displaying seconds used to be prohibited, back when there was no gameclock and /scores obfuscated the seconds.
Member
16 posts
Registered:
Dec 2017
...back when everyone used external clocks
Administrator
284 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.
Member
202 posts
Registered:
Dec 2006
...back when everyone used external clocks
good times