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 


[Solved] Handle Renamed Executable

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
AntumDeluge
Cheater
Reputation: 0

Joined: 20 Dec 2018
Posts: 48

PostPosted: Fri Apr 19, 2019 6:58 pm    Post subject: [Solved] Handle Renamed Executable Reply with quote

I just realized that Cheat Engine tables do not work on renamed executable processes. Is there no global variable that can be used to represent the main process in the address field & code injection scripts?

-- Edit --
The lua global process stores this info, so I would think there would be a way to expose it in a table address entry.

Also, can lua variables be used in auto assembler ASM code? Example:

Code:
{$lua}
address = process .. '+22FB51'

{$asm}
aobscanmodule(aobTest,process,74 14 DD 40 08)

...

newmem:
  jmp address

...

Or is there a different way to do it?

-- Edit -
Actually, I would probably need to use luaCall?

Code:
aobscanmodule(aobTest,luaCall(process),74 14 DD 40 08)

...

newmem:
  jmp luaCall(address)

...


Would that be correct?

-- Edit --
For table entry addresses, I assume I would need to define a symbol with the value of process, if that is possible.

Solved: Oops, I was making a big mistake. To use lua globals in table memory records & auto assembler scripts, you need to prefix with '$'. So no need to use luaCall at all:

Code:
{$lua}
address = process .. '+22FB51'

{$asm}
aobscanmodule(aobTest,$process,74 14 DD 40 08)

...

newmem:
  jmp $address

...
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri Apr 19, 2019 10:55 pm    Post subject: This post has 1 review(s) Reply with quote

That or this would work as well.
Code:
//...
newmem:
{$lua}
  return 'jmp ' .. process .. '+22FB51'
{$asm}
//...

_________________
Back to top
View user's profile Send private message Visit poster's website
AntumDeluge
Cheater
Reputation: 0

Joined: 20 Dec 2018
Posts: 48

PostPosted: Sat Apr 20, 2019 12:10 am    Post subject: Reply with quote

TheyCallMeTim13 wrote:
That or this would work as well.
Code:
//...
newmem:
{$lua}
  return 'jmp ' .. process .. '+22FB51'
{$asm}
//...

Thank you. Smile
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