Jump to content

Is there a way to run a wad automatically?


Recommended Posts

The closest thing I can think of is making a .bat or .sh file that instantly opens gzdoom with a pwad. Then, just open that file instead of just opening gzdoom

Share this post


Link to post

In the GZDoom config (gzdoom.ini), you can add files to autoload under "Global.Autoload" if you want to load them for every game you play, or under the sections below it like "doom.Autoload" if you only want them loaded for certain games. Quoted from the file:

Quote

# WAD files to always load. These are loaded after the IWAD but before
# any files added with -file. Place each file on its own line, preceded
# by Path=
[Global.Autoload]

 

# Wad files to automatically load depending on the game and IWAD you are
# playing.  You may have have files that are loaded for all similar IWADs
# (the game) and files that are only loaded for particular IWADs. For example,
# any files listed under 'doom.Autoload' will be loaded for any version of Doom,
# but files listed under 'doom.doom2.Autoload' will only load when you are
# playing a Doom 2 based game (doom2.wad, tnt.wad or plutonia.wad), and files li
sted under
# 'doom.doom2.commercial.Autoload' only when playing doom2.wad.


[doom.Autoload]

 

[doom.id.Autoload]

 

[doom.id.doom2.Autoload]

...

 

Share this post


Link to post
4 minutes ago, Shepardus said:

In the GZDoom config (gzdoom.ini), you can add files to autoload under "Global.Autoload" if you want to load them for every game you play, or under the sections below it like "doom.Autoload" if you only want them loaded for certain games. Quoted from the file:

 

I simply want to open gzdoom and when I open it, the typical menu to select the game appears (doom 2, doom 1, etc) and when I select doom 2, it should already be executed with the wad incorporated. that I don't have to drag the wad to gzdoom

Share this post


Link to post
3 minutes ago, BipperCold said:

I simply want to open gzdoom and when I open it, the typical menu to select the game appears (doom 2, doom 1, etc) and when I select doom 2, it should already be executed with the wad incorporated. that I don't have to drag the wad to gzdoom

That's what I just answered.

Share this post


Link to post
19 minutes ago, BUYXRAYS said:

The closest thing I can think of is making a .bat or .sh file that instantly opens gzdoom with a pwad. Then, just open that file instead of just opening gzdoom

I mean, yeah, that'll probably work if people add that with the .WAD (news flash: they won't lol!) so you'll most likely have to code it yourself.

Share this post


Link to post
22 minutes ago, BipperCold said:

I simply want to open gzdoom and when I open it, the typical menu to select the game appears (doom 2, doom 1, etc) and when I select doom 2, it should already be executed with the wad incorporated. that I don't have to drag the wad to gzdoom

 

What you really want is a Launcher utility. These will let you choose whichever wad(s) to launch from a list. You can even save load orders and such to really customize your experience and make getting into the game simple. If you're dragging .wads onto GZDoom that tells me you don't have a Launcher set up; having this will make your life much simpler.

 

I personally use Doom Launcher:

 

It's kind of ridiculous that this feature isn't built into source ports (Odamex is getting a basic version of this) but it is what it is.

Edited by indigotyrian

Share this post


Link to post

this only works on windows btw so 

right click on literally any wad file then press open with
then click choose another app
then this should pop up 
image.png.1b270845a88c9555bd91339b371169ac.png
click on gzdoom and check the always use this app to open .wad files and then all the wad files u have should have a gzdoom icon on them then if u did it right when u click on a wad the wad selector screen should pop up (it wont if the wad ur playing has a special gameinfo thing that does it itself )

i hope this answered ur question

Edited by Shakariki Heisenberg

Share this post


Link to post

gzdoom -iwad path-to-your/doom2.wad -file path-to-your/own_pwad.wad

 

save the above line with your own paths and files substituted for the

italicized text as whatever.bat

Place your whatever.bat file in whatever version of Windows you're using's

path, (maybe c:\windows ?) Now you can type "whatever" at any command

prompt and it'll start your wad. If you need desktop shortcut, right-click drag

the icon from wherever you put whatever.bat to your desktop, release button,

then select "create shortcut here" from the context sensitive menu that

comes up. Anytime you want to startup your wad, double-click the desktop

icon you just created.

 

Share this post


Link to post
1 hour ago, Shakariki Heisenberg said:

this only works on windows btw so 

right click on literally any wad file then press open with
then click choose another app
then this should pop up 
image.png.1b270845a88c9555bd91339b371169ac.png
click on gzdoom and check the always use this app to open .wad files and then all the wad files u have should have a gzdoom icon on them then if u did it right when u click on a wad the wad selector screen should pop up (it wont if the wad ur playing has a special gameinfo thing that does it itself )

i hope this answered ur question

I was only doing that with Doom Builder but now i'm switching it over to GZDoom

Share this post


Link to post
3 hours ago, BipperCold said:

What I mean is, when running GZDOOM, play a wad, without having to drag a wad to GZDOOM to open it.

 

 

 

Do you mean you want to run a specific pWAD every time you run GZDoom? If so, that implies a batch file/launcher PER pWAD. That can get very cluttered very fast if you have more than a few PWADs.

 

I have always found it pretty straightforward to set up a few GZDoom shortcuts (or launchers, on Linux) on my desktop that call different gzdoom.ini configs automatically to load a gameplay mod (Brutal, PB, Beautiful Doom or whatever) and will also load the pWAD you drag/drop onto it.

 

For example, my shortcut for brutal Doom GZDoom is as follows:

Target: C:\Games\Doom\GZD\gzdoom.exe -config gzdoom-brutal.ini -file
Start In: c:\Games\Doom\GZD

 

And the referred-to ini file (only showing modified entries):

...
[IWADSearch.Directories]
Path=d:\Games\Doom\IWADs
...
[Global.Autoload]
Path=c:\Games\Doom\BD\brutalv21.pk3
...

Note the format of the command line call. For reference, please see https://zdoom.org/wiki/Command_line_parameters

 

 

 

 

Share this post


Link to post
  • 7 months later...
On 6/20/2023 at 4:56 AM, BipperCold said:

What I mean is, when running GZDOOM, play a wad, without having to drag a wad to GZDOOM to open it.

 

 

 

Create a Shortcut to GZDoom.exe

Right click the shortcut & go to Properties

 

On the Shortcut tab navigate to the "Target" field, it should say something like;

 

"C:\gzdoom.exe"

 

add -file "NAMEOFWADTOPLAY.WAD"

 

The target field should now look like:

 

"C:\gzdoom.exe" -file "NAMEOFWADTOPLAY.WAD"

 

Click ok & rename the shortcut if you want.

 

Open the shortcut to load directly into your chosen .WAD

 

(you may need to set the GZDoom menu to stay hidden)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...