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 


Finding an unknown value that is near a known value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
creo
Newbie cheater
Reputation: 0

Joined: 21 Dec 2008
Posts: 13

PostPosted: Thu Feb 02, 2012 8:47 pm    Post subject: Finding an unknown value that is near a known value Reply with quote

I am trying to find a solution to achieve what is stated in the subject.

To put the scenario in perspective, I have a known 8 byte value that is unique to a particular mob. This value can occur several hundred times within the game memory. I am looking for another value that is not known, but will change under certain circumstances. Performing this through normal brute force alternating compares takes several iterations to reduce the count from several hundred million (yes I said million) down to a few 10's of thousands. Over time, this number can be finally reduced to several hundred, but this is still too many for a manual view to filter the results.

I would like to be able to perform a search for an unknown initial value and then perform a second search when the value should have changed and then filter these results to only include those addresses that are within a certain proximity of my known value.

I have considered possibly using Lua, but have not yet delved into using it with CE and I am not sure that would be the best approach to achieve my goal. So, I am looking for suggestions.

Any ideas would be welcomed...

Cheers,

creo
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Feb 03, 2012 3:26 am    Post subject: Reply with quote

Is this secondary value at a set distance of the known 8 byte value?
If so, I think a custom type can be used here

Set the size of the custom type to encompass the whole block (8 byte + ignored bytes+changing value)

Then on compare check if the 8 byte value is what it should be. If so, return the secondary value, if not, return 0 (or another value you can check for that it's invalid. Prime numbers tend to work well)

then when scanning you can do a changed/unchanged scan and then do a scan whee the value is not the value you picked as a "wrong value"



You'll need a fixed ce for custom scan to scan unknown initial value: http://cheatengine.org/temp/CheatEngine62Beta4.rar

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
creo
Newbie cheater
Reputation: 0

Joined: 21 Dec 2008
Posts: 13

PostPosted: Fri Feb 03, 2012 3:11 pm    Post subject: Reply with quote

Thanks for the update. I will check this out and see if I can get what I need...

I am not sure the unknown value will always be within a fixed distance of a known value in all cases, just within an approximate distance and could be either before or after the known value in some cases...

However, this will give me something that will allow me to track down values for cases where I can provide a distance...

At times, I find structures that have my known value and then have a value that I think could be useful in which case I would know the distance between them. Using this, I can then track down similar structures for other entities where I know the fixed value but want to see if a similar structure exists and if so, what the unknown value is in this case...

I appreciate the suggestion and the patched binary... Smile

Cheers,

creo
Back to top
View user's profile Send private message
arnold1
How do I cheat?
Reputation: 0

Joined: 06 Feb 2012
Posts: 1

PostPosted: Mon Feb 06, 2012 9:01 am    Post subject: Reply with quote

i am glad to see your post very touchy post u have shared thanks for sharing God bless u
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