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 INJECTION] Game Maker, When a value increases/decre...

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

Joined: 19 Dec 2006
Posts: 9

PostPosted: Thu Feb 15, 2007 4:35 am    Post subject: [CODE INJECTION] Game Maker, When a value increases/decre... Reply with quote

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 Wink

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 Razz
Back to top
View user's profile Send private message
Zhero_Cool
How do I cheat?
Reputation: 0

Joined: 21 Jan 2007
Posts: 7

PostPosted: Fri Feb 16, 2007 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Feb 16, 2007 11:29 am    Post subject: Reply with quote

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