FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.12k stars 143 forks source link

Nancy Drew: Last Train to Blue Moon Canyon CRASHES on launch with SetSurfaceDesc() error #309

Closed indianajson closed 1 month ago

indianajson commented 1 month ago

Nancy Drew: Last Train to Blue Moon Canyon (2005) crashes immediately upon launch with the following error message:

InitDirectDraw(), backBuffer SetSurfaceDesc() - 
DDERR_UNSUPPORTED - Action not supported.

This issue is similar to #172 resolved in 2022; however, that patch for earlier Nancy Drew games does not work for this game. Oddly, most of the other games from the series work, this game is one of the exceptions.

I tried running the game with current version of cnc-ddraw and the version right after the fix for #172 was published, but neither worked.

Here is the log file it generated: cnc-ddraw-1.log

FunkyFr3sh commented 1 month ago

Have not tested it, but I think this one here might work: https://github.com/FunkyFr3sh/cnc-ddraw/actions/runs/9056680638/artifacts/1495635988

indianajson commented 1 month ago

So, odd result... the game doesn't spit back the SetSurfaceDesc() error, but still crashes on launch.

FunkyFr3sh commented 1 month ago

Oh, may need a new debug log then:

https://github.com/FunkyFr3sh/cnc-ddraw/actions/runs/9056716766/artifacts/1495641945

indianajson commented 1 month ago

Here we go: cnc-ddraw-1.log

FunkyFr3sh commented 1 month ago

Yeah I can see the problem, but not sure yet what it's about. Maybe need 1-2 more logs if you don't mind

ddraw.zip

indianajson commented 1 month ago

No problem: cnc-ddraw-1.log

FunkyFr3sh commented 1 month ago

ddraw.zip

indianajson commented 1 month ago

I opened this issue 33 minutes ago... and you've already responded multiple times... and fixed the issue...

You are the best maintainer on GitHub, that's the bottom line!

I ran the game through the first few minutes in Windowed mode and it's running flawlessly.

One minor issue/question: In full screen mode the cursor runs to the bottom right and won't let me move it. Am I correct in assuming that's a game bug not a cnc-ddraw bug?

FunkyFr3sh commented 1 month ago

Yeah, I was just here and made a new release, you came at the right moment 😃

I don't really know if this is a bug in the game or cnc-ddraw, I may have to get the game somewhere to debug this one (probably impossible to do with just a log file)

Does it work in borderless mode maybe? Or only in windowed? What if you maximize the window with [Alt] + [Page Down], is it still working?

Here is the release build BTW: https://github.com/FunkyFr3sh/cnc-ddraw/actions/runs/9056919748/artifacts/1495680169

indianajson commented 1 month ago

You beat me to the punch! I just tried borderless mode with fixed aspect ratio and its working flawlessly.

Thank you so much for your insanely speedy help on this. Have a great night/day!