Android Permission denied, always failure LOAD save file
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- dyrarendy
- Regular
- Posts: 59
- Joined: Wed Apr 02, 2014 12:26 pm
- Projects: Visual Novel Dating Sims Masa SMA
- Location: Indonesia, Cimahi
- Contact:
Android Permission denied, always failure LOAD save file
All permission are setting enabled, and game are saved successfully.
but after quit and restart the game, we cant LOAD our save files. All savefiles.
I had been upload my VN to googleplay, and reach 1000+ downloaded from there. And thats a problems...
all of them cant load save games.. Oh.. whats wrong is happened...
I had been rebuild, repackaging, and create new new apk, but still, cant LOAD with the same method. What should i do ?
(T-T) .. they starts complaining.
U can see from image below :
but after quit and restart the game, we cant LOAD our save files. All savefiles.
I had been upload my VN to googleplay, and reach 1000+ downloaded from there. And thats a problems...
all of them cant load save games.. Oh.. whats wrong is happened...
I had been rebuild, repackaging, and create new new apk, but still, cant LOAD with the same method. What should i do ?
(T-T) .. they starts complaining.
U can see from image below :
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
Can you give me the googe play link? I have a rooted phone, so maybe I can figure this out.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- dyrarendy
- Regular
- Posts: 59
- Joined: Wed Apr 02, 2014 12:26 pm
- Projects: Visual Novel Dating Sims Masa SMA
- Location: Indonesia, Cimahi
- Contact:
Re: Android Permission denied, always failure LOAD save file
here sir :PyTom wrote:Can you give me the googe play link? I have a rooted phone, so maybe I can figure this out.
Google Play
Oh, i used my native language in my vn.
Lanjutkan = Load
Simpan = Save
Mulai = Start
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
I can't repeat this on my device, when I try it, it works. Can you stick this in the game, and tell me the result:
Somewhere:
Right after label start:
This might help me figure out what's going on. Thanks!
Somewhere:
Code: Select all
init python:
import os
try:
stat_test = os.stat("/data/data/com.novelvisual.indonesiadatingsimsmasamasa/files/saves/1-1-LT1.save"
except:
stat_test = "Couldn't stat file."
Code: Select all
"[stat_test]"
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- dyrarendy
- Regular
- Posts: 59
- Joined: Wed Apr 02, 2014 12:26 pm
- Projects: Visual Novel Dating Sims Masa SMA
- Location: Indonesia, Cimahi
- Contact:
Re: Android Permission denied, always failure LOAD save file
is the Load system working properly sir?"I can't repeat this on my device, when I try it, it works."
The results is always : "Couldn't stat file."
- SONTSE
- Regular
- Posts: 98
- Joined: Sun Nov 24, 2013 10:49 pm
- Completed: 11 VN's so far
- Discord: jkx0282_10798
- Contact:
Re: Android Permission denied, always failure LOAD save file
i'm gonna subscribe to this, 'cuz of same problem =3.
in my case the savefiles works normally until exit program. then they are still reachable if i "delete all data" in app. prefs
btw: can i force renpy to NOT store any internal data, and load it each time program starts instead?
in my case the savefiles works normally until exit program. then they are still reachable if i "delete all data" in app. prefs
btw: can i force renpy to NOT store any internal data, and load it each time program starts instead?
Last edited by SONTSE on Wed Sep 03, 2014 12:55 pm, edited 1 time in total.
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
Question - are either of your running any sort of security/firewall program?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- SONTSE
- Regular
- Posts: 98
- Joined: Sun Nov 24, 2013 10:49 pm
- Completed: 11 VN's so far
- Discord: jkx0282_10798
- Contact:
Re: Android Permission denied, always failure LOAD save file
the most near to firewall/security program i use is ad blocking program "AdAway". now i will try to disable it and see how it works then
- SONTSE
- Regular
- Posts: 98
- Joined: Sun Nov 24, 2013 10:49 pm
- Completed: 11 VN's so far
- Discord: jkx0282_10798
- Contact:
Re: Android Permission denied, always failure LOAD save file
Just done some research, and assume adaway is not the issue. (app works same whether it enabled or disabled)
but i found interesting details:
- it does save\load properly during first run after clearing data
- it does NOT load saves, made on first run after close\reload app. the slots has datestamps and clickable (click on it causes mentioned error) but does not have a thumbnail
- id DOES save\load properly if all saves made AFTER close\reload app. more to it,
- after clearing data all saves made after reload app. deleted AND saves on first run reappears. they are fully operatable
which make me think renpy uses different folders for saving in first run and every next run.
but i found interesting details:
- it does save\load properly during first run after clearing data
- it does NOT load saves, made on first run after close\reload app. the slots has datestamps and clickable (click on it causes mentioned error) but does not have a thumbnail
- id DOES save\load properly if all saves made AFTER close\reload app. more to it,
- after clearing data all saves made after reload app. deleted AND saves on first run reappears. they are fully operatable
which make me think renpy uses different folders for saving in first run and every next run.
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
Does anyone with this problem have a rooted phone? If so, could you poke around and see if the file exists?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- SONTSE
- Regular
- Posts: 98
- Joined: Sun Nov 24, 2013 10:49 pm
- Completed: 11 VN's so far
- Discord: jkx0282_10798
- Contact:
Re: Android Permission denied, always failure LOAD save file
The file - save file?
if so - in my case - yes it does.
save files are in
/sdcard/android/data/(mygame)/files/saves
on first run and
/data/data/(mygame)/files/saves
on every other run
if so - in my case - yes it does.
save files are in
/sdcard/android/data/(mygame)/files/saves
on first run and
/data/data/(mygame)/files/saves
on every other run
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
Interesting. Let me try to figure out why that is. Thanks everyone.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- dyrarendy
- Regular
- Posts: 59
- Joined: Wed Apr 02, 2014 12:26 pm
- Projects: Visual Novel Dating Sims Masa SMA
- Location: Indonesia, Cimahi
- Contact:
Re: Android Permission denied, always failure LOAD save file
"/data/data/(mygame)/files/saves"
Maybe add :
for default packaging, will help ?
Maybe add :
Code: Select all
android.permission.WRITE_INTERNAL_STORAGE
android.permission.READ_INTERNAL_STORAGE
- Attachments
-
- 46546456.JPG (18.86 KiB) Viewed 2978 times
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android Permission denied, always failure LOAD save file
Unless they added it recently, I don't think that apps need permission to read internal storage.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Ahrefs [Bot]