dxwrapper icon indicating copy to clipboard operation
dxwrapper copied to clipboard

Forsaken (1998) crashes with errors when Dd7to9, ConvertToDirectDraw7, or ConvertToDirect3D7 are enabled

Open sr1gh opened this issue 11 months ago • 12 comments

The game Forsaken released in 1998 works on Windows XP and older. It works on windows 7 and newer with nVidia graphics cards only, the game crashes with an error with AMD and Intel cards. On Windows 10, the game does not display in fullscreen correctly, but can be fixed using dxwrapper by setting "Fullscreen = 1" or using DDrawCompat=1 and DDrawCompat32=1. On nVidia cards, some textures have small sections which are transparent but should not be, and the edges of some projectile and HUD textures are missing when bilinear filtering is enabled. The game seems to work on AMD cards with DDrawCompat=1 and DDrawCompat32=1, but some transparent textures are black. However the game does not work on when Dd7to9, ConvertToDirectDraw7, or ConvertToDirect3D7 are enabled. The game has the following errors:

nVidia/AMD Graphics ConvertToDirectDraw7 = 1 Error: Create D3D device failed. One or more of the parameters passed to the function are incorrect.

nVidia/AMD Graphics ConvertToDirect3D7 = 1 Error: Creation of IDirect3D failed. Unrecognized error value.

nVidia/AMD Graphics EnableDdrawWrapper = 1 Error: Creation of IDirect3D failed. Unrecognized error value.

nVidia/AMD Graphics Dd7to9 = 1 Error: SetMatrixViewPort() Failed InitView failed.

AMD Graphics No DDrawCompat Error: CreateSurface for Z-buffer failed. Action not supported.

sr1gh avatar Jan 20 '25 23:01 sr1gh

Can you upload the log file with Dd7to9 enabled?

Here is the latest build: dxwrapper.zip

elishacloud avatar Jan 20 '25 23:01 elishacloud

Here is the log with Dd7to9 enabled.

dxwrapper-forsakenhw.log

sr1gh avatar Jan 20 '25 23:01 sr1gh

Please try with the latest build I posted above.

elishacloud avatar Jan 20 '25 23:01 elishacloud

Sorry, here is the log with the build posted above.

dxwrapper-forsakenhw.log

sr1gh avatar Jan 20 '25 23:01 sr1gh

I don't see any issues in the log file with this latest build. What issue are you seeing in this latest build?

elishacloud avatar Jan 20 '25 23:01 elishacloud

I get a small message window with the following error: SetMatrixViewPort() Failed

When I press OK, I get another error: InitView failed.

Then when I press OK, the game closes.

sr1gh avatar Jan 20 '25 23:01 sr1gh

Ok, can you give me the log from this debug build? It may help me to see what is happening. Here is the build: dxwrapper.zip

elishacloud avatar Jan 21 '25 00:01 elishacloud

Here is the log from the debug build.

dxwrapper-forsakenhw.log

sr1gh avatar Jan 21 '25 01:01 sr1gh

It looks like one of the last calls was to Lock and ExecuteBuffer. I found some issues and put some safety buffer in for that call. Can you try with this build and see if it helps: dxwrapper.zip

elishacloud avatar Aug 30 '25 23:08 elishacloud

The game starts now, but the 3D environment is not visible. Only the text is visible. There are also some issues with text not being removed when is should be.

With dxwrapper on Windows 11, i5-11600K Intel Graphics:

Image

Image

Image

Image

25 year old computer with Windows XP:

Image

Image

Image

Image

sr1gh avatar Sep 02 '25 00:09 sr1gh

Can you check the latest build of dxwrapper and see if this issue is resolved: dxwrapper.zip

elishacloud avatar Oct 30 '25 23:10 elishacloud

No, it still looks the same with Dd7to9 = 1.

It does work with DDrawCompat = 1 on AMD and Intel graphics on Windows 10/11. The DDrawCompat20, DDrawCompat21, DDrawCompat32 and DDrawCompatDisableGDIHook settings depend on the system.

nVidia graphics on Windows 10/11 only require FullScreen = 1.

The game is slow and has text rendering issues on Windows 10/11 if the bit depth is set to 16-Bit. The game can have issues starting if the monitor resolution is high and there are too many resolution modes available.

There are some minor graphical issues which vary depending on the GPU type, driver version, and the game's graphics settings. These minor issues are also present on my Windows XP system unless I use the original nVidia Riva TNT. The game has no issues on the original nVidia Riva TNT.

sr1gh avatar Oct 31 '25 18:10 sr1gh