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 


lea issue

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Tue Oct 18, 2016 4:12 pm    Post subject: lea issue Reply with quote

Code:
[ENABLE]

aobscanmodule(aobSkill,DOOMx64.exe,01 91 C0 3B 05 00) // should be unique
alloc(newmem,$1000,"DOOMx64.exe"+18CE1BB4)

label(code)
label(return)

globalalloc(Skill_ptr,8)
registersymbol(Skill_ptr)

newmem:

code:
  push rax
  lea rax,[rcx+00053BC0]
  mov [Skill_ptr],rax
  pop rax
  add [rcx+00053BC0],edx
  jmp return

aobSkill:
  jmp newmem
  nop
return:
registersymbol(aobSkill)

[DISABLE]

aobSkill:
  db 01 91 C0 3B 05 00

unregistersymbol(aobSkill)
unregistersymbol(Skill_ptr)
dealloc(newmem)



Does not work for some reason. saying Skill_ptr was suppose to be added to symbolist. why did I forgot something ?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Oct 18, 2016 4:38 pm    Post subject: Reply with quote

Code:
[ENABLE]

aobscanmodule(aobSkill,DOOMx64.exe,01 91 C0 3B 05 00) // should be unique
alloc(newmem,$1000,"DOOMx64.exe"+18CE1BB4)

label(code)
label(return)

label(Skill_ptr)
registersymbol(Skill_ptr)

newmem:

code:
  push rax
  lea rax,[rcx+00053BC0]
  mov [Skill_ptr],rax
  pop rax
  add [rcx+00053BC0],edx
  jmp return
 
Skill_ptr:
  dq 0

aobSkill:
  jmp newmem
  nop
return:
registersymbol(aobSkill)

[DISABLE]

aobSkill:
  db 01 91 C0 3B 05 00

unregistersymbol(aobSkill)
unregistersymbol(Skill_ptr)
dealloc(newmem)
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Wed Oct 19, 2016 1:12 am    Post subject: Reply with quote

Thx but I figured out I just had to do jmp newmem to jmp code, and added a new pointer with this Address: "Skill_ptr"
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Wed Oct 19, 2016 3:51 am    Post subject: Reply with quote

jmp newmem to jmp code has nothing to do with this error. You didn't define your symbol anywhere, that was the issue (look at what METHOS did differently and why - the dq bit is also important)
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Wed Oct 19, 2016 4:39 am    Post subject: Reply with quote

Yea I figured it out that the jmp "newmem" has nothing to do, I fixed it tho not using dq tho thank you anyways STN and METHOS.
Back to top
View user's profile Send private message
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