justalemon / PlayerCompanion

Mod for GTA V that adds some extra features for Addon Peds and the Player Characters
MIT License
12 stars 1 forks source link

Runtime patching of Game.Player.Money #4

Closed justalemon closed 3 years ago

justalemon commented 3 years ago

I recently found a library called Harmony (https://harmony.pardeike.net) that allows you to do memory patching of C# functions, and I feel that it might be possible to patch Game.Player.Money during runtime.

I would really like some help with using the Harmony library and Monkey real time patching, as I have never done it before (if is possible at all).

justalemon commented 3 years ago

The harmony branch contains an experimental version of this runtime patching system.

It currently patches the Game.Player.Money calls on SHVDN 2 and SHVDN 3.

For anyone interested, you can get a CI build from AppVeyor: https://ci.appveyor.com/project/justalemon/playercompanion/history (check those that come from the harmony branch).

justalemon commented 3 years ago

The harmony branch has been merged into master. All builds after 1.1.1.23 have this patch applied.