 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
MrMoo How do I cheat?
Reputation: 0
Joined: 19 Dec 2006 Posts: 9
|
Posted: Thu Feb 15, 2007 4:35 am Post subject: [CODE INJECTION] Game Maker, When a value increases/decre... |
|
|
Ok here is what I need help with.
I run a Game Maker game (Mark Overmars Game Maker).
I search for the health value (100).
I open "Find out what writes to this address."
Lose 10 HP.
It finds the address.
I open Show Disassembler.
I press CTRL + A and open Auto Assemble.
Then I use code injection and inject the address (and what it does) into the Auto Assembler and I get this.
| Code: | alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
00402A74:
jmp newmem
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
std
repe movsd
mov ecx,eax
exit:
jmp returnhere
|
Now what does
std,
repe movsd,
mov,
Refer to?
Just incase:
| Code: | ECX = 00000003
EAX = 00000010 |
Also I would love it if you could send me all the script terms, like:
add
dec
std
mov and etc.
Or point me to a topic that tells them or whatever
Also if you are wondering why I do not just freeze the health value, well I really just want to learn the basics of auto assembly so... yeah
|
|
| Back to top |
|
 |
Zhero_Cool How do I cheat?
Reputation: 0
Joined: 21 Jan 2007 Posts: 7
|
Posted: Fri Feb 16, 2007 9:56 am Post subject: |
|
|
Hello,
This is a really good Beginners Assembly Tut (tutorial).
http : / / forum . cheatengine . org / viewtopic . php ?t=31434&highlight=asm+tut
(I can't post URL's yet so yeah thats why its all broken up XD)
That is really good for beginning. If you really want a full list of all the ASM (assembly) OPCodes (operation codes) just google it or use this one... its a lil more advanced ASM Tut
http : // www . xs4all . nl / ~smit / asm01001 . htm
I hope this helps you, and good luck in the future.
Peace,
Zhero
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Feb 16, 2007 11:29 am Post subject: |
|
|
Hey if you look somewheres do you see a dec instuction?
Anyways
repe = repeat
movsd = IF statment
add = adds values
dec = decreases value by 1
mov = moves a value into another
Example Used in Your Injection:
mov ecx,eax
eax = 10
ecx = 3
This moves 10 in to 3
If you cant see a dec instruction try doing this:
Because EAX is 10 and thats the health lost.
You can inject EAX to 0 and never lose Health.
| Code: |
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
00402A74:
jmp newmem
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov eax,0 // <--- This should make it stop losing life.
originalcode:
std
repe movsd
mov ecx,eax
exit:
jmp returnhere
|
Here is a good site to look at to understand more instructions:
http://moonbase.wwc.edu/~aabyan/Unix/x86.html
|
|
| Back to top |
|
 |
|
|
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
|
|