philkr / gamehook_gtav

GTA V plugin for gamehook
BSD 2-Clause "Simplified" License
42 stars 7 forks source link

dxgi.dll not in GTA dependencies anymore #17

Open colloroneluca opened 1 year ago

colloroneluca commented 1 year ago

Hello, I'm currently attempting to utilize the gamehook_gtav tool for extracting depth maps from the GTA game. However, I have concerns regarding its compatibility with the latest Steam versions of GTA, and possibly other versions as well. While I've successfully compiled both gamehook and gamehook_gtav, I'm facing an issue when I place the generated files (including dxgi.dll) into the game's folder: nothing happens upon game startup. Despite my attempts to rename the generated DLL to either "d3d10.dll" or "d3d11.dll," I do not see any changes or results.

I've inspected GTAV.exe using Dependency Walker, and observed that the DLLs the game loads do not include "dxgi.dll." The closest match in the dependencies is "d3d9.dll," which is unexpected given that the game employs DirectX 10 or 11. Interestingly, renaming "dxgi.dll" to "d3d9.dll" triggers an error: "The procedure entry point D3DPERF_BeginEvent could not be located in the dynamic link library GTA.exe."

Does this situation imply that the dxgi project within the solution needs a substantial rewrite to function effectively with the current versions of GTA?

Below I attach the result of the dependency scan on my GTAV version. Thanks for your attention.

GTA_dependencies.txt

colloroneluca commented 1 year ago

By looking at the file above I noticed that there are some modules that were not listed in the GUI of the same program. In particular d3d12.dll. If I rename the compiled dll to d3d12.dll the intercept terminal opens up but I get the same issue as #10 .