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 


my Auto-Assemble code not is perfect

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
HotBitz80
How do I cheat?
Reputation: 0

Joined: 19 Nov 2016
Posts: 2

PostPosted: Sat Jan 07, 2017 5:06 am    Post subject: my Auto-Assemble code not is perfect Reply with quote

My code work for enable 100%, but when disable, the code make wrong changes writting next instruction that no want, and not disable the cheat. I no know that is wrong. Can help?

[ENABLE]
alloc(itemsmodscript,2048)
label(itemsmod)
registersymbol(modscan)
aobscan(modscan,8B 45 08 8B 48 0C 2B 4D 0C 89 48 0C B8 01 00 00 00)

modscan+6:
itemsmod:
nop
nop
nop

[DISABLE]
//originalcode:
//mov eax,[ebp+08]
//mov ecx,[eax+0C]
modscan+6:
sub ecx,[ebp+0C]
//mov [eax+0C],ecx
//mov eax,00000001
unregistersymbol(modscan)
dealloc(itemsmodscript)

Embarassed
modscan+6, in disable is correct? or already is +6 and i no need, only put modscan ?
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Sat Jan 07, 2017 5:58 am    Post subject: Reply with quote

modscan+6 in disable is correct (it refers to the same address in disable as in enable which i think is what you are asking.

It's also weird that you alloc space that you do not use, but it shouldn't affect the success of your script either way.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sat Jan 07, 2017 6:53 am    Post subject: Reply with quote

[ENABLE]
aobscan(modscan,8B 45 08 8B 48 0C 2B 4D 0C 89 48 0C B8 01 00 00 00)
registersymbol(modscan)

modscan+6:
nop
nop
nop

[DISABLE]
modscan+6:
sub ecx,[ebp+0C]

unregistersymbol(modscan)

Better

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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