Search found 18 matches

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: 270

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: 270

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: 270

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: 270

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: 270

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: 270

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: 319

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: 319

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: 319

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...
by srksrk 68
Mon Jul 22, 2019 4:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Simple question about dialogue
Replies: 6
Views: 450

Re: Simple question about dialogue

Have you already found this?

https://www.renpy.org/doc/html/text.html

There are all the text tags and more explained. It is also possible to define your own tags. If you don't find what you need there, I do not know where else to look...
by srksrk 68
Mon Jul 22, 2019 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: Question on redefining functions in renpy's python modules (e.g. exports.py)
Replies: 0
Views: 320

Question on redefining functions in renpy's python modules (e.g. exports.py)

Hello, since I am relatively new to python/renpy I am wondering if it is safe to modify or redefine coding in the python modules that come with renpy. For example, I want to have a custom say function which is originally defined in exports.py: init 100 python: def my_say(who, what, *args, **kwargs):...
by srksrk 68
Mon Jul 22, 2019 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Skip/ Fast-Forward not stopping at end of game as told
Replies: 6
Views: 538

Re: Skip/ Fast-Forward not stopping at end of game as told

OK with the return statements my idea is ruled out ;) If your calling instance does not accidently call both endings, there must be something else. Do you set the persistent.endings variable outside of this coding? Maybe you should add some debug output which displays the content of some variables w...
by srksrk 68
Mon Jul 22, 2019 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Simple question about dialogue
Replies: 6
Views: 450

Re: Simple question about dialogue

Well, in your second example, sentence two clears out sencence one when displayed, and thereafter sentence three clears sentence two and so on, so you only see one sentence at a time. I do not quite know what you want to achieve. If you want to have all sentences displayed (each after a mouse click ...
by srksrk 68
Mon Jul 22, 2019 8:58 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Skip/ Fast-Forward not stopping at end of game as told
Replies: 6
Views: 538

Re: Skip/ Fast-Forward not stopping at end of game as told

Hi,

I did not look in detail, but do you not call both if branches on first ending (because neither "neutral" nor "honesty" are in persistent.endings)? Then you would append both at the same time, and the second time your game ends, both if's resolve to false.

Just an idea. I am not a renpy guru.
by srksrk 68
Sun Jul 21, 2019 3:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing text (what id "what")
Replies: 4
Views: 424

Re: Changing text (what id "what")

OK, I think I might have found a solution that works out: init 100 python: def say(who, what, *args, **kwargs): """ Copied from exports.py """ what = alter_dialog(who, what) if renpy.config.old_substitutions: # Interpolate variables. what = what % renpy.exports.tag_quoting_dict if who is None: who =...