Sorry for thread necromancy, but I still need one more thing with this topic.
I just tested with commit 0488b18 and all the patterns posted above work just as they should
(apart from "Example na\\\"me", which cuts the `"me` part, but that's pretty minor stuff).
However, I also need to be able to blank a cvar from a command line, which is something that eludes me.
When I start the game with:
Code: Select all
zdoom.exe -iwad doom2.wad +name "example name"
And then use 'name' CCMD I correctly get the game to say `"name" is "example name"`.
If I close the game and start it with this command line:
Code: Select all
zdoom.exe -iwad doom2.wad +name ""
I still get `"name" is "example name"`. I would like to get `"name" is ""` (a blank name).
ZDoom seems to ignore the argument when it's empty, or rather, if you inspect the launch log in the console, it treats an empty argument as an argumentless CCMD and types out `"name" is "example name"` in the launch log.
Would it be possible to have an option to blank cvars from the command line?
Sorry for thread necromancy, but I still need one more thing with this topic.
I just tested with commit 0488b18 and all the patterns posted above work just as they should [i](apart from "Example na\\\"me", which cuts the `"me` part, but that's pretty minor stuff)[/i].
However, I also need to be able to blank a cvar from a command line, which is something that eludes me.
When I start the game with:
[code]zdoom.exe -iwad doom2.wad +name "example name"[/code]
And then use 'name' CCMD I correctly get the game to say `"name" is "example name"`.
If I close the game and start it with this command line:
[code]zdoom.exe -iwad doom2.wad +name ""[/code]
I still get `"name" is "example name"`. I would like to get `"name" is ""` (a blank name).
ZDoom seems to ignore the argument when it's empty, or rather, if you inspect the launch log in the console, it treats an empty argument as an argumentless CCMD and types out `"name" is "example name"` in the launch log.
Would it be possible to have an option to blank cvars from the command line?