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 


Checkbox to change OpCode

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

Joined: 25 Jun 2009
Posts: 5

PostPosted: Mon Mar 05, 2012 2:14 pm    Post subject: Checkbox to change OpCode Reply with quote

Hello everyone. As you can see from the title, I'm very new to cheat engine. I've tried to follow some tutrials here and there, and I can simply find my values / freeze my values right now. Thank you.

Here is my little issue I would like to learn:
I'v found the opcode that I have to change, which is a JNE. I would like to learn if there is a way to change it by using the tables (simply - activate it) by enabling and disabling the checkbox ?

I want to change it from JNE to JMP.

Thank you.
Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 312

PostPosted: Tue Mar 06, 2012 6:12 am    Post subject: Reply with quote

Using the auto assembler, you can accomplish this.

Example: Assume your JNE you want to change is located at address 00250025

Code:

[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

newmem:
jmp xxxxxxxx // This is the jump you replace it with

originalcode:
jne xxxxxxxx // This is the original code

exit:
jmp returnhere

00250025:
jmp newmem
returnhere:
 
[DISABLE]
dealloc(newmem)
00250025:
jne xxxxxxxx  // This restores the original JNE when you turn the code off
Back to top
View user's profile Send private message
undream
How do I cheat?
Reputation: 0

Joined: 25 Jun 2009
Posts: 5

PostPosted: Tue Mar 06, 2012 9:31 am    Post subject: Reply with quote

Thank you very much.
I will try this immediately !

One question: when I do the auto-assambler in the memory view window, does it auto-create the checkbox (because of the ENABLE and DISABLE tags ?)
Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 312

PostPosted: Tue Mar 06, 2012 10:09 am    Post subject: Reply with quote

Select the opcode you wish to change in the disassembler

Tools->Auto Assemble->Template->Cheat table Code Framework
Then
Template -> Code injection

After you've completed modifying your script:

File->Assign to current cheat table
Back to top
View user's profile Send private message
undream
How do I cheat?
Reputation: 0

Joined: 25 Jun 2009
Posts: 5

PostPosted: Wed Mar 07, 2012 2:46 pm    Post subject: Reply with quote

I finally had the chance to try it out.... for some reason it doesn't matter what I type for the JMP, it jumps to something like 51100000, why can this be ?
Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 312

PostPosted: Wed Mar 07, 2012 4:12 pm    Post subject: Reply with quote

We're not psychic, so why not post what you've made.
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