Git Product home page Git Product logo

Comments (2)

Swung0x48 avatar Swung0x48 commented on September 27, 2024

I found those lines(and a few in similar pattern) in the source code, presumably be the cause of this issue.

if (MH_CreateHook(reinterpret_cast<LPVOID>(0x25681C30), &ObjectLoader,
		reinterpret_cast<LPVOID*>(&m_objectLoader)) != MH_OK
		|| MH_EnableHook(reinterpret_cast<LPVOID>(0x25681C30)) != MH_OK) {
		m_logger->Error("Create Object Loader Hook Failed");
		return;
}

After digging deeper in OllyDbg, it seems like the addresses has been changed in wine.
image
Replace the address in original code with the new one (in this example, 0x25681C30 -> 0x01141C30), now it hooks like a charm!

[03/03/2021 22:49:58.440] [ModLoader/INFO]: Initializing Mod Loader version 0.3.31
[03/03/2021 22:49:58.440] [ModLoader/INFO]: Website: https://github.com/Gamepiaynmo/BallanceModLoader
[03/03/2021 22:49:58.440] [ModLoader/INFO]: MinHook Initialized
[03/03/2021 22:49:58.765] [ModLoader/INFO]: Step Hook created
[03/03/2021 22:49:58.833] [ModLoader/INFO]: Object Loader Hook created    // Works fine!
[03/03/2021 22:49:58.833] [ModLoader/ERROR]: Create Input Manager Hooks Failed    // Haven't replaced yet

(Too lazy to find out all of the replacements, but still a solid proof of concept)
Though I dunno if there's a cleaner way to dynamically get that address... But it seems the root cause of the problem.

from ballancemodloader.

Gamepiaynmo avatar Gamepiaynmo commented on September 27, 2024

Fixed in 0.3.33.

from ballancemodloader.

Related Issues (20)

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.