| View previous topic :: View next topic |
| Author |
Message |
Ojji Newbie cheater
Reputation: 0
Joined: 22 Jun 2010 Posts: 16
|
Posted: Thu May 29, 2014 12:24 am Post subject: Help with aobscan and offsets. |
|
|
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Thu May 29, 2014 1:33 am Post subject: Re: Help with aobscan and offsets. |
|
|
| 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 |
|
 |
Ojji Newbie cheater
Reputation: 0
Joined: 22 Jun 2010 Posts: 16
|
Posted: Thu May 29, 2014 8:58 pm Post subject: |
|
|
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Thu May 29, 2014 9:05 pm Post subject: |
|
|
| 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 |
|
 |
Ojji Newbie cheater
Reputation: 0
Joined: 22 Jun 2010 Posts: 16
|
Posted: Thu May 29, 2014 9:40 pm Post subject: |
|
|
| 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 |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Thu May 29, 2014 11:24 pm Post subject: |
|
|
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Fri May 30, 2014 12:25 am Post subject: |
|
|
| 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 |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Fri May 30, 2014 2:28 am Post subject: |
|
|
whoops, I missed that. Good call, Gniarf.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on... |
|
| Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Fri May 30, 2014 4:54 pm Post subject: |
|
|
@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 |
|
 |
|