Latch cvars cannot be changed on a TITLEMAP

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Zhs2
Posts: 1254
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: 1575
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: 1254
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.

Return to “Bugs [GZDoom]”