Page 1 of 1

GzDoom .BAT launcher parameters

Posted: Mon Dec 17, 2007 20:10
by Alberto
Hi guys.

At last, the cursed verification mail arrived my mail, after two weeks waiting for. :lol:

Ok, I have a small doubt I was trying to find at the documentation, elsewhere, but i was not able to find.

I have made some MODs and maps, and i usually set the map so GzDoom needs to make use of "Doom Legacy" ligtning mode. At the readme.txt file, i explain to player to configure that, or the map will be weird and darkish.

Also, i usually provide a .BAT (or .SH for Wine Linux users) to allow player launch easily the game, something like "gzdoom.exe -iwad doom2.wad -file mymod.wad textures.wad sprites.wad sound.wad"

And the question is: How can i made to set the lightning mode to "Legacy mode" from de .BAT file? Is that possible?
That would avoid the players to change configuration manually, and the most important, dont forget that.

Thanks for answer.

Posted: Wed Dec 19, 2007 17:39
by wildweasel
A quick sweep on the ZDoom Wiki didn't tell me exactly what command to use, but remember that you can call console commands (most of them) from a BAT file by doing it like this:

Code: Select all

gzdoom.exe -iwad doom2.wad -file mymod.wad +set consolecommand 1
But keep in mind that this will also change the player's settings in-game and won't set them back, so you stand the risk of irritating some players by doing this.

Posted: Wed Dec 19, 2007 21:42
by Alberto
wildweasel wrote:A quick sweep on the ZDoom Wiki didn't tell me exactly what command to use, but remember that you can call console commands (most of them) from a BAT file by doing it like this:

Code: Select all

gzdoom.exe -iwad doom2.wad -file mymod.wad +set consolecommand 1
And what's the command to chage the lightning mode?
wildweasel wrote:But keep in mind that this will also change the player's settings in-game and won't set them back, so you stand the risk of irritating some players by doing this.
Doing that only changes the specified parameter, or overwrites ALL user configuration?

Posted: Thu Dec 20, 2007 21:06
by Nash

Code: Select all

gzdoom.exe -iwad doom2.wad -file mymod.wad +gl_lightmode 4
This will overwrite the user's settings under Doom cvars, so yes it might be annoying to some players.

A better option is to provide a custom INI for your mod.

Code: Select all

gzdoom.exe -iwad doom2.wad -config mymod.ini -file mymod.wad
BTW, it's lighting, not lightning. :P

Posted: Fri Dec 21, 2007 6:16
by Alberto
Nash wrote:

Code: Select all

gzdoom.exe -iwad doom2.wad -file mymod.wad +gl_lightmode 4
This will overwrite the user's settings under Doom cvars, so yes it might be annoying to some players.

A better option is to provide a custom INI for your mod.

Code: Select all

gzdoom.exe -iwad doom2.wad -config mymod.ini -file mymod.wad
BTW, it's lighting, not lightning. :P
Ok, thanks for tip. :D