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

Win11 22h2 Yuri's Revenge unable to load saved mission #174

Closed
betaxab opened this issue Sep 25, 2022 · 9 comments
Closed

Win11 22h2 Yuri's Revenge unable to load saved mission #174

betaxab opened this issue Sep 25, 2022 · 9 comments

Comments

@betaxab
Copy link

betaxab commented Sep 25, 2022

Hi,

I recently updated windows to win11 22h2 (22621.521), There was a problem loading the saved mission, The game automatically kills the process when clicking on a saved mission.

cnc-ddraw version: 4.5.0.0

#44 ddraw log:
cnc-ddraw.log

Loading saved missions are only available from a new game that has been opened, it's very strange.

thanks.

@FunkyFr3sh
Copy link
Owner

I don't think this crash is related to cnc-ddraw. Can you try it without cnc-ddraw?

@betaxab
Copy link
Author

betaxab commented Sep 25, 2022

I used version 1.3.5.0 1 hour ago and it worked! I found it from Mental Omega, and after comparing it, it is no different from release https://github.com/CnCNet/cnc-ddraw/tree/1.3.5.0

@FunkyFr3sh
Copy link
Owner

I used version 1.3.5.0 1 hour ago and it worked! I found it from Mental Omega, and after comparing it, it is no different from release https://github.com/CnCNet/cnc-ddraw/tree/1.3.5.0

Nice, thanks! Now I noticed something weird in your log, it calls "IDirectDraw__SetDisplayMode" but never returns. Something is messing up the stack.

Can you share your savegame with me?

@FunkyFr3sh
Copy link
Owner

Also, can you generate a new log with his build here?

ddraw.zip

@betaxab
Copy link
Author

betaxab commented Sep 27, 2022

cnc-ddraw.log

When clicking into a saved game, it will exit full screen and then says loading... it‘s only displayed in the upper left corner, doesn't load missions correctly.
And then press alt+tab, the game will exit by itself. I can't capture this page, Win+G only captures the black screen.

@FunkyFr3sh
Copy link
Owner

FunkyFr3sh commented Sep 27, 2022

cnc-ddraw.log

When clicking into a saved game, it will exit full screen and then says loading... it‘s only displayed in the upper left corner, doesn't load missions correctly. And then press alt+tab, the game will exit by itself. I can't capture this page, Win+G only captures the black screen.

It seems to fail right after direct3d9 is changing the resolution.

Can you send me some logs with the following settings:

renderer=opengl

Then another log with this (If you have an old ddraw.ini then these settings might not exist, just delete ddraw.ini and start the game once to generate a new one)

d3d9on12=true

And if you also have a nvidia/amd graphics card, then please one more log with this:

d3d9_adapter=1
d3d9on12=false
renderer=direct3d9

@betaxab
Copy link
Author

betaxab commented Sep 28, 2022

I have deleted ddraw.ini to let it to regenerate.

and modified renderer=auto to opengl then start game, then load saved game:

cnc-ddraw-renderer_opengl.log

Modified renderer=opengl, and d3d9on12=true:

cnc-ddraw-renderer_opengl-d3d9on12_true.log

My computer only has a core graphics card(UHD Graphics 630).

@FunkyFr3sh
Copy link
Owner

Cool, thanks! This is probably a bug microsoft has to fix, but i will try it anyways.

Here is a test build with some changes:
ddraw.zip

@betaxab
Copy link
Author

betaxab commented Sep 30, 2022

@FunkyFr3sh Thank you for your hard work! It worked!

@betaxab betaxab closed this as completed Sep 30, 2022
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

2 participants