Setting custom CVARs from cmd-line in netgames not working

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
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Setting custom CVARs from cmd-line in netgames not working

Post by Player701 »

NB: the correct title of this thread should be: "Setting custom CVARs from command line in multiplayer games sometimes doesn't work"

It seems that there is something fishy going on when I try to set a custom CVAR by using a command-line parameter when starting a multiplayer game. Sometimes it works, sometimes it doesn't. I've managed to come up with a sequence of actions that reproduces the bug every time. Use the following CVARINFO for that (also attached to this report):

Code: Select all

server bool test_boolvar = false;
The first step is to launch two GZDoom instances and connect them to each other while setting test_boolvar to true when configuring the host:

Code: Select all

gzdoom.exe -file cvarinfo.txt +test_boolvar 1 -host 2
gzdoom.exe -file cvarinfo.txt -join localhost
For this run, test_boolvar is true for both clients. Now we close both instances and run them again, but this time we try setting test_boolvar to false:

Code: Select all

gzdoom.exe -file cvarinfo.txt +test_boolvar 0 -host 2
gzdoom.exe -file cvarinfo.txt -join localhost
However, it is still true for both clients. This is not expected behavior. For every subsequent run with the same command-line parameters, the CVAR will not change its value like it's supposed to.

Tested in GZDoom 3.7.2 and g3.8pre-179-g95679c36b.
Attachments
cvarinfo.txt
(35 Bytes) Downloaded 69 times

Return to “Bugs [GZDoom]”