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 question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Smanettone83
Expert Cheater
Reputation: 3

Joined: 21 Feb 2011
Posts: 146
Location: Italia

PostPosted: Sun Apr 08, 2012 8:25 am    Post subject: Code Injection question Reply with quote

i've found an address for apply super speed on my Player when he walks...
The code that writes on this address is

Code:

mov [esi+504], eax

When player doesn't mouve value is 0 and when he walks value is 1. I tried to use
Code:
 
mov [esi+504], 3 //(or 3 , 4, 5, etc... for increase speed)

it works...speed is increased but player walks to infinity without stop itself.
I've found with dissector the real offeset of my speed.. it is on 506 offeset. it's a BYTE value and if i try to set max value (255) is very faster!

i've tried to restore original code with this but not works....

Code:

mov byte ptr [esi+506], FF //255
mov [esi+504], eax

where i'm wrong?

_________________
Back to top
View user's profile Send private message MSN Messenger
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Wed Apr 18, 2012 2:49 pm    Post subject: Reply with quote

well it's very easy.
if you set [esi+504] to 0, the player stops right ?
when you press "w" eax is set to 1 when you don't eax is set to 0, or not ?

you have to compare eax with 0 if it is not equal then proceed to code that writes x speed .. your example 3 ... if eax is equal to 0 just set 0 to [esi+504] or simply do original code.

I'll help you with the code:
Code:
label(set_my_val)
label(speed)
registersymbol(speed)
pushfd //save flags
cmp eax,0
jne set_my_val
popfd
mov [esi+504],eax
jmp exit:
set_my_val:
popfd
mov [esi+504],speed
jmp exit:
speed:
db 00

[DISABLE]
unregistersymbol(speed)


enable the script in the table and add the address "speed" as byte
now set the value that you want...
let me know:)

_________________
... Fresco
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