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 


Why is this injection poisoning other game stats?

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

Joined: 13 Apr 2020
Posts: 3

PostPosted: Mon Apr 13, 2020 4:59 am    Post subject: Why is this injection poisoning other game stats? Reply with quote

I have pinned down an address representing HP as hex, the opcodes modifying this address looks like this:

Code:
mov [rdi+08],rax
mov rax, rdi


player health is being written into RAX and then moved into [rbx+08].
current health looks like this: RAX=4096EC0000000000
it's a 64-bit representation of decimal value 1467.0
let's say I want to keep my health at 1467.0, by code injection(normal or AOB), if I place this code before original code above:

Code:
 newmem:
  mov rax, 40876F0000000000  // some random hp I want (749.875)
code:
  mov [rdi+08],rax
  mov rax,rdi
  jmp return


somehow the hp value I supplied starts to poison many other values like mana / time / enemy hp /etc. all showing 749.875. and it won't took long before game hangs.


What could be the possible reason for this? is the double format conversion causing great lag over some internal loop? what's the correct way to move this hexadecimal value into rax?


Last edited by LessFeedNoProfit on Mon Apr 13, 2020 7:12 am; edited 3 times in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Apr 13, 2020 5:57 am    Post subject: Reply with quote

mov [rbx+08],rax

Is this shared with other data? When you right click this instruction in MemoryViewer disassembler and choose "find out what addresses ...." how many addresses it access? More than one = shared.

_________________
Back to top
View user's profile Send private message MSN Messenger
LessFeedNoProfit
How do I cheat?
Reputation: 0

Joined: 13 Apr 2020
Posts: 3

PostPosted: Mon Apr 13, 2020 6:57 am    Post subject: progress Reply with quote

@mgr.inz.Player
by clicking "find out what addresses this instruction accesses" on the opcode I am injecting on. I've got a list of nearly 20 addresses constantly being changed. is this what you refered to as "shared"? what's the implication?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Apr 13, 2020 7:14 am    Post subject: Re: progress Reply with quote

LessFeedNoProfit wrote:
I've got a list of nearly 20 addresses constantly being changed. is this what you refered to as "shared"? what's the implication?


this:
LessFeedNoProfit wrote:
starts to poison many other values like rage/mana time, enemy hp bar...etc.

Plus application crash.

Read whole thread:
https://forum.cheatengine.org/viewtopic.php?p=5581197#5581197


Also, if it is not a multiplayer game, you can give a name, or at least the game engine. Some games which uses Lua or other scripting languages aren't that easy.

_________________
Back to top
View user's profile Send private message MSN Messenger
LessFeedNoProfit
How do I cheat?
Reputation: 0

Joined: 13 Apr 2020
Posts: 3

PostPosted: Mon Apr 13, 2020 7:28 am    Post subject: name of the game Reply with quote

@mgr.inz.Player
it's Wolcen, offline campaign. its using CryEngineSDK.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Apr 13, 2020 8:12 am    Post subject: Re: name of the game Reply with quote

LessFeedNoProfit wrote:
@mgr.inz.Player
it's Wolcen, offline campaign. its using CryEngineSDK.

Newer game. In that case you have to do more than what's in tut I posted earlier (simple register, structure or stack compare), you can still give it try...

Anyway, I would recommend backtracking method. There are some fresh tutorials on https://fearlessrevolution.com/ (note: I didn't read them so I cannot recommend any)
https://fearlessrevolution.com/viewforum.php?f=10
https://fearlessrevolution.com/viewforum.php?f=11
https://fearlessrevolution.com/viewforum.php?f=15

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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