- 0
How to write lua script to find & copy game status bin to storage /download
-
Similar Content
-
- 5 replies
- 1,283 views
-
- 1 answer
- 250 views
-
- 16 answers
- 4,691 views
-
- 65 answers
- 81,660 views
-
- 1 reply
- 4,619 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
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