commandline problem with pwads

edited 2012 Mar 18 in Technical Support
1.9.7 built 439 (win32)
There's a kind of problem when using the commandline to run Doomsday.
The iwad confirmation process seems to skip pwads.

- - - - - -
If you have only doom2.wad in the iwad directory It works great to run Doomsday with a commandline such as:

doomsday.exe -iwad doom2.wad -file pwad2.wad
Doomsday finds only one iwad and you can start playing the pwad.

- - - - - -
But if you have only doom.wad in the directory and you run Doomsday:

doomsday.exe -iwad doom.wad -file pwad.wad

You'll get a console message:
> ! Chex
> ! Doom2
> Doom1
> ! Doom1-share
> ! Doom-2-plut
> ! Doom2-tnt
> ! Hacx
> Doom1-ultimate
> 2 of 8 games playable
> Use the 'load' command to load a game. For example "load gamename"

After selecting "load Doom1" or "load Doom1-ultimate" Doomsday starts from the iwad's own maps ignoring the commandline's pwad.

- - - - - -
If there are both doom2.wad and doom.wad in the same directory and you run Doomsday with a commandline:

doomsday.exe -iwad doom2.wad -file pwad2.wad

You'll get the iwad selection list after which Doomsday forgets to run the pwad on the commandline.

So essentially: would it be possible to make Doomsday not to ignore the pwad after the iwad confirmation query?

Secondly, would it be possible to streamline the process so that the iwad could be recognized automaticly from it's contents? -iwad doom2.wad means doom2 iwad?

Comments

  • It sounds to me like the -iwad path you are supplying Doomsday is incorrect however the engine is still locating your iwads automatically. In the case where only one iwad is found it will be chosen implicitly. If there are multiple iwads available and it could not determine from the command line which one you wanted to play it will then start in "ringzero" mode, providing you with a list of the available iwads and prompting you to load one.

    If the supplied command line arguments were not interpreted into a valid game session (e.g., a suitable iwad could not be determined/found) you will then need to define the session again. In this instance where the iwad could not be determined you will have to specify the pwad to load as well as the iwad (both -iwad and -file are arguments which define the game session).
  • DaniJ wrote:
    It sounds to me like the -iwad path you are supplying Doomsday is incorrect however the engine is still locating your iwads automatically.

    No. I tested this in (Vista 32bit) by making three temp folders:
    G:\tmp1 containing doom.wad
    G:\tmp2 containing doom.wad and doom2.wad
    G:\tmp3 containing doom2.wad

    Now this commandline:
    G:\n\deng-1.9.7\bin\Doomsday.exe -iwad g:\tmp1\doom.wad

    gives me to the console:
    > ! Doom2
    > Doom1
    > ! Doom1-share
    > ! Doom-2-plut
    > ! Doom2-tnt
    > ! Hacx
    > Doom1-ultimate
    > 2 of 8 games playable
    > Use the 'load' command to load a game. For example "load gamename"

    And this commandline:
    G:\n\deng-1.9.7\bin\Doomsday.exe -iwad "g:\tmp2\doom2.wad"

    gives the list:
    > ! Chex
    > Doom2
    > Doom1
    > ! Doom1-share
    > ! Doom-2-plut
    > ! Doom2-tnt
    > ! Hacx
    > Doom1-ultimate
    > 3 of 8 games playable

    And both these commandlines
    G:\n\deng-1.9.7\bin\Doomsday.exe -iwad g:\tmp3\doom.wad
    G:\n\deng-1.9.7\bin\Doomsday.exe -iwad g:\tmp3\doom2.wad
    start Doom2 right away.

    But if Doomsday gets an iwad folder where there are no iwads, such as:
    G:\n\deng-1.9.7\bin\Doomsday.exe -iwad g:\tmp0_this_folder_is_not_in_here\doom2.wad

    I'll get the console list:
    > ! Chex
    > ! Doom2
    > ! Doom1
    > ! Doom1-share
    > ! Doom-2-plut
    > ! Doom2-tnt
    > ! Hacx
    > ! Doom1-ultimate
    > 0 of 8 games playable
    > Use the 'load' command to load a game. For example "load gamename"

    But I also noticed that by adding -game doom1-ultimate or -game doom2 selector to the commandline makes Doomsday start great. (They were not mandatory previously.)
Sign In or Register to comment.