Page 1 of 1

[Solved]Editing Ren'Py Source on the fly

Posted: Fri Mar 01, 2024 6:28 pm
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?