dosbox-staging / dosbox-staging

DOSBox Staging is a modern continuation of DOSBox with advanced features and current development practices.
https://www.dosbox-staging.org/
Other
1.31k stars 156 forks source link

Dosbox-staging crashes with Ultimate Doom (UDoom32) #2523

Closed Ripthorn closed 1 year ago

Ripthorn commented 1 year ago

Are you using the latest Dosbox-Staging Version?

Different version than latest?

0.81.0-alpha-770-g4f4b3ff7f

What Operating System are you using?

Windows 11

If Other OS, please describe

No response

Relevant hardware info

Core i9 10850K, RTX 3080 Ti, 32GB

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

I'm trying to use UDoom32 because I plan to use custom wads and mods. Is the only way for Ultimate Doom with vanilla engine. https://doomwiki.org/wiki/UDoom32 https://www.doomworld.com/forum/topic/132915/ As soon as I try to save the progress the game crashes and shows the message below with GUS enabled

image

With Sound Blaster enabled, shows a different message: image (1)

Same problem (maybe?) with DosBox-X: Captura de tela 2023-05-23 194941

Same thing with DOSBox 0.74-3, but it did not generate any error message. DOSBox-Staging 0.80.1 has the same behavior as the alpha version. None of that happens with the original .exe

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Run the hacked .exe
  2. Select any episode
  3. Try to save the progress

Download URL of affected game or software

https://archive.org/download/doom-full-collection/Ultimate.iso

Your configuration

https://gist.github.com/Ripthorn/17041d6f22f3dab8ad4189a8875d6b55

Provide a Log

No response

Code of Conduct & Contributing Guidelines

kcgen commented 1 year ago

For udoom.exe, use GUS or SB16; not both at the same time.

SB16-only

  1. Ensure GUS is off before launching udoom:
    • [gus] gus = off, or
    • manually type gus off at the Z:> or C:> prompt.
  2. SETUP.EXE w/ "SoundBlaster" at 220, IRQ 7, DMA 1

GUS-only

  1. Ensure SoundBlaster is off before launching udoom:
    • [sblaster] sbtype = none, or
    • manually type sbtype none at the Z:> or C:> prompt.
  2. SETUP.EXE w/ "Gravis UltraSound" at 240, IRQ 5, DMA 3
kcgen commented 1 year ago

Given the original game tolerates having both SB and GUS devices simultaneously (even when saving), my hunch is that udoom.exe will also crash on a real DOS PC that has both an SB16 on 220/I7/D1 and GUS on 240/I5/D3.

Such a configuration is likely rare, but if someone out there has one, feel free to report back!

Ripthorn commented 1 year ago

For udoom.exe, use GUS or SB16; not both at the same time.

SB16-only

  1. Ensure GUS is off before launching udoom:

    • [gus] gus = off, or
    • manually type gus off at the Z:> or C:> prompt.
  2. SETUP.EXE w/ "SoundBlaster" at 220, IRQ 7, DMA 1

GUS-only

  1. Ensure SoundBlaster is off before launching udoom:

    • [sblaster] sbtype = none, or
    • manually type sbtype none at the Z:> or C:> prompt.
  2. SETUP.EXE w/ "Gravis UltraSound" at 240, IRQ 5, DMA 3

I forgot to mention, but when I tested it with sound blaster, I had gus turned off in the config file and still crashes with the same error message. I tried with the gus off command you mentioned on dosbox command prompt and nope, same thing.

kcgen commented 1 year ago

Try these settings:

2023-05-23_19-26

udoom32 is a limit-removing hack, so let's make sure it has as much memory as possible.

Ripthorn commented 1 year ago

Yep, this really solves the issue, the weird part is it only crashes when you try to save. Thanks to find the solution 😂