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 


Creating multiple on write breakpoints

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

Joined: 27 Aug 2020
Posts: 2

PostPosted: Thu Aug 27, 2020 9:18 am    Post subject: Creating multiple on write breakpoints Reply with quote

Hi,

I have a list of addresses (about 50) that I want to monitor for write access. The documentation says that the fourth argument (0) should set the method to software:

Code:
debug_setBreakpoint(f.getAddress(i), 1, bptWrite, 0, logId)


However it's set to hardware which seems to be limited to 4 breakpoints.
I get software breakpoints with

Code:
debug_setBreakpoint(f.getAddress(i))


but then it's set to execute, not write.


Is there any way to get these breakpoints? Or am I trying to monitor these writes in the wrong way anyway?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Aug 27, 2020 9:43 am    Post subject: Reply with quote

try breakpointmethod 2 (exception)

but it's better to find the code that writes to those instructiond and then break on those code addresses with an execute bp, and on breakpoint check if the accessed address is in the list

_________________
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
xerdor
How do I cheat?
Reputation: 0

Joined: 27 Aug 2020
Posts: 2

PostPosted: Thu Aug 27, 2020 2:15 pm    Post subject: Reply with quote

I tried the exception method but the game crashed when adding BPs to certain addresses. One of those addresses is from a module and easy to filter out, but I couldn't figure out what was special about the other addresses.

But the execute breakpoint works great, I don't even have to scan for all the addresses since the code address doesn't change at all.
Way more straightforward than I thought, code just sounded more complicated than data.

Thanks for the help!
Back to top
View user's profile Send private message
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