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 


[SOLVED] Is it possible to store the address of a AoBScan?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
AnthonysToolbox
Newbie cheater
Reputation: 1

Joined: 07 Dec 2013
Posts: 21

PostPosted: Mon Apr 14, 2014 11:28 pm    Post subject: [SOLVED] Is it possible to store the address of a AoBScan? Reply with quote

NEVERMIND, FIGURED IT OUT!!! I'll put my solution here just incase anyone runs into the same issue.

Quote:

......That Other Junk for the Enable....
registersymbol(cheat001)
[DISABLE]
label(originallocation)

AoBscan(origarea,01 02 03 04 05 06 07 08 )
origarea:
originallocation:

cheat001:
movsd xmm0,[originallocation]


Things in bold are what I added that weren't in my Original Thread Post. I just remembered or rather thought about when I was learning this stuff and what the returnhere label was used for and yeah. Thankyou cheat engine team for the basic tutorials, they saved the day. Very Happy

-------------------------------------- Original Post--

Here's my dilemma, trying to make a disable function using my uneducated mind, in a game I have an instruction:

movsd xmm0,[32FE37E0]

The 32FE37E0 is Random on refresh, Anyway my script changes the value to another area since I'm allocating and writing my own values for it to read.

Here's a sample of the Enable AA script:
Code:

[ENABLE]
AoBscan(cheat001,F2 0F 10 05 ?? ?? ?? ?? 8B 4D D0)
alloc(myvalue,8)

myvalue:
dq (double)1000

cheat001:
movsd xmm0,[myvalue]


Now my question is how would I make a disable? To set the original address into the movsd.

I can grab the original address that's in the unmodified movsd through aobscan, but is there a way to store the address the AoBScan locates and reuse it?

Like say for sake of example,
Code:
AoBscan(origarea,01 02 03 04 05 06 07 08)
went to Address 32FE37E0

So my uneducated mind tried doing something like:
Code:

......That Other Junk for the Enable....
registersymbol(cheat001)
[DISABLE]
AoBscan(origarea,01 02 03 04 05 06 07 08)

cheat001:
movsd xmm0,[origarea]


But that just gave me a compile error -
(movsd xmm0,[ 00000000]) : This can't be compiled.

Any help would be greatly appreciated.

Sincerely,
-Anthony[/u][/i]
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Tue Apr 15, 2014 9:46 am    Post subject: Reply with quote

You could allocate memory, write to it the original bytes register it as a symbol.
And when disabling, write into the original address, readmem(addresswherebytesarestored,length).

Alternative would be a lua script.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
AnthonysToolbox
Newbie cheater
Reputation: 1

Joined: 07 Dec 2013
Posts: 21

PostPosted: Tue Apr 15, 2014 11:44 am    Post subject: Reply with quote

DaSpamer wrote:
You could allocate memory, write to it the original bytes register it as a symbol.
And when disabling, write into the original address, readmem(addresswherebytesarestored,length).

Alternative would be a lua script.


Thankyou, i'll look more into that, I didn't know about the readmem instruction. ^_^ thankyou very much sir.
Back to top
View user's profile Send private message
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