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 


Help with aobscan and offsets.

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

Joined: 22 Jun 2010
Posts: 16

PostPosted: Thu May 29, 2014 12:24 am    Post subject: Help with aobscan and offsets. Reply with quote

I'm not 100% sure how to explain this but I will give it my best go. A friend of mine helped me with this script, to help me understand the use of Aobscan. Now I'm wanting to do other things with it if possible.

Code:
[ENABLE]
aobscan(IonizedBolt,5A 9A 01 00 01)
label(_IonizedBolt)
label(duration)
registersymbol(_IonizedBolt)
registersymbol(duration)

IonizedBolt:
_IonizedBolt:


duration:
IonizedBolt+54:
dd 0

[DISABLE]
unregistersymbol(duration)
unregistersymbol(_IonizedBolt)


basically i'm trying to add the address at the aobscan then add the offset 54 to it. This isn't working though, because duration is still pointing to the aobscan.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu May 29, 2014 1:33 am    Post subject: Re: Help with aobscan and offsets. Reply with quote

Code:
[ENABLE]
aobscan(IonizedBolt,5A 9A 01 00 01)
label(duration)
registersymbol(IonizedBolt) //as of cheat engine v. 6.3, the _IonizedBolt trick is no longer needed
registersymbol(duration)


IonizedBolt+54: //<-this is where your problem was.
duration:
//IonizedBolt+54:
dd 0

[DISABLE]
unregistersymbol(duration)
unregistersymbol(IonizedBolt)
In your code CE goes to duration (undefined, probably defaulted to 0) then writes nothing, then goes to IonizedBolt+54 (known) and writes 0.
In the modified code, CE goes to IonizedBolt+54 (known) places duration there (because it isn't already defined) and writes 0 here.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Ojji
Newbie cheater
Reputation: 0

Joined: 22 Jun 2010
Posts: 16

PostPosted: Thu May 29, 2014 8:58 pm    Post subject: Reply with quote

thank you for that clarification now i've got

Code:
[ENABLE]
aobscan(IonizedBolt,55 9A 01 00 01)
registersymbol(IonizedBolt)

IonizedBolt:

[DISABLE]
unregistersymbol(IonizedBolt)


using what you pasted, now all i have to do is put in IonizedBolt+offset in the add address manually, but i was wanting to just define the offsets in the script so when i add an address i can just put in Duration and it would be at the duration of the spell. I have the correct offsets to use. IonizedBolt+54 is where the duration of the spell is at.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu May 29, 2014 9:05 pm    Post subject: Reply with quote

Ojji wrote:
i was wanting to just define the offsets in the script so when i add an address i can just put in Duration
Then why don't you use what I pasted as is?
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Ojji
Newbie cheater
Reputation: 0

Joined: 22 Jun 2010
Posts: 16

PostPosted: Thu May 29, 2014 9:40 pm    Post subject: Reply with quote

for some reason duration was going to the right address but it was putting a 0 in the float value instead of pointing to the address. Duration of the spell is 15 float, using your script it made the spells duration 0.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Thu May 29, 2014 11:24 pm    Post subject: Reply with quote

There's a level of indirection we're not sure about from the context of your post. You should show us screenshots containing a working address and also containing the address you've found and the alterations (how exactly you're adding 15, etc) to make it work.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Fri May 30, 2014 12:25 am    Post subject: Reply with quote

Ojji wrote:
Duration of the spell is 15 float, using your script it made the spells duration 0.
Ah, that's because of the "dd 0" line (it was in your original script so I thought you wanted this effect). You can remove this line if you don't want to overwrite duration when activating the script.

Explanation:
Code:
IonizedBolt+54: //goes to IonizedBolt+54
duration:       //puts "duration" here at IonizedBolt+54
dd 0            //writes 0 here over 4 bytes.
Note: dd alone writes 4 byte integers but it turns out 0 as integer is also 0 as float. However if you wanted to set the duration to 999.9 you'd have to write "dd (float)999.9".
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Fri May 30, 2014 2:28 am    Post subject: Reply with quote

whoops, I missed that. Good call, Gniarf.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Fri May 30, 2014 4:54 pm    Post subject: Reply with quote

@justa_dude: I have no glory there, it was a small script and "I" (well, sort of) wrote it yesterday.
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
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