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 


bit of help requested

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
godsblight
Grandmaster Cheater
Reputation: 0

Joined: 02 Jul 2007
Posts: 805

PostPosted: Wed Feb 14, 2018 11:40 pm    Post subject: bit of help requested Reply with quote

Hello all,

I am getting unexpected results from my script

Code:

[Enable]
{$lua}
min = InputQuery('Put in current HP', '', '')
min = string.format( '%x', min )
max = InputQuery('Put in max HP', '', '')
max = string.format( '%x', max )
Aob = min .. " 00 00 00 " .. max .. " 00 00 00 00 00 00 00"
showMessage(Aob)
{$asm}
RegisterSymbol(base)
AOBScanRegion(base, C0200000, E0000000, Aob)
[Disable]
UnregisterSymbol(base)


I have an table entry under this with the address base, this script is basically supposed to ask for a min and max hp of your character, translate that into hex then put it into an aob string to make it

the "showMessage" shows the string correctly (i used it as a test)
the address I get from the aob scan is C020FD6A
the address I should get is C0668C8C (tested it with normal AOB scan in CE, only 1 address found)

I have no idea why it is not getting the correct address. I think I am missing something but cannot tell what.

Any help is appreciated.

_________________
Name: Player One
Occupation: Gamer

The Players are a particularly violent group of gamers. They solve all of their problems via bloody bouts with each other, and they live happier lives for it.

Player One is blue, and a bit of an asshole.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Feb 15, 2018 8:23 am    Post subject: Reply with quote

Basically under the conditions used for scanning in the script it's not unique and the one you want is not the first one found (because it comes later in memory).

When scanning manually did you test with all the options as, um.... "gray" boxes. Not empty and not checked.

Not sure if script AOB scans follow the same settings for memory mapped etc. that are in edit->settings->scan settings.

Regardless the solution to an aob not finding what you want is to make it more unique.

_________________
https://github.com/FreeER/ has a few CE related repos
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