I am writing a trainer and I’ve stumbled on a bug I can’t fix. I’ve written my trainer in C, C#, and Python and all 3 exhibit the same behavior, but I don’t know how to fix it. In short: I am looking for someone well-versed in memory editing

Edit:
Solved! It was a simple logic bug! I thought of a way to maybe look for anomalies by printing shitloads of info and I found it!

Thanks everyone!

Summary:

* I am writing my first trainer (app that reads memory of another app)

About the game:

* This is Windows only
* The app I am altering is an offline 2d fighting game called MUGEN
* It is freeware/abandonware
* At no point was it ever commercial

How far along I am and what my code does:

* My code appears to fully work, it is only 118 lines long, well documented, on github, is read-only, alters no memory values
* The purpose of the code is to determine the winner of the fight, loser gets eliminated, find replacement fighter, repeat until all replacements are exhausted.
* I have written this trainer in 3 different languages: C++, C#, and Python, all 3 have the exact same issue, so it’s something about my methodology.
* All 3 codebases are available publicly on github

The issue:

* Sometimes it says the fights are “tied” at zero-zero after a fight is over, and I don’t know why. It doesn’t usually happen, it’s kinda random. Logs are below.

Output Logs:

* [below]

Additional:

* I have streaming software set up so that I can broadcast my entire desktop (game + trainer + editor), that way whoever decides to help me will not be required to install the game and can watch my PC in real time to monitor the output and maybe help me figure out why my round counters sometimes don’t work

The Python Code (easiest to read):
https://github.com/malonnnn/mugenWatcher2/blob/master/mugenWatcher2.py

Output Logs (shows the issue):

READ:   5 free apps for a limited time that we recommend you download

(All-Stars) Ken_Kaneki – vs – Acnologia
Acnologia wins round
(All-Stars) Ken_Kaneki wins round
Acnologia wins round
1 : 2 # starts off okay, Ken_Kaneki gets eliminated
Acnologia wins
————–
Aigis – vs – Acnologia
Acnologia wins round
Acnologia wins round
0 : 2 # still good, Aigis gets eliminated
Acnologia wins
————–
Aizen – vs – Acnologia
Acnologia wins round
Acnologia wins round
0 : 2 # still good, Aizen gets eliminated
Acnologia wins
————–
Aizen Salah – vs – Acnologia
Aizen Salah wins round
Aizen Salah wins round
Aizen Salah wins round
0 : 0 # suddenly it detects 3 rounds, but claims a tie game
Tie! Rematch!
————–
Aizen Salah – vs – Acnologia
Aizen Salah wins round
Acnologia wins round
Aizen Salah wins round
Aizen Salah wins round
Acnologia wins round
0 : 0 # what is even happening here
Tie! Rematch!
————–
Aizen Salah – vs – Acnologia
Acnologia wins round
Aizen Salah wins round
Aizen Salah wins round
2 : 1 # now it works again, Acnologia gets eliminated
Aizen Salah wins
————–

Updates
0

More Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu