Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheat Engine #6038

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Cheat Engine #6038

merged 1 commit into from
Nov 12, 2019

Conversation

RipleyTom
Copy link
Contributor

@RipleyTom RipleyTom commented May 30, 2019

First draft of a cheat manager.

Note that the cheats you make probably won't survive another launch of the game if the offset is on the heap. I may add a more complex parameter to make some level of redirection possible in the future.

edit:
I added a redirection system, completely untested, syntax is:
$ is offset
[] for dereferencing
+/- for adding offset
ex: [[$]+8]+16
It will get the u32 offset is pointing at, add 8 to that, get the u32 that is pointing to and add 16 to that which will be the final offset.

If the Script cell is left blank it will act as before.

@RipleyTom RipleyTom force-pushed the cheat_engine branch 5 times, most recently from b89f0e6 to 5578e18 Compare May 30, 2019 20:00
@RipleyTom RipleyTom force-pushed the cheat_engine branch 2 times, most recently from c32d6ca to d4d2748 Compare June 19, 2019 15:58
@RipleyTom RipleyTom changed the title [WIP]Cheat Engine Cheat Engine Jun 19, 2019
@RipleyTom
Copy link
Contributor Author

Fixed a bug where saves wouldn't be loaded properly if script was empty.
Cleaned up the code(no more duplicate code, const functions are now const and static functions are now static).
I tried to implement a function to try to find a pointer to address back in "safe" memory(data segment) but from testing it doesn't seem to work very well so I disabled it but left the code in, in case anyone comes up with an improvement.

@RipleyTom RipleyTom force-pushed the cheat_engine branch 3 times, most recently from 8c536c1 to 1b7bc51 Compare August 10, 2019 16:56
rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
@RipleyTom RipleyTom force-pushed the cheat_engine branch 2 times, most recently from a782dd1 to 61e5353 Compare September 16, 2019 23:31
@dio-gh dio-gh mentioned this pull request Oct 8, 2019
Copy link
Member

@Nekotekina Nekotekina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long type has non-portable size

rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/rpcs3qt/cheat_manager.cpp Show resolved Hide resolved
@Nekotekina Nekotekina merged commit 8e39c77 into RPCS3:master Nov 12, 2019
@RipleyTom RipleyTom deleted the cheat_engine branch July 31, 2020 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants