philkr / gamehook Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 2-Clause "Simplified" License
License: BSD 2-Clause "Simplified" License
when i start witcher3 game ,Always popping up error"GPU dose not meet minimal requirements. Support for DirectX 11 is required". does anyone know how to fix?
Greetings,
Really interested to this project.
However my GTAV crashes right after start. black window first then crashes with no hint.
I only put dxgi.dll capture.hk and server.hk
in the intercept.log:
[ 10:05:44 ] Staring up (fake)\dxgi.dll
[ 10:05:44 ] Initialized: C:\WINDOWS\system32\dxgi.dll
[ 10:05:44 ] Hooking d3d11 functions
[ 10:05:45 ] Loading the API
[ 10:05:45 ] Loading API
[ 10:05:45 ] Loading and patching plugin capture.hk
[ 10:05:45 ] Capture turned on
[ 10:05:45 ] Loading and patching plugin server.hk
[ 10:05:45 ] Server turned on
[ 10:05:48 ] Hooking the device and device context
[ 10:05:48 ] Hooking the swap chain
[ 10:05:48 ] Hooking the io
Anyone has a clue how fix this?
Thanks!
Sorry is this is trivial, but it might be worth adding a section in the readme on how to compile the code. The Getting Started page is already great; however, it would be clearer if you specify how one would go about compiling the code to get the .dll file - makes it clearer for newer folks.
Thanks for the repo!
When I compile the source, my visual studio 2017 report the error "binary '>>' : no operator defined which takes a left-hand operand of type 'std::istringstream' (or there is no acceptable conversion)" Who knows what the problem might be?
Where can I find the example folder ?
when i complie dxgi ,I get "e:\project\gamehook-master\sdk\sdk.h(50) :error C2678: binary “>>” : no operator found which takes a left-hand operand of type ‘std::istringstream’ (or there is no acceptable conversion),
anybody know how to fix it? thanks!
as far as I can tell - there is no functionality to initiate a capture. is this correct? There is a comment which says F12 starts and stops capture - but as far as I can tell I don't think the logic to do that is in the code base anywhere.
Hi!!!
I am trying to hook into Euro Truck Simulator 2. Compiled the refactor branch and everything went fine.
When I run the game, I get the error "Assertion failed! version_ >= 1" when it tries to hook CopySubresourceRegion1, any help would be appreciated.
Thanks!!!
David
With the new update, and running in DX11 -- it looks like we might be missing quite a few draw calls via this DrawIndexedInstancedIndirect methd call. Is this new to the DX11 update?
I am working as a student assistant at university, I am trying to use gamehook library for one of the university projects.
As far as I could check in the source code, the function copyTarget only works with RenderTargetView.
How can I get the depth maps using the copyTarget function? If it is not possible, how can I get the depth maps using this library.
I can get object_id
, but have no idea how to get the semantic labels.
I got Gamehook to work with GTA V. However, it crashes with both NBA 2k19, Mortal Kombat X, and Session (a game using unreal engine) with several echos of "More than one GameHookBuffer created. Things will end badly from here on!" which start happening after the 2nd echo of "Hooking the device and device context."
This is true both on the refactor branch of this repo and Brady Z's fork.
Not quite sure what to do about this.
All the other plugins (capture.hk
and server.hk
) work fine, except for python.hk
, where I get a Failed to load plugin 'python.hk'
error. How do I debug this? I have successfully built pyhook
too.
So I have managed to thumble through some version mismatches accumulated over the years to compile gamehook.dll so I thought I would summarise these here:
Checkout the refactor branch of the gamehoook repository.
For those playing in 2022 - Visual Studio needs both an old SDK and 2017 compatibility installed. 2017 Compatibility can be installed via VS installer but I found that the specific SDK version requested by this project had to be downloaded and installed from here (https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/).
You also need to do what is in this old closed post (#11) and clone the simple-web-server/simple-websocket-server repositories to build the server plugin. None of the tagged versions for this work out the box however, in the end I pulled master then made two edits
In asio_compatibility.hpp change #if(ASIO_STANDALONE && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300 to #if(0 && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300
In server.cpp comment out 'connection->remote_endpoint = std::move(*request -> remote_endpoint);' (Not sure what this will break later??)
Then you either need to add a PythonDir system environment variable that points to the python version you want to use in building the project or manually configure the project using Project -> Properties then modifying both VC++ Directories -> Include Directories and Linker -> General -> Additional Library Directories to point to the python include and libs folders respectively.
Finally make sure the build configuration is set to x64 and release.
Now you should get a successful build and a gamehook.dll file to play with.
To my issue:
I get the command prompt and things appear to be starting but I get More than one GameHookBuffer created. Things will end badly from here on! and then the process gets killed after printing Hooking the io
I think this is similar to #13
Hi,
I downloaded the dataset provided here.
From the state json file, is it possible to obtain the camera pose for every frame?
Hi,
When I try to launch with gamehook injected the game just displays a black window. Sometimes it closes the window imediatly and others just hangs.
The full log I get:
[ 18:20:11 ] Staring up (fake)\dxgi.dll
[ 18:20:11 ] Initialized: C:\Windows\system32\dxgi.dll
[ 18:20:11 ] Hooking d3d11 functions
[ 18:20:11 ] Loading the API
[ 18:20:11 ] Loading API
[ 18:20:19 ] Hooking the device and device context
Do you have any ideas/suggestions on how to fix this?
Thanks in advance
Hey,
i try to compile the project.
Compiling dxgi.dll <-> gamehook.dll works fine.
But the problem is that i cant compile the plugins:
plugin/capture, works -> no error
plugin/python, error: Cannot open include file: 'Python.h': No such file or directory
plugin/server, error: Cannot open include file: 'server_http.hpp': No such file or directory
and yes, these files do not exist.
Where can i find them?
and yes i have a python env installed. And even in Visual Studio i installed the python stuff.
regards
I'm trying to run the gamehook-gta project, however the "gamehook.lib" is missing. The gamehook-gta's readme.md says that it should be here but I can't find it. Can anyone help me? @_@
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.