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 


MemBP

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

Joined: 07 Dec 2018
Posts: 6

PostPosted: Sat Jan 26, 2019 6:56 pm    Post subject: MemBP Reply with quote

Hi
Is there way to use "DataBP > Find out what access this address" window from lua script?

Let's say we have condition like:
Code:
if (EIP == addressOfFunk) then

and we know that (ESP + 8) = mem buffer ptr on this BP

How (if this possible) to set this memory access log bp (~100 bytes size) with default CE window?
As I know this step also require BP type changing (from HW to page exceptions).
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 360

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

PostPosted: Sun Jan 27, 2019 2:58 am    Post subject: Reply with quote

pause the program
set the data breakpoint
go to the breakpoint list, select the breakpoint and rightclick it
then set the condition you want to break on

and then continue the program

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
A-off
How do I cheat?
Reputation: 0

Joined: 07 Dec 2018
Posts: 6

PostPosted: Sun Jan 27, 2019 3:49 am    Post subject: Reply with quote

Dark Byte wrote:
pause the program

Unfortunately I can't - this is server-client communication code and any delay > ~1000ms will cause connection drop and will change execution flow.

Any workaround (maybe without GUI, just log)?
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 235

PostPosted: Sun Jan 27, 2019 5:11 am    Post subject: Reply with quote

A-off wrote:
Any workaround (maybe without GUI, just log)?


Try this.
Set the pause option with Timer: 10.. 100.. 999 ..
Click Key: F8 pause - F8 UnPause

Code:
if myhotkey then
  myhotkey.Destroy()
  myhotkey = nil
end

function killmytimer()
  if mytimer then
    mytimer.Destroy()
    mytimer = nil
--showMessage("UnPause")
  end
end

myhotkey = createHotkey(function()
  if mytimer then
    killmytimer()
    speedhack_setSpeed'1'
--    unpause()
  else
    mytimer=createTimer()
    mytimer.interval=1 --10.. 100.. 999 ..
    mytimer.OnTimer=function()
    speedhack_setSpeed'0'
--    pause()
    end
  end

end, VK_F8)

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
A-off
How do I cheat?
Reputation: 0

Joined: 07 Dec 2018
Posts: 6

PostPosted: Sun Jan 27, 2019 6:19 am    Post subject: Reply with quote

Thx
But how this suppose to work?
Even if I froze client-side, server will drop connection and unpaused client won't get any packets to continue the right branch.

For now I have BP callback which handle BP chain, and eventually we get our mem buffer as a result of last BP. The point is to get all access to that mem buffer without pausing the program.
If client don't respond during timeout, server will close connection and we may get only first access event (or get nothing).

My guess was CE can do such a things without any problem, maybe I was wrong, just want to save some time, anyway this can be done with some coding but takes more time...
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