cnc-ddraw icon indicating copy to clipboard operation
cnc-ddraw copied to clipboard

Atrox works incorrectly

Open uzernaem opened this issue 3 years ago • 10 comments

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.

uzernaem avatar Jul 06 '22 12:07 uzernaem

The game doesn't use DirectDraw, it uses Direct3D and won't work with cnc-ddraw

LuKeSt0rm avatar Jul 06 '22 15:07 LuKeSt0rm

Is this really the case? The game doesn't use any direct3d libraries. atrox

uzernaem avatar Jul 06 '22 16:07 uzernaem

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

LuKeSt0rm avatar Jul 06 '22 17:07 LuKeSt0rm

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

FunkyFr3sh avatar Sep 05 '22 01:09 FunkyFr3sh

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?

uzernaem avatar Sep 05 '22 05:09 uzernaem

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

FunkyFr3sh avatar Sep 05 '22 05:09 FunkyFr3sh

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.

FunkyFr3sh avatar Sep 05 '22 07:09 FunkyFr3sh

Sorry @FunkyFr3sh

LuKeSt0rm avatar Sep 05 '22 09:09 LuKeSt0rm

Sorry @FunkyFr3sh

No problem! Normally you're always right!

FunkyFr3sh avatar Sep 06 '22 05:09 FunkyFr3sh

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).

FunkyFr3sh avatar Sep 08 '22 02:09 FunkyFr3sh

Should work now with the latest proxy-dlls.zip

FunkyFr3sh avatar Oct 20 '23 10:10 FunkyFr3sh

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: atrox I assume the abandonware rip of this game just doesn't have these.

pas-de-2 avatar Jan 17 '24 01:01 pas-de-2

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: atrox 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

FunkyFr3sh avatar Jan 17 '24 01:01 FunkyFr3sh

@pas-de-2 Not sure if you still got this game installed, but I may have it fixed now:

cnc-ddraw.zip

FunkyFr3sh avatar Jun 04 '24 19:06 FunkyFr3sh

@pas-de-2 Not sure if you still got this game installed, but I may have it fixed now:

cnc-ddraw.zip

Works great, thanks! ^_^

pas-de-2 avatar Jun 04 '24 20:06 pas-de-2