elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.23k stars 90 forks source link

Codename - Outbreak #226

Open rickomax opened 1 year ago

rickomax commented 1 year ago

image Codename - Outbreak textures are recognizing black color as transparent when it shouldn't.

elishacloud commented 1 year ago

I don't have the ability to test this game right now. However, last time I tested this game it required CreateExecuteBuffer, which I have not implemented yet. Can you attach your log file for this?

rickomax commented 1 year ago

Sure!

11084 22:50:10.787 Starting DxWrapper v1.0.6542.21
11084 22:50:10.787 Running from: E:\GOG Games\Codename - Outbreak\dxwrapper.dll
11084 22:50:10.787 Reading config file: E:\GOG Games\Codename - Outbreak\dxwrapper.ini
11084 22:50:10.788 Gigabyte Technology Co., Ltd. A520M DS3H Default string (Desktop)
11084 22:50:10.788 Gigabyte Technology Co., Ltd. A520M DS3H x.x (Desktop)
11084 22:50:10.788 NVIDIA GeForce GTX 1060 6GB
11084 22:50:10.788 Windows 10 Enterprise 64-bit (10.0.19041)
11084 22:50:10.788 "OutBreak.exe" (PID:13788)
11084 22:50:10.792 Environment variable __COMPAT_LAYER = "DisableThemes HighDpiAware"
11084 22:50:10.793 Disabling High DPI Scaling...
11084 22:50:10.793 Loaded library: user32.dll
11084 22:50:10.793 Loaded library: shcore.dll
11084 22:50:10.793 DxWrapper loaded!
11084 22:50:37.024 Quiting DxWrapper
11084 22:50:37.024 Unloading libraries...
11084 22:50:37.024 Reseting screen resolution
11084 22:50:37.033 Reseting font smoothing
11084 22:50:37.035 DxWrapper terminated!
rickomax commented 1 year ago

After getting some info about the original engine, looks like it uses DDRAW 5. Trying to use dxHwnd to run it, opens the menu screen, then produces a crash:

eddmanx commented 1 year ago

It's a D3D7 game, not just DDraw. dxwrapper doesn't yet properly support D3D2-7. You have to use a different wrapper like dgvoodoo2.

elishacloud commented 1 year ago

Trying to use dxHwnd to run it, opens the menu screen, then produces a crash:

DxWnd is a different tool. You may want to ask the author of that tool. I hope to have support for this game at some point, but I don't at this time.

Mitradis commented 1 year ago

this game use D3DImm.dll and DDraw.dll for wrapped. This files need in case with dgVoodoo.

elishacloud commented 1 year ago

dxwrapper includes functions for both D3DImm.dll and DDraw.dll. However, there is still limited support for 3D games. This one is not yet supported with the dd7to9 function yet.

Mitradis commented 8 months ago

need restore this in game config after config close. TextureFormat1=32 0 0 0 64 0 0 0 0 0 0 0 16 0 0 0 0 248 0 0 224 7 0 0 31 0 0 0 0 0 0 0
TextureFormat2=32 0 0 0 65 0 0 0 0 0 0 0 32 0 0 0 0 0 255 0 0 255 0 0 255 0 0 0 0 0 0 255 this is default values for this parameters. Config.exe drop this values to zero all.

elishacloud commented 8 months ago

Yes, I have seen this type of issue with other games, where the config gets messed up. I am not sure if it is caused by something in dxwrapper or a difference in how a newer OS responds to the API calls the older game makes. I suspect the latter.

elishacloud commented 5 days ago

Can you try with the latest release build and send me the log files if it does not work?