- 0
How to write lua script to find & copy game status bin to storage /download
-
Similar Content
-
- 5 replies
- 1,230 views
-
- 16 answers
- 4,594 views
-
- 65 answers
- 80,929 views
-
- 1 reply
- 4,152 views
-
- 6 answers
- 2,745 views
-
Question
Jamieq
This is script I wrote but won't read/ open file , need help
local file = io.open("/storage/emulated/0/data/data/files/game_status.bin", "wb")
if file then
local status = gg.getResults(gg.getResultsCount())
for i, v in ipairs(status) do
file:write(string.format("%s\n", v.value))
end
file:close()
gg.toast("Game status saved to Download folder.")
else
gg.toast("Failed to open file for writing.")
end
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now