Anonymous | Login | Signup for a new account | 2024-03-29 10:19 UTC |
My View | View Issues | Change Log | Roadmap | All Projects Issue Support Ranking | Rules | My Account |
View Revisions: Issue #2482 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0002482: How can I blank a CVAR from command line? | ||
Revision | 2015-10-07 13:48 by Zalewa | ||
Description | Fix for a command-line problem that was reported and fixed in ZDoom has created a new problem with command-line parsing. This is the report: 'http://forum.zdoom.org/viewtopic.php?f=7&t=33763 [^]' Right now I have no idea how to blank a CVAR from command line. For example, I want to have a blank MOTD. In Zandronum 2.1 and earlier the following worked:
This weird syntax actually did what I expected. However, in Zandronum 3.0 it will set MOTD to double double-quotes: "". The following:
also doesn't work. Instead of blanking the variable, the game will load the one that is stored in the config file. If we used MOTD such as "Alice has a cat" in a previous run, with +sv_motd "" the MOTD will still be "Alice has a cat". I have also discovered that Zandronum will interpret \0 escape sequence as the end of the string:
This seemed to work nicely until I discovered that it produces odd behavior when sv_motd is queried in the server console, and at least in builds prior 2015-10-04 it caused clients to print empty MOTD to console and would randomly crash the game. |
||
Revision | 2015-10-07 13:47 by Zalewa | ||
Description | Fix for a command-line problem that was reported and fixed in ZDoom has created a new problem with command-line parsing. This is the report: 'http://forum.zdoom.org/viewtopic.php?f=7&t=33763 [^]' Right now I have no idea how to blank a CVAR from command line. For example, I want to have a blank MOTD. In Zandronum 2.1 and earlier the following worked:
This weird syntax actually did what I expected. However, in Zandronum 3.0 it will set MOTD to double double-quotes: "". The following:
also doesn't work. Instead of blanking the variable, the game will load the one that is stored in the config file. If we used MOTD such as "Alice has a cat" in a previous run, with +sv_motd "" the MOTD would still be "Alice has a cat". I have also discovered that Zandronum will interpret \0 escape sequence as the end of the string:
This has worked nicely until I discovered that it produces odd behavior when sv_motd is executed in the server console, and at least in builds prior 2015-10-04 it caused clients to print empty MOTD to console and would randomly crash the game. |
||
Revision | 2015-10-07 13:45 by Zalewa | ||
Description | Fix for a command-line problem that was reported and fixed in ZDoom has created a new problem with command-line parsing. This is the report: 'http://forum.zdoom.org/viewtopic.php?f=7&t=33763 [^]' Right now I have no idea how to blank a CVAR from command line. For example, I want to have a blank MOTD. In Zandronum 2.1 and earlier the following worked:
This weird syntax actually did what I expected. However, in Zandronum 3.0 it will set MOTD to double double-quotes: "". The following:
also doesn't work. Instead of blanking the variable, the game will load the one that is stored in the config file. If we used MOTD such as "Alice has a cat", with +sv_motd "" the MOTD would still be "Alice has a cat". I have also discovered that Zandronum will interpret \0 escape sequence as the end of the string:
This has worked nicely until I discovered that it produces odd behavior when sv_motd is executed in the server console, and at least in builds prior 2015-10-04 it caused clients to print empty MOTD to console and would randomly crash the game. |
Copyright © 2000 - 2024 MantisBT Team |