Load a whole folder for mods with .pk3 files inside

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
E1ite007
Posts: 4
Joined: Thu Jun 01, 2017 2:51 am

Load a whole folder for mods with .pk3 files inside

Post by E1ite007 »

Howdy. Long time no see.

I'm trying to create a batch file to automatize my GZDoom experience (I don't like a lot of GUIs, I will try to automatize anything I can) and I've faced that I cannot run .pk3 files when trying to load a folder via command line.
Here's what I've tried to do:

Code: Select all

start files/gzdoom -iwad dir/doom2 -file dir/doom_complete_midi.pk3 mods
The files folder is where I keep everything aside from my batch file (soon to be .exe), the dir folder is where I store all my "main" files to make everything run with the minimum stuff (Wadsmoosh'd Doom as a pwad and Doom 2 as an iwad, since for some reason when loading Wadsmoosh as an iwad the launch text defaults to "Doom: Complete: Wadsmoosh" while I've edited in GAMEINFO.txt), and mods is where I would like to just add my mods directly. As a matter of fact, it actually works with wads, but doesn't with .pk3 files; while GZDoom logs that it finds them (shows "adding [insert directories]/mods, 3 lumps"), it doesn't automatically load them.

As an example of what I mean, here's part of the log:

Code: Select all

GZDoom version g4.11.3
W_Init: Init WADfiles.
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/gzdoom.pk3, 672 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/game_support.pk3, 3307 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/dir/doom2.wad, 2919 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/game_widescreen_gfx.pk3, 214 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/dir/doom_complete_midi.pk3, 3341 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/mods, 4 lumps
C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/mods:typhon_v6.wad: V_END marker without corresponding V_START found.
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/mods:typhon_v6.wad, 1229 lumps

Code: Select all

GZDoom version g4.11.3
W_Init: Init WADfiles.
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/gzdoom.pk3, 672 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/game_support.pk3, 3307 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/dir/doom2.wad, 2919 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/game_widescreen_gfx.pk3, 214 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/dir/doom_complete_midi.pk3, 3341 lumps
adding C:/Users/ghrv_/Desktop/DOOM Classic - Complete/files/mods, 2 lumps
Is making a folder that reads .pk3 files automatically possible? Or my only way is to add them to my autoload each time or create shortcuts for each one of those?
___
EDIT: So this is fixed now. Someone on Doomworld pointed me towards adding "mods/*" instead of just "mods" on the batch file. While it didn't work, when added "Path=$PROGDIR/mods/*" to the autoload on the portable gzdoom.ini, it works perfectly as I wanted.

Adding this if someone is in need of some workaround like this to autoload whole folders. Thank you.

Return to “General”