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 


Quick question about the dollar sign

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Hexist
Newbie cheater
Reputation: 0

Joined: 07 Dec 2021
Posts: 10

PostPosted: Fri Dec 29, 2023 5:09 pm    Post subject: Quick question about the dollar sign Reply with quote

In the case of this script what does the dollar signs ($) mean when we put them before "process", ""addressOfCopy" etc. How does the Cheat Engine auto assembler interpret this and what is the difference if i were to use them without the dollar sign ?

Code:
{$lua}
if addressOfCopy==nil then
   addressOfCopy=copyMemory(getAddress(process),getModuleSize(process))
end
{$asm}


alloc(newmem3,2048,"gtutorial-x86_64.exe"+38E8F)
alloc(addressThatHoldsTheModuleBase,8,"gtutorial-x86_64.exe"+38E8F)
alloc(addressThatHoldsTheModuleEnd,8,"gtutorial-x86_64.exe"+38E8F)
alloc(addressThatHoldsTheCopyBase,8,"gtutorial-x86_64.exe"+38E8F)


addressThatHoldsTheModuleBase:
dq $process

addressThatHoldsTheModuleEnd:
dq $process+getModuleSize(process)

addressThatHoldsTheCopyBase:
dq $addressOfCopy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Fri Dec 29, 2023 5:21 pm    Post subject: Reply with quote

the $ sign means that the symbol should be looked up in the lua global variable list

process gets set to the first modulename when you open process and in this specific script addressOfCopy gets set at the start

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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