GzDoom .BAT launcher parameters

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Alberto
Posts: 10
Joined: Mon Dec 17, 2007 19:54
Contact:

GzDoom .BAT launcher parameters

Post 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.
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post 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.
User avatar
Alberto
Posts: 10
Joined: Mon Dec 17, 2007 19:54
Contact:

Post 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?
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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
User avatar
Alberto
Posts: 10
Joined: Mon Dec 17, 2007 19:54
Contact:

Post 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
Locked

Return to “GZDoom”