GZDoom Batch Script Generator Code
Command-line GZDoom Windows batch script generator
Brought to you by:
i2van
File | Date | Author | Commit |
---|---|---|---|
dbsg-config.bat | 2023-05-15 | Ivan Ivon | [ce3f98] [+] Prepend save dir. |
dbsg.bat | 2023-05-15 | Ivan Ivon | [ce3f98] [+] Prepend save dir. |
readme.md | 2023-05-15 | Ivan Ivon | [ce3f98] [+] Prepend save dir. |
Command-line GZDoom Windows batch script generator.
Generates editable dbsg-<game>.bat
where <game>
is a game file.
Generated script can accept user parameters.
-w
switch performs Wad Archive game search.-g
switch Googles game.-c
switch opens GZDoom command line parameters help.Copy script and game files to GZDoom dir first.
dbsg.bat [-w] game [config.bat]
Parameter | Description | Default |
---|---|---|
-w |
game is standalone, e.g. doom2.wad, etc. | |
game |
any supported game (wad, pk3, zip, etc.) | |
config.bat |
user batch config | dbsg-config.bat |
User batch config is executed first. The following variables are supported:
Variable | Description | Default |
---|---|---|
doom |
GZDoom executable | gzdoom.exe |
doomConfig |
GZDoom user configuration | gzdoom-%USERNAME%.ini |
wad |
main wad | doom2.wad |
mods |
mods (wad, pk3, zip, etc.) | |
deh |
DEH patch | |
bex |
BEX patch | |
prependSavedir | prepend saves dir to save | |
savedir |
savegames subdir | saves |
shortdir |
screenshots dir | screenshots |
params |
any parameters | |
loadLast |
load last save if set | |
saveExt |
save extension | zds |
scriptPrefix |
generated script prefix. "" for no prefix |
%%scriptName%%- |
updateLaunch |
update last script launch time if set | set in config |
Edit generated script if you have any additional files.
dbsg.bat dead-air_v2.pk3
dbsg.bat dead-air_v2.pk3 dbsg-my-config.bat
-w
flag for standalone game:dbsg.bat -w square1.pk3
Run script to launch the game. Any GZDoom parameters are accepted as script parameters if no script specific switches are specified.
Switches are mutually exclusive, only one at a time:
Switch | Description |
---|---|
-w |
Wad Archive game search |
-g |
Google game search |
-c |
open GZDoom command line parameters help |
Names with spaces, percent and culture-specific characters may not be handled properly.