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 


AutoAttachList Save and Load questions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jan 01, 2018 12:42 pm    Post subject: Reply with quote

Have you tried Lua's File IO

http://www.lua.org/pil/21.2.html

https://www.tutorialspoint.com/lua/lua_file_io.htm

I could also be your anti-virus software blocking the executable. Say if it doesn't like the way you check for hot keys, it might think it's some kind of key logger.

_________________
Back to top
View user's profile Send private message Visit poster's website
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jan 01, 2018 4:27 pm    Post subject: Reply with quote

Try to see if there is an error.
Code:
-- Open file for reading
file, err = io.open(FILENAME,'r')

-- check for errors in opening file.
if file ~= nil and err then
   print(err)
end
-- Catch nonexisting file
if file ~= nil then
-- Read file line by line, append it to aalist and close the filehandle
for line in file:lines() do
  stringlist_add(aalist,line)
end
else
-- Create file if it didn't exist
file = io.open(FILENAME,'w')
file:close()
end

_________________
Back to top
View user's profile Send private message Visit poster's website
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