Giter VIP home page Giter VIP logo

gamehook's People

Contributors

bradyz avatar philkr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamehook's Issues

GTAV crashes at the start without warning(Hooking the io?)

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!

Adding a section on how to compile the code

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!

Failed to complie with dxgi

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!

no ability to capture

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.

Assertion failed! version_ >= 1

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

Not hooking DrawIndexedInstancedIndirect

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?

Depth maps using copyTarget function

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.

"More than one GameHookBuffer created. Things will end badly from here on!"

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.

Failed to load plugin 'python.hk'

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.

More than one GameHookBuffer created (Bonus: 2022 build instructions)

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

Game crashes

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

Missing files?

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

Where is gamehook.lib? @_@

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? @_@

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.