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 


Scanning pointer values by Byte

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

Joined: 28 Mar 2014
Posts: 2

PostPosted: Fri Mar 28, 2014 11:33 am    Post subject: Scanning pointer values by Byte Reply with quote

I have a large list of pointers for a memory address that is a single byte Boolean value. Is there a way to scan the pointers down by a SINGLE byte value? it seems severely limiting that "byte" isn't offered as a choice in the dropdown list.
It's difficult to get an actual address that the value is currently in-game since the most I can get it narrowed down by is 30 possible values which all mirror each other. running down through each of the 30 possibilities for each of the 30 pointer scans that I did is... alot of trial and error.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Fri Mar 28, 2014 3:41 pm    Post subject: Reply with quote

If it's only for rescans, try the lua filter option.
I've never tried it but something like this (warning: I didn't check this code, you might have to fix it):

Code:
LOOKUP_BYTE_VALUE = 01 --enter here the value the correct matches should have.

function ByteFilter(base,offsets,target)
  if (target ~= nil) then
    if (readBytes(target,1,false) == LOOKUP_BYTE_VALUE) then
      return true --this pointer is valid
    end
  end
  return false --trash this pointer
end
paste that in the table 's lua script or lua engine's window (ctrl+alt+shift+L) and press execute after setting LOOKUP_BYTE_VALUE.
If it works correctly, just pasting "ByteFilter" in the lua filter box from the rescan menu should cause the rescan to only leave results that point to a single byte that is equal to LOOKUP_BYTE_VALUE.


BTW: does it cause the rescan to be noticeably slower?

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
flashpointblack
How do I cheat?
Reputation: 0

Joined: 28 Mar 2014
Posts: 2

PostPosted: Fri Mar 28, 2014 7:53 pm    Post subject: Reply with quote

VERY helpful! Thanks so much for passing along that little gem. I feel much more able to tackle a few other pointers I was trying to find now that I've seen the language in use for a simple purpose.
it didn't make the scans any slower, but I was only scanning 16k or so possibilities, so it's really hard to say either way.

Thanks so much again!
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 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