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 


Please help, Code does not excute correctly/allocation error

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

Joined: 11 Jan 2019
Posts: 1

PostPosted: Fri Jan 11, 2019 5:45 pm    Post subject: Please help, Code does not excute correctly/allocation error Reply with quote

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
Back to top
View user's profile Send private message
LeonBlade
How do I cheat?
Reputation: 0

Joined: 25 Jan 2019
Posts: 9

PostPosted: Mon Jan 28, 2019 8:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
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