| View previous topic :: View next topic |
| Author |
Message |
LessFeedNoProfit How do I cheat?
Reputation: 0
Joined: 13 Apr 2020 Posts: 3
|
Posted: Mon Apr 13, 2020 4:59 am Post subject: Why is this injection poisoning other game stats? |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Apr 13, 2020 5:57 am Post subject: |
|
|
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 |
|
 |
LessFeedNoProfit How do I cheat?
Reputation: 0
Joined: 13 Apr 2020 Posts: 3
|
Posted: Mon Apr 13, 2020 6:57 am Post subject: progress |
|
|
@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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Apr 13, 2020 7:14 am Post subject: Re: progress |
|
|
| 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 |
|
 |
LessFeedNoProfit How do I cheat?
Reputation: 0
Joined: 13 Apr 2020 Posts: 3
|
Posted: Mon Apr 13, 2020 7:28 am Post subject: name of the game |
|
|
@mgr.inz.Player
it's Wolcen, offline campaign. its using CryEngineSDK.
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
|
| Back to top |
|
 |
|