bruhmoment21 / UniversalHookX

Universal graphical hook for Windows apps.
MIT License
198 stars 42 forks source link

"Vulkan backend is not enabled!" on a game that uses vulkan-1.dll #4

Closed User13445 closed 2 years ago

User13445 commented 2 years ago

Hello! For starters... thank you for making this! I've been looking around for a very long time, for a Vulkan Dear ImGui hook.

So, I'm having an issue. I am currently trying this with a game called 'No Man's Sky'. On previous versions of the game they used OpenGL as a backend, but later on they switched to the Vulkan backend.

I tried the hook on an older version of the game using OpenGL as an enum & it worked. However, when I tried on the modern version of the game using Vulkan... this is what I see: 2022-07-30 - 15 27 31 ~ GH Injector - x64

I'd be extremely grateful if you found a way to resolve this!

Feel free to let me know if any more information could be provided.

Regards

bruhmoment21 commented 2 years ago

hey this is my bad because i left this undocumented. make sure you have Vulkan SDK installed and uncomment this line

upd: it works, at least on v3.92, but you have to fix the cursor yourself (cursor is hidden) image

User13445 commented 2 years ago

Thank you so much! What you suggested fixed the issue.

Yeah, the game forces your cursor into focus. ReShade has a way of getting around this. I'm not sure if it's ImGui specific, or if this will require writing some code for it on my behalf.

User13445 commented 2 years ago

A bit of an update.

So, I fixed the issue of the game still receiving input while the menu overlay is opened with the WndProc function. However, re-opening the Dear ImGui produces a freeze/crash.

To see if this whether or not this was an issue with the changes I made... I had tested with the original source code & unfortunately it crashed.

So, this doesn't crash if you are on the main menu. But it does if you try to re-open ImGui if you are loaded in-game.

bruhmoment21 commented 2 years ago

A bit of an update.

So, I fixed the issue of the game still receiving input while the menu overlay is opened with the WndProc function. However, re-opening the Dear ImGui produces a freeze/crash.

To see if this whether or not this was an issue with the changes I made... I had tested with the original source code & unfortunately it crashed.

So, this doesn't crash if you are on the main menu. But it does if you try to re-open ImGui if you are loaded in-game.

couldn t reproduce https://streamable.com/gnr7x3

User13445 commented 2 years ago

Re-installing the game through Steam has fixed this issue. Thanks again for your help & your time!