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 


Couple of questions about CE debugger

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Wed Feb 07, 2018 4:42 pm    Post subject: Couple of questions about CE debugger Reply with quote

So my current project is taking up too much ram for unknown searching, so I've gone for break and trace, following opcode, etc.

I've found a couple things I think I could use as reference points, but the opcode that matters is deep into some function calls, and I'm lazy.

Here goes for questions:

1. Is it possible to let the debugger run lines until say xmm0 is equal to X value?
- Some option I'm missing?
- LUA, if possible please give an example

2. Is it possible to search exact values in dissect/data structure? Instead of it finding values within bigger values?
- I feel like I'm not utilizing this to its full potential, any advanced guides around?

Thanks.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Feb 07, 2018 5:43 pm    Post subject: Reply with quote

1. hm, break and trace lets you specify a stop condition, which could be a function call (return true to stop)... not certain sure how to read XMM0 from lua though... hm, looks like you'd use something like readFloatLocal(debug_getXMMPointer(0)) for a simple float (of course for 4 floats you need to do it 4 times and add an offset of 4 for each one).
1.1 though you could also use lua to step manually with debug_continueFromBreakpoint(co_stepover)

2. I'm pretty sure it's just a string search so probably not.
Back to top
View user's profile Send private message
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Wed Feb 07, 2018 6:03 pm    Post subject: Reply with quote

I'll have to look into that stop condition, because 1000 traces doesn't cut it, neither does 3000... It's troublesome to go through too.

I'd probably have to look into the LUA possibility though, all I know is that the xmm registers (?) Has some value changes some time down a call chain that could be using references from what I need to find.

Being able to find the point where xmm0,1 etc gets set to the value would save me probably weeks worth of effort.

Thanks for the help.

If anyone can add anything, you're more than welcome to do so.
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: Wed Feb 07, 2018 6:23 pm    Post subject: Reply with quote

One problem is that it looks like debug_getContext(true) won't work in break and trace, so you'll have to go a little bit deeper.

In your stop condition function (yes, you can give a lua function as stop condition in break and trace) use
Code:

xmm0asdouble=byteTableToDouble(readBytesLocal(debug_getXMMPointer(0),16,true))

_________________
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
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Thu Feb 08, 2018 6:59 am    Post subject: Reply with quote

So I should be able to say:
Code:

xmm1asfloat=byteTableToFloat(readBytesLocal(debug_getXMMPointer(1),0.1,true))


As the stop statement?
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: Thu Feb 08, 2018 7:58 am    Post subject: Reply with quote

readBytesLocal needs the number of bytes, and since XMM registers are 16 bytes long it's recommended to use that (although 4 will work as well since you seem to be only interested in the first 4 bytes)

example stop statement:
Code:

byteTableToFloat(readBytesLocal(debug_getXMMPointer(1),16,true)) > 1.0


or have the following script somewhere else (and run it first)
Code:

function myCheck()
  local f=byteTableToFloat(readBytesLocal(debug_getXMMPointer(1),16,true))
  return f>1.0
end

and as stop statement:
Code:

  myCheck()

_________________
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 -> General Gamehacking 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