Search found 24 matches

by srksrk 68
Tue Feb 23, 2021 7:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Public writable directories on different platforms
Replies: 3
Views: 203

Re: Public writable directories on different platforms

Thanks, will try this out! But since I don't have a Mac, I cannot report back soon I fear...
by srksrk 68
Sat Feb 20, 2021 6:19 am
Forum: Ren'Py Questions and Announcements
Topic: Android 11 and access to android/data folder
Replies: 7
Views: 629

Re: Android 11 and access to android/data folder

To all who are affected as well and still search for a solution: it appears that meanwhile some Android File Managers can overcome this restriction and access/write to the Android/data folder.
by srksrk 68
Sat Feb 20, 2021 5:38 am
Forum: Ren'Py Questions and Announcements
Topic: Public writable directories on different platforms
Replies: 3
Views: 203

Public writable directories on different platforms

Hello, so I am trying to create a file in a folder related to the game, and I am successful under Android and under Windows, and under some Linux installations. But I am having trouble under MacOS and some other Linux environments because config.gamedir seems to be write protected. Is there a genera...
by srksrk 68
Tue Dec 22, 2020 9:25 am
Forum: Ren'Py Questions and Announcements
Topic: Android 11 and access to android/data folder
Replies: 7
Views: 629

Re: Android 11 and access to android/data folder

The thing is, as I understand, that the idea behind putting stuff (mods, saves) into the android/data folder was that this folder was publically accessible. It no longer is, so there should be another option. Also, I am not modding my own game here. I want to install mods to games I did not make. An...
by srksrk 68
Sat Dec 19, 2020 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: Android 11 and access to android/data folder
Replies: 7
Views: 629

Re: Android 11 and access to android/data folder

I am not asking for a way around the restriction to android/data. But it might be an option to make Ren'py look into some other publically accessible folder like some other apps do, e.g. a folder renpy/<game> on the internal memory or sd card. After all, it's not an option to ask a gamer to root his...
by srksrk 68
Thu Dec 17, 2020 8:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Android 11 and access to android/data folder
Replies: 7
Views: 629

Android 11 and access to android/data folder

Hello, until recently I was able to access the android/data folder of Ren'py games without problems using Anrdroid's file manager. I used this to install mods or to access the saves folder. However, Android 11 changed the permissions so that basically no legal access to that folder is possible any m...
by srksrk 68
Wed May 27, 2020 11:56 am
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Re: Image not found in ANDROID_PUBLIC path

OK, I guess I found a solution, or workaround. Or rather an exploit. Seems that on Android, the image in fact must be stored inside the <game>/game directory, and absolute paths do not work even if the image is existing and os.path.isfile confirms it. So the solution (which in my case is no solution...
by srksrk 68
Wed May 27, 2020 5:06 am
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Re: Image not found in ANDROID_PUBLIC path

Well, the first link does not apply because it is about making the APK. I already have an APK, I want to put in a mod. The second link seems to be the same topic. The third one is interesting, but there PyTom mentions that the issue that Android can walk the external memory will be put onto the ToDo...
by srksrk 68
Wed May 27, 2020 4:45 am
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Re: Image not found in ANDROID_PUBLIC path

This would explain the issue. But why does it work in Windows, and why does os.path.isfile not give an error on Android? And to my understanding, this image *is* inside the game's directory, it is just not included in config.searchpath. Which, again, works well on Windows.
by srksrk 68
Wed May 27, 2020 3:16 am
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Re: Image not found in ANDROID_PUBLIC path

As I wrote, the user can basically throw the mod (i.e. a directory structure similar to the unmodded structure found under game/images) into the <game> folder, and the Ren'py _scan_images_directory function walks everything in config.searchpath in a sequence so that the modded images will overrrule ...
by srksrk 68
Tue May 26, 2020 7:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Re: Image not found in ANDROID_PUBLIC path

Well, that's the issue. Init is not a problem since using the images works as expected. They are all found by the _scan_images_directory function, which walks the config.searchpath and looks for images. What does not work is addressing the image directly via the complete path name. This does work on...
by srksrk 68
Tue May 26, 2020 6:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Image not found in ANDROID_PUBLIC path
Replies: 9
Views: 344

Image not found in ANDROID_PUBLIC path

Hello, OK, this is a longer post for a problem that buggs me right now. I try to explain in detail, and I hope you gurus have the patience to read ;) I have this game which works perfectly on Android and on Windows. I have an archive (a directory structure) "alt" containing alternate images for char...
by srksrk 68
Wed Jan 15, 2020 6:30 pm
Forum: Ren'Py Questions and Announcements
Topic: unknown encoding: rot13
Replies: 5
Views: 397

Re: unknown encoding: rot13

OK, tried it and found out that rot13_transform is totally bugged. It contains no less than two typos that make it anything but the rot13 transformation: def rot13_transform(s): ROT13 = { } for i, j in zip("ABCDEFGHIJKLM", "NMOPQRSTUVWYZ"): ROT13[i] = j ROT13[j] = i i = i.lower() j = j.lower() ROT13...
by srksrk 68
Wed Jan 15, 2020 12:22 pm
Forum: Ren'Py Questions and Announcements
Topic: unknown encoding: rot13
Replies: 5
Views: 397

Re: unknown encoding: rot13

Remix wrote:
Wed Jan 15, 2020 12:17 pm
Try changing the

Code: Select all

text = text.encode("rot13")
in the definition to

Code: Select all

text = renpy.translation.generation.rot13_transform(text)
Thanks, will try that!
Note: Rot13 is not in any way unbreakable
Nooooo!

I knew that ;)
by srksrk 68
Wed Jan 15, 2020 6:01 am
Forum: Ren'Py Questions and Announcements
Topic: unknown encoding: rot13
Replies: 5
Views: 397

unknown encoding: rot13

Hello Experts, I am trying to do an unbreakable encryption of a dialog line with the rot13 cypher documented here: https://www.renpy.org/doc/html/custom_text_tags.html#examples However, neither the text tag {rot13} mentioned there, nor using function text.encode("rot13") directly work but give the e...