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 


for unicode string Compare

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

Joined: 09 Feb 2021
Posts: 76

PostPosted: Fri Sep 09, 2022 10:34 am    Post subject: for unicode string Compare Reply with quote

alloc(stin,Cool
alloc(gravity,Cool
registersymbol(stin)
registersymbol(gravity)

stin:
dw 'DEFAULT_GRAVITY_MAXVEL', 0

newmem:
{$luacode cpst=stin addin=rsi gravity=scout}
srsg = readString(readPointer(addin+0x10) +0x14,64,true)

if srsg == cpst then
scout = addin
end
------------------------
After many tries it can be compiled,Although it is wrong。
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Fri Sep 09, 2022 12:14 pm    Post subject: Reply with quote

scout is undefined
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Sep 09, 2022 12:27 pm    Post subject: Reply with quote

the luacode line only supports localname=register notations, no localname=symbol
_________________
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
etioplmld
Advanced Cheater
Reputation: 0

Joined: 09 Feb 2021
Posts: 76

PostPosted: Fri Sep 09, 2022 8:38 pm    Post subject: Reply with quote

alloc something cant use in {$luacode}so try Another way to export a pointer

start address :getAddress('gamename.exe')
end address :
getAddress('gamename.exe')+getModuleSize('gamename.exe')

san for codecaves
get a address 13F33AD70

more errors

Code:

alloc(stin,8)
registersymbol(stin)
fullacces(13F33AD70,8)

stin:
dw 'DEFAULT_GRAVITY_MAXVEL', 0

newmem:
{$luacode cpst=stin addin=rsi }
srsg = readString(readPointer(addin+0x10)+0x14,64,true) //error

if srsg == cpst then
writeQword(13F33AD70,addin) //error
end
{$asm}
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Sat Sep 10, 2022 12:10 am    Post subject: Reply with quote

like Dark Byte said, luacode doesn't define symbols or memory allocation, only registers
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 Lua Scripting 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