Latch cvars cannot be changed on a TITLEMAP

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Zhs2
Posts: 1275
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere

Latch cvars cannot be changed on a TITLEMAP

Post by Zhs2 »

... because a TITLEMAP counts as a game in progress. This hinders end user experience when you're developing a mod with a TITLEMAP (or an addon to one) involving options that shouldn't be able to be changed in the middle of a game session, as when the user enters the options menu they find options that inexplicably can't be changed plus zero feedback on why they can't change them.
User avatar
Player701
 
 
Posts: 1649
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support

Re: Latch cvars cannot be changed on a TITLEMAP

Post by Player701 »

Clarification: latch CVARs can be changed, the actual problem is that there is no way to retrieve the pending value from user code - thus, you always see only the current value in the menu, and this is indeed confusing. This likely stems from the fact that latch CVARs were not designed to work with menus in the first place. I believe this issue has been brought up multiple times before, and the only workaround I know of is to use non-latch CVARs instead and implement the "latching" mechanism manually in ZScript, which is exactly what I did in my own project.
User avatar
Zhs2
Posts: 1275
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere

Re: Latch cvars cannot be changed on a TITLEMAP

Post by Zhs2 »

That sounds like a lot of extra effort to work around an oversight in the menu code.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49098
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Latch cvars cannot be changed on a TITLEMAP

Post by Graf Zahl »

The only native latch CVARs are deathmatch and gameskill, which - big surprise! - were never supposed to be used in a menu.
Unfortunately there is no trivial fix because the latched values are stored out of reach from the menu.

My general advice here is, do not use latch variables in the menu.


I'll file this as "can't fix".

Return to “Closed Bugs [GZDoom]”