I'm continuing to struggle with the Downloader for Large Games on Mobile. The 8.3.0 nightly fixed most of my issues, but I'm having an issue now where the game will download all 7 GB of my update, then restart and re-download 5 files (3 changed, 2 new). This process repeats and the downloaded game never loads.
Code: Select all
254 files are unchanged.
5 files are new/changed.
Created a plan with 7 entries.
changed game/cache/bytecode-39.rpyb
changed game/cache/py3analysis.rpyb
changed game/cache/screens.rpyb
new update/current.json
new update/key.pem
It's been pretty hard to diagnose, since the log for 00updater.rpy writes to a private folder and doesn't broadcast to logcat. I changed the logger to write to update_log.txt next to log.txt, and changed it to append instead of write mode. The logs I've attached are both from the same session and represent one session which repeats the download cycle 2 times.
Code: Select all
Old:
# The logfile that update errors are written to.
try:
self.log = open(os.path.join(self.updatedir, "log.txt"), "w")
Code: Select all
New:
# The logfile that update errors are written to.
try:
self.log = open(os.path.join(os.environ["ANDROID_PUBLIC"], "update_log.txt"), "a")
I'm having trouble finding exactly what is happening. In my sample project, which works fine, after the download completes, I never even see the downloader game - the downloaded game launches immediately instead. Where is the code responsible for that, so I can try to figure out what's going wrong? I'm going through and adding logging to 00updater.rpy in an attempt to figure it out.