| View previous topic :: View next topic |
| Author |
Message |
LykanthricAura Advanced Cheater
Reputation: 0
Joined: 17 May 2010 Posts: 58 Location: India
|
Posted: Tue Apr 26, 2016 2:26 am Post subject: Code with Disable... |
|
|
This code won't disable. It enables fine. What am I doing wrong? Sorry. Never used AOB before.
| Code: | [ENABLE]
aobscan(stamina,D9 9E 30 02 00 00 59 5E 5D)
//StardewValley.Farmer::set_Stamina+31:
//D9 9E 30 02 00 00 - fstp dword ptr [esi+00000230]
//0553701F - 59 - pop ecx
//05537020 - 5E - pop esi
//05537021 - 5D - pop ebp
stamina:
db 90 90 90 90 90 90
[DISABLE]
//StardewValley.Farmer::set_Stamina+31:
//fstp dword ptr [esi+00000230]
stamina:
db D9 9E 30 02 00 00
unregistersymbol(stamina) |
|
|
| Back to top |
|
 |
PinPoint Expert Cheater
Reputation: 10
Joined: 07 Apr 2016 Posts: 223 Location: Scotland
|
Posted: Tue Apr 26, 2016 3:13 am Post subject: Re: Code with Disable... |
|
|
| LykanthricAura wrote: | This code won't disable. It enables fine. What am I doing wrong? Sorry. Never used AOB before.
| Code: | [ENABLE]
aobscan(stamina,D9 9E 30 02 00 00 59 5E 5D)
//StardewValley.Farmer::set_Stamina+31:
//D9 9E 30 02 00 00 - fstp dword ptr [esi+00000230]
//0553701F - 59 - pop ecx
//05537020 - 5E - pop esi
//05537021 - 5D - pop ebp
stamina:
db 90 90 90 90 90 90
[DISABLE]
//StardewValley.Farmer::set_Stamina+31:
//fstp dword ptr [esi+00000230]
stamina:
db D9 9E 30 02 00 00
unregistersymbol(stamina) |
|
try this
| Code: |
[ENABLE]
aobscan(stamina,D9 9E 30 02 00 00 59 5E 5D)
registersymbol(stamina)
alloc(newmem,1024)
label(returnhere)
newmem:
db 90 90 90 90 90 90
jmp returnhere
stamina:
jmp newmem
nop
returnhere:
[DISABLE]
stamina:
db D9 9E 30 02 00 00
unregistersymbol(stamina)
dealloc(newmem)
|
Last edited by PinPoint on Tue Apr 26, 2016 3:18 am; edited 1 time in total |
|
| Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Tue Apr 26, 2016 3:17 am Post subject: |
|
|
The allocation itself is unnecessary, not to speak of the nops in the allocated cave
But to the original problem, the DISABLE-part doesn't know "stamina" because you didn't register that as a smybol:
| Code: | [ENABLE]
aobscan(stamina,D9 9E 30 02 00 00 59 5E 5D)
//StardewValley.Farmer::set_Stamina+31:
//D9 9E 30 02 00 00 - fstp dword ptr [esi+00000230]
//0553701F - 59 - pop ecx
//05537020 - 5E - pop esi
//05537021 - 5D - pop ebp
stamina:
db 90 90 90 90 90 90
registersymbol(stamina)
[DISABLE]
//StardewValley.Farmer::set_Stamina+31:
//fstp dword ptr [esi+00000230]
stamina:
db D9 9E 30 02 00 00
unregistersymbol(stamina) |
|
|
| Back to top |
|
 |
|