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!

Setting custom CVARs from cmd-line in netgames not working

Postby Player701 » Tue Jan 29, 2019 9:32 am

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 allExpand view
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 allExpand view
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 allExpand view
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.
(35 Bytes) Downloaded 9 times
User avatar
You are now breathing manually.
Joined: 13 May 2009
Location: Russian Federation
Discord: Player701#8214

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest