Isuckatcoding692 How do I cheat? Reputation: 0
Joined: 11 Jan 2019 Posts: 1
|
Posted: Fri Jan 11, 2019 5:45 pm Post subject: Please help, Code does not excute correctly/allocation error |
|
|
Code: |
aobscanmodule(xxx,"xxx.exe",8B 81 00 44 00 00)
stealtheditex(grape,xxx,30)
alloc(newmew9,$1000)
label(codeZ)
label(returnZ)
label(GNVS)
registersymbol(GNVS)
newmew9:
cmp rsi,[player_ptr]
jne codeZ
mov [rcx+00004400],(int)362
mov eax,[rcx+00004400]
jmp returnZ
codeZ:
mov eax,[rcx+00004400]
jmp returnZ
grape:
GNVS:
jmp newmew9
nop
returnZ:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
GNVS:
db 8B 81 00 44 00 00
unregistersymbol(GNVS)
dealloc(newmew9)
|
The code executes in a different part of the memory then I want it to, executes before mov eax,[rcx+00004400] Am I doing something wrong? please help
|
|
LeonBlade How do I cheat? Reputation: 0
Joined: 25 Jan 2019 Posts: 9
|
Posted: Mon Jan 28, 2019 8:50 pm Post subject: |
|
|
Since you're using a plugin it's possible that the issue is here. From the little research I did to answer your question, it seems like stealth edit does quite a bit to the game in order to function. It seems that it copies part of the code and on a memory access exception it then reroutes to your custom code.
To get to the point, it's hard to say exactly what the issue is. My suggestion would be to keep the code exactly the same first and see if it runs still without issue. If the program runs fine with this stealth edit on with the same code then you can assume the problem is with the assembly.
Sorry I cannot be much more help.
|
|