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

Atrox works incorrectly #164

Closed
uzernaem opened this issue Jul 6, 2022 · 15 comments
Closed

Atrox works incorrectly #164

uzernaem opened this issue Jul 6, 2022 · 15 comments

Comments

@uzernaem
Copy link

uzernaem commented Jul 6, 2022

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.

@LuKeSt0rm
Copy link

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

@uzernaem
Copy link
Author

uzernaem commented Jul 6, 2022

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

@LuKeSt0rm
Copy link

LuKeSt0rm commented Jul 6, 2022

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

@FunkyFr3sh
Copy link
Owner

FunkyFr3sh commented Sep 5, 2022

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: #44

@uzernaem
Copy link
Author

uzernaem commented Sep 5, 2022

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?

@FunkyFr3sh
Copy link
Owner

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 FunkyFr3sh reopened this Sep 5, 2022
FunkyFr3sh added a commit that referenced this issue Sep 5, 2022
FunkyFr3sh added a commit that referenced this issue Sep 5, 2022
@FunkyFr3sh
Copy link
Owner

FunkyFr3sh commented Sep 5, 2022

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.

@LuKeSt0rm
Copy link

Sorry @FunkyFr3sh

@FunkyFr3sh
Copy link
Owner

Sorry @FunkyFr3sh

No problem! Normally you're always right!

FunkyFr3sh added a commit that referenced this issue Sep 8, 2022
@FunkyFr3sh
Copy link
Owner

FunkyFr3sh commented Sep 8, 2022

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
Copy link
Owner

FunkyFr3sh commented Oct 20, 2023

Should work now with the latest proxy-dlls.zip

@pas-de-2
Copy link

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.

@FunkyFr3sh
Copy link
Owner

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
Copy link
Owner

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

cnc-ddraw.zip

@pas-de-2
Copy link

pas-de-2 commented Jun 4, 2024

@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! ^_^

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

4 participants