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 


Need help with auto-assembly and code cave

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Jan 18, 2013 12:44 pm    Post subject: Need help with auto-assembly and code cave Reply with quote

I have three parts that I need to create. I am having trouble figuring out how to write the code for the auto-assembly and/or how to create a proper codecave that will do what I need.

I am using a Logitech Rumblepad II controller with Xbox360 controller emulation to play the game. I have found the values for the two controller buttons that I want to use for the cheat, and realize that injecting code is probably the way to go...I just don't know how to properly do it. When I try to set up an auto-assembly script, I keep getting errors. Every example that I find online does not fully explain what I should be doing.

The first part of the cheat that I need to create will enable/disable the cheat by freezing a value and nop'ing 5 lines of code (and vice verca). The second and third part of the cheat will increment and decrement the frozen value when a controller button is pressed.

Can anyone help me with this?

Thanks.

EDIT: I have managed to get the auto-assemble injection to enable the change, but I cannot seen to disable the cheat and return the code to its original form.

Where am I going wrong (I receive the message, not all instructions could be injected):
Code:

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

originalcode:
movss [eax+34],xmm0

newmem:
nop
nop
nop
nop
nop

exit:
jmp returnhere

"FGUY.exe"+103535:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)

"FGUY.exe"+103535:
movss [eax+34],xmm0
Back to top
View user's profile Send private message
ablonevn
Advanced Cheater
Reputation: 1

Joined: 02 Oct 2011
Posts: 59

PostPosted: Sat Jan 19, 2013 4:58 am    Post subject: Re: Need help with auto-assembly and code cave Reply with quote

GNIREENIGNE wrote:
I have three parts that I need to create. I am having trouble figuring out how to write the code for the auto-assembly and/or how to create a proper codecave that will do what I need.

I am using a Logitech Rumblepad II controller with Xbox360 controller emulation to play the game. I have found the values for the two controller buttons that I want to use for the cheat, and realize that injecting code is probably the way to go...I just don't know how to properly do it. When I try to set up an auto-assembly script, I keep getting errors. Every example that I find online does not fully explain what I should be doing.

The first part of the cheat that I need to create will enable/disable the cheat by freezing a value and nop'ing 5 lines of code (and vice verca). The second and third part of the cheat will increment and decrement the frozen value when a controller button is pressed.

Can anyone help me with this?

Thanks.

EDIT: I have managed to get the auto-assemble injection to enable the change, but I cannot seen to disable the cheat and return the code to its original form.

Where am I going wrong (I receive the message, not all instructions could be injected):
Code:

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

originalcode:
movss [eax+34],xmm0

newmem:
nop
nop
nop
nop
nop

exit:
jmp returnhere

"FGUY.exe"+103535:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)

"FGUY.exe"+103535:
movss [eax+34],xmm0

you had put wrong position of originalcode, ce can not uderstand what is is, just because it not belong to any addresss. just create another autoasm, if you wish to disable originalcode then comment out instruction bellow it.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jan 19, 2013 11:18 am    Post subject: Reply with quote

Thanks. I forgot to reply to this thread...but another member already helped me with this in another thread.
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 Lua Scripting 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