Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to "Find what writes to this address" in train

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
CaptainSwag101
How do I cheat?
Reputation: 0

Joined: 09 Jan 2015
Posts: 1
Location: California, United States

PostPosted: Sat Jan 10, 2015 12:00 am    Post subject: How to "Find what writes to this address" in train Reply with quote

Hi, I want to create a trainer for an emulated game (Super Mario 64). I have a specific opcode I need to NOP, but the only way it can be found is by manually searching for it each time by right-clicking on the address it writes to and clicking "Find what writes to this address", and then it finds the opcode and I can NOP it. This is because each time the game is reset or the emulator is closed and opened again, the opcode I'm looking for is located at a different address and I have no idea how to find a static address or pointer to it. So, is there any way to make a trainer that takes a known address and searches for what writes to it?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Sat Jan 10, 2015 7:17 am    Post subject: Reply with quote

are you sure you can't find it by scanning for it's byte signature?

you can do a find what wrires in lua, but it's not as easy as an aobscan
check out http://cheat-engine.googlecode.com/svn/trunk/Cheat%20Engine/bin/main.lua
and look up debugger_onBreakpoint and debug_setBreakpoint.

use setBreakpoint to create a write triggered breakpoint, an in onBreakpoint fetch the address from EIP/RIP and go from there.
(note that the instruction pointer contains tge address of the instruction right after it)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites