 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
xXFedericXx How do I cheat?
Reputation: 0
Joined: 25 Jun 2023 Posts: 1 Location: Italy
|
Posted: Sun Jun 25, 2023 12:43 am Post subject: Help with Injection |
|
|
My very very new to cheat engine and i'm trying to understand how to use injection to increase the money i have in x4 foundation. Now I'll explain what i did so that you can understand better.
1) I found the adress showing the money I have but if I modify it nothing happen in game
2) I right-click and selected "finds out what write to this adress"
3) I sold and buyed some stuff
4) I found the right instruction (I can also see that the right amount of money I have is in rsi as hexadecimal)
5) I clicked "Stop" and also "show disassembler"
6) Tools->auto assemble
7) Template -> framework code
Template-> code injection
this is what it shows:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"X4.exe"+42BE56)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [rbx+00000118],rsi
exit:
jmp returnhere
"X4.exe"+42BE56:
jmp newmem
nop 2
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"X4.exe"+42BE56:
mov [rbx+00000118],rsi
//Alt: db 48 89 B3 18 01 00 00
|
my idea as total beginner who knows nothing about this was to change the rsi value (that i found out is the money i have in hexadecimal) to an amount of money i want, in this situation 10 millions writed in hexadecimal.
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"X4.exe"+42BE56)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov rsi,0000000000989680
originalcode:
mov [rbx+00000118],rsi
exit:
jmp returnhere
"X4.exe"+42BE56:
jmp newmem
nop 2
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"X4.exe"+42BE56:
mov [rbx+00000118],rsi
//Alt: db 48 89 B3 18 01 00 00
|
9) File->assign to current cheat table
10) the script doesn't work
Thank you, I know nothing about this language code I'm trying to understand with what I found on internet
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Jun 25, 2023 9:38 am Post subject: |
|
|
First, you can write it simply as this (instead of hex, you can use decimal):
You should try a smaller number to test, first, in case the game has limits in place. For example:
Then, if that works, change it to something higher.
Once you activate the script, you will need to perform an action in the game that will change the money value, since you are using an instruction that 'writes' in lieu of 'accesses'.
Once you do that, if the money does not change, then you will need to see if there are other instructions that are writing to the money address. If they exist, try temporarily NOP'ing them to see if the cheat works.
It could also be that you have not found the correct address that handles the actual money value, or, that the money value is server-sided (if the game has online components).
|
|
| Back to top |
|
 |
|
|
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
|
|