cnc-ddraw
cnc-ddraw copied to clipboard
Atrox works incorrectly
Hi,
I am trying to run Atrox with cnc-ddraw, mostly for shaders and windowed mode, (it runs under Win 11 fine otherwise) and it doesn't work properly. First of all, none of the render settings are applied, almost making me think that the dll is not hooked. But a bug appears - ingame map scrolling stops working, thus I am sure that cnc-ddraw does get hooked.
Now when I try to use the debug version to check the logs, the game just refuses to start at all, so I can't have the logs.
The game doesn't use DirectDraw, it uses Direct3D and won't work with cnc-ddraw
Is this really the case? The game doesn't use any direct3d libraries.

The ddraw.dll doesn't have to be in the "Import Directory" to load the ddraw.dll (The game uses ddraw.dll and Direct3D6 - tested) Direct3D 2-7 also uses the ddraw.dll, there is no extra library for Direct3D 2-7.
Direct3D8 (DirectX8) and higher uses own library Direct3D8 (DirectX8) = d3d8.dll Direct3D9 (DirectX9) = d3d9.dll
Direct3D is not supported by cnc-ddraw.
Usually you can tell by the look of the game if it's a 3D game or not, but you can also let cnc-ddraw generate a debug log and search for "IDirect3D" - Link: https://github.com/CnCNet/cnc-ddraw/issues/44
Usually you can tell by the look of the game if it's a 3D game or not, but you can also let cnc-ddraw generate a debug log and search for "IDirect3D" - Link: #44
Neither of these applies for Atrox. I'm still not convinced of the api it uses. How did you guys find it out in case of this weird game?
Usually you can tell by the look of the game if it's a 3D game or not, but you can also let cnc-ddraw generate a debug log and search for "IDirect3D" - Link: #44
Neither of these applies for Atrox. I'm still not convinced of the api it uses. How did you guys find it out in case of this weird game?
I didn't actually test it, I don't know the game either. I trusted LuKe on this one, he's been around for quite some time and knows what he's doing. I can have a look into it though
It's not using Direct3D... There's a invisible child window, cnc-ddraw detected it and disabled the upscaling. Seems to be working fine now, but I haven't done much testing.
Sorry @FunkyFr3sh
Sorry @FunkyFr3sh
No problem! Normally you're always right!
I've done some more testing today with a CD version of the game and it didn't work (it was looking for ddraw.ini on the CD drive...)
Got that fixed now too: cnc-ddraw.zip
CD version exe is packed/protected (That means only the GDI renderer works fully)
Solution: Remove protection or download the abandonware RIP version and take their .exe. Open ddraw.ini and remove "renderer=gdi" "hook=2" on the "[Atrox]" section
RIP version doesn't seem to have any bugs
It does query a Direct3D interface, so LuKe was actually right (It may be related to the movies).
Should work now with the latest proxy-dlls.zip
It's not the biggest deal, but the .mpg cinematics in this game play in a tiny window in the corner of the screen for me. This is what pressing the 'view intro' button in the main menu looks like:
I assume the abandonware rip of this game just doesn't have these.
It's not the biggest deal, but the .mpg cinematics in this game play in a tiny window in the corner of the screen for me. This is what pressing the 'view intro' button in the main menu looks like:
I assume the abandonware rip of this game just doesn't have these.
Yeah I know about it already, I didn't add support for upscaling the cinematics for this game yet
@pas-de-2 Not sure if you still got this game installed, but I may have it fixed now:
Works great, thanks! ^_^
I assume the abandonware rip of this game just doesn't have these.