Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableWindowMode regression after v1.1.6900.22. Fallout Tactics crashes on startup #340

Open
ErikTooming opened this issue Feb 3, 2025 · 6 comments

Comments

@ErikTooming
Copy link

Every version of dxwrapper I tested when setting Dd7to9 = 1 causes Fallout Tactics to display this startup error:

C:\dev\phoenix\display\win32\win32_window.cpp(873): fatal error: Could not create display buffers
Followed by Visual C++ runtime error (abnormal termination)

Using Google search it seems this error isn't exclusive to dxwrapper

But version v1.1.6900.22 and any older version with EnableWindowMode = 1 enabled fixes this error and makes the game ran much better (quicker alt tabbing and much smoother mouse movement)

Unfortunately any version v1.2.7200.25 and newer with EnableWindowMode = 1 causes fatal error

Fallout Tactics dxwrapper v1.2.7500.25 log with Dd7to9 and EnableWindowMode enabled (crashes):
dxwrapper-bos_hr.log

Fallout Tactics dxwrapper v1.1.6900.22 log with Dd7to9 and EnableWindowMode enabled (plays fine):
dxwrapper-bos_hr.log

@elishacloud
Copy link
Owner

Thanks for reporting this. The logs don't have much in them to help, so I am kind of taking a guess at what it might be. Can you check with this build: dxwrapper.zip

Note: if you still see issues with this build try enabling the SetSwapEffectShim option.

Please tell me the results of your testing.

@ErikTooming
Copy link
Author

Unfortunately didn't work. Tried EnableWindowMode with and without SetSwapEffectShim. Still same error. Log with both enabled:
dxwrapper-bos_hr.log

Fallout Tactics forces you to choose 16 or 32 color depth when choosing any resolution. The game can be launched with Dd7to9 if you change the game color depth config {display.bpp} = {32} to {display.bpp} = {0}, but this forces 800x600 windowed mode (without needing EnableWindowMode). When trying to select any resolution with ingame settings it crashes with the same error.

Fallout Tactics supports shortcut commands:
"-w" forces 800x600 windowed mode with {display.bpp} = {0} in config, disables changing resolution ingame, allows using Dd7to9

"-g" supports any resolution windowed mode with colors depth 16 or 32, allows using Dd7to9, but breaks startup videos (other videos work fine) and adds an annoying 2px wide border (not normal windows border) when trying to do borderless using FullScreen = 1

"-gdi" same behavior as "-g"

@elishacloud
Copy link
Owner

Thanks for testing that. -g/-gdi works because it is bypassing Dd7to9 and using GDI rather than DirectDraw.

Can you try this update and see what the results are: dxwrapper.zip

@ErikTooming
Copy link
Author

Tried it. No luck.

dxwrapper-bos_hr.log

@elishacloud
Copy link
Owner

Ok, thanks for your testing! I will need to get the game and debug it to see what is happening.

@ErikTooming
Copy link
Author

Yeah no problem. Fallout Tactics usually sells at 2 bucks when it goes on sale, but no rush. Although I forgot to mention that I use the steam version, GOG might have additional compatibility fixes. Anyway v1.1.6900.22 runs flawlessly at 4k with EnableWindowMode=1 so I am doing a playthrough with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants