[Solved]Editing Ren'Py Source on the fly

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
downover
Regular
Posts: 38
Joined: Sun Feb 25, 2024 1:36 am
Contact:

[Solved]Editing Ren'Py Source on the fly

#1 Post by downover »

I'm trying to track down a very strange bug with the Android Downloader. When I run the Downloader through the Ren'Py launcher it works perfectly, but when I run it on an Android device, after downloading all files, it errors out with "Could not verify update signature." I thought a quick way to find out what was happening would be to add some logs to the 00updater.rpy in the Ren'Py install directory.

I added them, but upon re-running the game, my added logs were not appearing in the updater log.

And then, after writing the first part of this post, I realized that the rpyc had likely been created by the 00updater.rpy and not been cleared. After deleting it, my new logs began working. I'll still post this because search didn't find a post with this information, in case others have the same issue.

As a follow-up - my experience in Python (thought admittedly there isn't a huge amount) is that python can detect when a .py has changed and invalidate the .pyc. Am I misremembering? If not, why does that not work for ren'py?

Post Reply

Who is online

Users browsing this forum: Ocelot