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 


Code with Disable...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LykanthricAura
Advanced Cheater
Reputation: 0

Joined: 17 May 2010
Posts: 58
Location: India

PostPosted: Tue Apr 26, 2016 2:26 am    Post subject: Code with Disable... Reply with quote

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
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Tue Apr 26, 2016 3:13 am    Post subject: Re: Code with Disable... Reply with quote

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
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Apr 26, 2016 3:17 am    Post subject: Reply with quote

The allocation itself is unnecessary, not to speak of the nops in the allocated cave Wink

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
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