FunkyFr3sh / cnc-ddraw

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

Diablo2 Mouse Jump BUG #41

Closed MxCen closed 4 years ago

MxCen commented 4 years ago

1、Press keyboard “C” in the game, the mouse will jump to the upper left corner;

2、Press keyboard “L” in the game, the mouse will jump to the upper left corner;

MxCen commented 4 years ago

windowed=true

FunkyFr3sh commented 4 years ago

Found the problem... For now you can set "renderer=gdi" and "hook=2" in ddraw.ini and the problem should be fixed. I will make it working with OpenGL and Direct3D9 too soon

FunkyFr3sh commented 4 years ago

Seems to be working now, you must set "hook=3" with this new build

ddraw.zip

MxCen commented 4 years ago

set "renderer=gdi" and "hook=2",working ! set "renderer=auto" and "hook=2",working !

hook=3,Unable to start the game, maybe I used an HD patch.

Thank you.

FunkyFr3sh commented 4 years ago

Did you download the new ddraw.zip i linked? Because with the old one hook=3 will not work

MxCen commented 4 years ago

Yes, I downloaded the latest DLL file you compiled here:

https://github.com/CnCNet/cnc-ddraw/files/5249561/ddraw.zip

FunkyFr3sh commented 4 years ago

Good, then it must be something different that is causing the problem... I just noticed you have some chinese words in your profile, is your windows in chinese?

Can you try if this new ddraw.dll works for you with "hook=3" :

ddraw.zip

MxCen commented 4 years ago

TISK

FunkyFr3sh commented 4 years ago

Cool, Thanks for testing! 4 is the best, I tested it with 1.12a + high res patch. 2 has some problem for me (Can't minimize the window...)