narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
907 stars 69 forks source link

Problems starting Laghaim #98

Closed fabiomoraes00 closed 3 years ago

fabiomoraes00 commented 3 years ago

Hi,

I am having some problems starting the global Laghaim: https://www.laghaimglobal.com/ The game works with both ddraw.dll and without, however with the lack of it the FPS drops a lot, it is practically impossible to play. Using the dll find some bugs on the screen as in the video:

https://user-images.githubusercontent.com/83385054/117370494-d8c74000-ae9c-11eb-8b72-5609abd441cb.mp4

Log: 5588 17:44:59.973 Process path: C:\Laghaim Global\Game.exe 5588 17:44:59.973 Environment variable __COMPAT_LAYER = "RunAsAdmin Win7RTM ElevateCreateProcess Installer" 5588 17:44:59.973 Loading DDrawCompat statically from C:\Laghaim Global\DDRAW.dll 5588 17:44:59.978 DDrawCompat loaded successfully 5588 17:45:00.077 Installing display mode hooks 5588 17:45:00.078 Installing registry hooks 5588 17:45:00.078 Installing Direct3D driver hooks 5588 17:45:00.078 Installing Win32 hooks 5588 17:45:00.097 Hooking user mode display driver: C:\WINDOWS\System32\DriverStore\FileRepository\u0354236.inf_amd64_0a65476e7bdec57f\B354183\aticfx32.dll 5588 17:45:00.105 Dynamic vertex buffers are available 5588 17:45:00.105 Dynamic index buffers are available 5588 17:45:00.108 Checking source color key support: passed 5588 17:45:00.112 Incorrect z-buffer bit depth capabilities detected; changed from "16, 32" to "16, 24" 5588 17:45:00.114 Installing DirectDraw hooks 5588 17:45:00.115 Installing Direct3D hooks 5588 17:45:00.119 Installing GDI hooks 5588 17:45:00.124 Finished installing hooks

Tentei também utilizar o ddraw do compat porem encontro outro erro ao iniciar o jogo, relacionado ao dbgeng.dll

image

narzoul commented 3 years ago

I fixed this issue around the end of June 2020, were you testing an older release? See here: https://github.com/narzoul/DDrawCompat/issues/71 The fix is still there in v0.3.0, hopefully it still works. I can't test it now, because it only happens with integrated AMD GPUs.

About the dbgeng.dll error, if you have a file called dbghelp.dll in the Laghaim install directory, try removing it.

fabiomoraes00 commented 3 years ago

Thanks, deleting the Dbghelp.dll file that was in the game directory it was possible to start, but in a matter of seconds it just closes on its own.

logs if necessary:

5588 17:44:59.973 Process path: C:\Laghaim Global\Game.exe 5588 17:44:59.973 Environment variable __COMPAT_LAYER = "RunAsAdmin Win7RTM ElevateCreateProcess Installer" 5588 17:44:59.973 Loading DDrawCompat statically from C:\Laghaim Global\DDRAW.dll 5588 17:44:59.978 DDrawCompat loaded successfully 5588 17:45:00.077 Installing display mode hooks 5588 17:45:00.078 Installing registry hooks 5588 17:45:00.078 Installing Direct3D driver hooks 5588 17:45:00.078 Installing Win32 hooks 5588 17:45:00.097 Hooking user mode display driver: C:\WINDOWS\System32\DriverStore\FileRepository\u0354236.inf_amd64_0a65476e7bdec57f\B354183\aticfx32.dll 5588 17:45:00.105 Dynamic vertex buffers are available 5588 17:45:00.105 Dynamic index buffers are available 5588 17:45:00.108 Checking source color key support: passed 5588 17:45:00.112 Incorrect z-buffer bit depth capabilities detected; changed from "16, 32" to "16, 24" 5588 17:45:00.114 Installing DirectDraw hooks 5588 17:45:00.115 Installing Direct3D hooks 5588 17:45:00.119 Installing GDI hooks 5588 17:45:00.124 Finished installing hooks

narzoul commented 3 years ago

This game crashes very frequently while loading, even without DDrawCompat. I don't think it's related to DirectDraw, it must be an issue with the client. Try it a few more times, maybe you'll get lucky. Let me know if it never crashes without DDrawCompat.

fabiomoraes00 commented 3 years ago

Hi,

Without DDrawCompat the game is open normally, I've been using it without it for a few weeks but the FPS is very low, when using DDrawCompat even on the login screen I noticed the difference, but then enter the game after character selection it closes.

narzoul commented 3 years ago

Ah, you're right, there's a buffer overflow error in DDrawCompat also. Try this hotfix for now: ddraw.zip (diff on top of v0.3.0: diff.txt) Let me know if this fixes the crashes, then I'll add it to an upcoming release also.

fabiomoraes00 commented 3 years ago

Thank you very much for the effort, I tested this version of the dll now the game does not close anymore. The FPS is not as smooth as with the ddraw version that the game offers with problems with the blinking screen, but now it is acceptable to play that way.

Thank you very much again for your commitment.

fabiomoraes00 commented 3 years ago

just complementing it, by lowering the game's resolution to 800 x 600 it flows normally.

thank you again !

narzoul commented 3 years ago

Fixed in v0.3.1.