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 


Problem when changing integers with aob injection.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
The Dab
Cheater
Reputation: 0

Joined: 22 May 2017
Posts: 33

PostPosted: Sun Jun 25, 2017 12:21 pm    Post subject: Problem when changing integers with aob injection. Reply with quote

Hello, I am trying to change the health value of myself when this script is enabled. However, whenever I enable it, it changes the value to something completely random. Even if I do something like

Code:
mov edi,(int)100


I still get an incredibly high value whenever the script is enabled. This also causes my game to freeze and crash. So to make it short my goal is to change my health value to the exact number specified in the script. I would also like to mention I am for sure using the right address. edi always equals the hex value of the health. My only changes are under "newmem"

Code:
[ENABLE]

aobscanmodule(health,server.dll,89 3E 5F 5E 5D C2 04 00 CC CC CC 8B 81) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:
6EDCC44C:
mov edi,(int)10


code:
  mov [esi],edi
  pop edi
  pop esi
  pop ebp
  jmp return

health:
  jmp newmem
return:
registersymbol(health)

[DISABLE]

health:
  db 89 3E 5F 5E 5D

unregistersymbol(health)
dealloc(newmem)
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Jun 25, 2017 4:41 pm    Post subject: Reply with quote

Code:
 newmem:
[b]6EDCC44C:[/b]
mov edi,(int)10


What is this?

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
The Dab
Cheater
Reputation: 0

Joined: 22 May 2017
Posts: 33

PostPosted: Sun Jun 25, 2017 5:01 pm    Post subject: Reply with quote

STN wrote:
Code:
 newmem:
[b]6EDCC44C:[/b]
mov edi,(int)10


What is this?


First of all thank you for replying.

" 6EDCC44C: " Is the address of my players health.


When I change the value to 10 in the script and activate it. It changes the health value to 2721. That random health value is my problem.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Sun Jun 25, 2017 8:04 pm    Post subject: Reply with quote

ehmmm its changes it to something bigger.

it might be binary value. go couple lines above and see if theres xor / and.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
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