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 


Encrypting lua from cememo

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Aug 01, 2018 9:43 am    Post subject: Reply with quote

what's the problem? It gives you a string that can be loaded with loadstring that will be equivalent to the function you gave it, ie. function() loadstring(CETrainer.CEMemo1.Lines.Text) end. Running that function will call loadstring and create a function from the current text (if it's valid) but you'd have no access to it since you don't store or call it.

If you want a string version of the function created by loadstring, pass the result of loadstring not your own function.

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Wed Aug 01, 2018 5:42 pm    Post subject: Reply with quote

he is trying to make this https://youtu.be/QgAlkjpJ4-8 (my channel)
but he got error cuz string.dump, u cant put string into it

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Aug 01, 2018 8:39 pm    Post subject: Reply with quote

He's not giving it a string though, he's giving it an anonymous function that would call loadstring. My assumption is that he meant to give it the result of loadstring (which is the function created from the string it's given), but got confused about it taking a function and so wrapped it in an anonymous one.
_________________
https://github.com/FreeER/ has a few CE related repos
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