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 


saving data in table

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Thu May 30, 2019 7:36 am    Post subject: saving data in table Reply with quote

how to output a log.txt file to the table stream?
not to the normal files

_________________
hi
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1526

PostPosted: Thu May 30, 2019 10:26 am    Post subject: Reply with quote

If you add to the table flow,
To use it, I think you should save it on the table.
What are you gonna use this for?
Perhaps more different ideas can be produced.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Thu May 30, 2019 10:31 am    Post subject: Reply with quote

my friend asked me this and how do i do that in lua code
_________________
hi
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Thu May 30, 2019 11:02 am    Post subject: Reply with quote

Use the stream class's write method and stringToByteTable. See celua.txt for documentation.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Thu May 30, 2019 11:53 am    Post subject: Re: saving data in table Reply with quote

exohaxor wrote:
how to output a log.txt file to the table stream?
not to the normal files


If I am not misunderstanding what you want and according to @Parkour suggestion, here a sample:

Code:
data = 'E:\\HelloWord.txt'
local dataStream = createMemoryStream()
local content = dataStream.loadFromFile(data)
local bt = stringToByteTable('content')

for i, v in ipairs(bt) do
 print(i - 1, string.format('%02X', v))
end

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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