sh0ckfr / universal-dear-imgui-hook Goto Github PK
View Code? Open in Web Editor NEWAn universal Dear ImGui Hook for Directx12 D3D12 (D3D11, D3D10 and maybe Vulkan will be added later)
License: MIT License
An universal Dear ImGui Hook for Directx12 D3D12 (D3D11, D3D10 and maybe Vulkan will be added later)
License: MIT License
Hello,
I tried to use this for RDR2 and when i inject i get this error: https://i.imgur.com/0ODbVKV.png
Is this related to the game? And if its related to the game what do i have to do to fix it?
Hello. I ran into a problem that after the injection at the moment the game starts, the ImGui menu appears for a couple of seconds and then disappears. When the game is already running, I inject, there is no reaction. I suspect something is changing in those couple of seconds, but I can't figure out what it is. What is the best way for me to do this to find out?
Tested on AC Valhalla, ImGUI shows up but its flickering hundred times per second if you disable FPS limit in game. Also game crashes if you change FPS limit while this hook is injected (even if ImGUI is currently not shown).
When you press insert, the menu opens and the game freezes, does not respond to any input. Hangs only when closing the menu through the debugger.
As I understand the problem in the method in inputhook.cpp
LRESULT APIENTRY WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { if (menu::isOpen) { ImGui_ImplWin32_WndProcHandler(hwnd, uMsg, wParam, lParam); return true; } return CallWindowProc(oWndProc, hwnd, uMsg, wParam, lParam); }
if you remove "return true;" then everything works, but the cursor is frozen in the center and continues to control the game
Solution and dependencies targeted for the following -
Windows SDK: 10.0 (latest)
Platform Toolset: Visual Studio 2019 (v142)
Language Standard: C++ 17
Error upon injection: "Assertion Failed: 'Invalid DisplaySize value!'
Will vulkan's hooking be simpler than dx12? Little is known about vulkan
Hello.
I have tried everything possible to get it to work but it just won't show anything.
Game is for sure Dx12. Manual injection goes fine but there is nothing there if pressed INSERT. Then I tried few of the best DLL injectors, same story tho some of them failed to inject the dll.
I really thought this was it and I can start learning but for some reason, it just won't show the ImGui window.
Any tips to try would be appreciated.
Also I have tried to debug but had some difficulties with compilation. I will continue to research but don't know what can be the issue.
Regards.
I am getting the error "directx has encountered an unrecoverable error" when injecting this into COD Warzone, any idea whats going on?
My hook code:
https://pastebin.com/
How I release the resources:
Utils::LogDebug(Utils::GetLocation(CurrentLoc), Cheat::Title + ": Unloading...");
#if FRAMEWORK_RENDER_D3D12
D3D12Release();
kiero::shutdown();
#endif
console.get()->Destroy();
std::this_thread::sleep_for(std::chrono::seconds(3));
FreeLibraryAndExitThread(hModule, EXIT_SUCCESS);
Game: Satisfactory (Steam)
Engine: Unreal 5
Crash Log:
Version: 264901, IsEditor: No, IsPerforceBuild: No, BuildConfiguration: Shipping, Launcher: Steam, NetMode: Standalone, IsUsingMods: No, IsSaveGameEdited: No
Fatal error: [File:C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Util.cpp] [Line: 873] D3DCommandQueue->Signal(ManualFence, Value) failed at C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Submission.cpp:838 with error E_INVALIDARG
FactoryGame_D3D12RHI_Win64_Shipping!D3D12RHI::VerifyD3D12Result() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Util.cpp:873]
FactoryGame_D3D12RHI_Win64_Shipping!FD3D12Queue::ExecutePayload() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Submission.cpp:836]
FactoryGame_D3D12RHI_Win64_Shipping!<lambda_0bd2b0fca5ae7636cf328c9307d2e0f5>::operator()() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Submission.cpp:582]
FactoryGame_D3D12RHI_Win64_Shipping!FD3D12DynamicRHI::ForEachQueue() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12RHIPrivate.h:385]
FactoryGame_D3D12RHI_Win64_Shipping!FD3D12DynamicRHI::ProcessSubmissionQueue() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Submission.cpp:585]
FactoryGame_D3D12RHI_Win64_Shipping!FD3D12Thread::Run() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\D3D12RHI\Private\D3D12Submission.cpp:83]
FactoryGame_Core_Win64_Shipping!FRunnableThreadWin::Run() [C:\BuildAgent2\work\78a794e88763017d\UE4\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]
If you know a fix or where I went wrong please let me know.
When building, I get error C1047 as seen below:
Unlike in #2 , when cloning from GitHub Desktop, I still get the error and cannot build.
rebuilt lib and injected throws this error if i click ignore hit f12 it will just crash any d3d12 game its injected to!
line throwing the error.
static void ImGui_ImplWin32_UpdateMousePos() { ImGuiIO& io = ImGui::GetIO(); IM_ASSERT(g_hWnd != 0);
attached with vs
A breakpoint instruction (__debugbreak() statement or a similar call) was executed in UE4Game.exe.
Whats the difference between kiero? cons/pros ?
What compiler version was used to compile this code?
Severity Code Description Project File Line Suppression State
Error C1047 The object or library file 'C:\Users\Eigenaar\Desktop\Universal-Dear-ImGui-Hook-master\minhook\lib\libMinHook.x64.lib' was created by a different version of the compiler than other objects like 'x64\Release\d3d12hook.obj'; rebuild all objects and libraries with the same compiler Halo-Hook C:\Users\Eigenaar\Desktop\Universal-Dear-ImGui-Hook-master\LINK 1
Hello,
Could you add a DrawIndexPrimitive hook?
Hi there. I compiled the project as x64 Release, then injected it into an x64 D3D11 process with cheat engine. (Also tried GH injector)
Upon injecting, I get a success message, though nothing changes. When clicking insert, nothing shows up.
Any ideas? Same thing happens when using this hook too - https://github.com/guided-hacking/GH_D3D11_Hook
I am getting the error "Cannot open include file: 'imgui.h': No such file or directory"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.