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.
I think you and I are trying to do the same thing at the same time! I did not run into this issue, but I've found this useful when debugging android updater issues:
You can find the log.txt in the game's files. For me, I had to adb shell into the device, then navigate to storage/emulated/0/android/<bundle id>/files. From there you can cat the log.txt (and errors.txt/traceback.txt if there is one).
Here's an example of how I do it from the windows command line, assuming your device is listed in `adb devices`:
I have tried creating a new game, using renpy version 8.2.1. Renpy creates the .aab file and I upload this file to googleplay. When I test it on my phone it still stays on the "Downloading assets..." screen.
I have windows 10 and I have installed OpenJDK21U-jdk_x64_windows_hotspot_21.0.2_13
2024-03-07 00:17:24 UTC
Windows-10-10.0.19041
Ren'Py 8.2.1.24030407
Early init took 0.20s
Loading error handling took 0.11s
Loading script took 3.15s
Loading save slot metadata took 0.05s
Loading persistent took 0.00s
Set script version to: None (alternate path)
- Init at launcher/game/android.rpyc:24 took 0.30556 s.
- Init at launcher/game/installer.rpyc:6 took 0.34519 s.
Running init code took 1.50s
Loading analysis data took 0.04s
Analyze and compile ATL took 0.01s
Reloading save slot metadata took 0.03s
Index archives took 0.00s
Backing up script files to 'C:\\Users\\stw\\AppData\\Roaming/RenPy/backups\\renpy-8.2.1-sdk':
Dump and make backups took 0.04s
Cleaning cache took 0.00s
Making clean stores took 0.00s
Initial gc took 0.12s
DPI scale factor: 1.000000
nvdrs: Loaded, about to disable thread optimizations.
nvdrs: Disabled thread optimizations.
Creating interface object took 1.36s
Cleaning stores took 0.00s
Init translation took 0.10s
Build styles took 0.00s
Load screen analysis took 0.00s
Analyze screens took 0.03s
Save screen analysis took 0.05s
Prepare screens took 0.21s
Save pyanalysis. took 0.05s
Save bytecode. took 0.05s
Running _start took 0.00s
Interface start took 0.16s
Initializing gl2 renderer:
primary display bounds: (0, 0, 1920, 1080)
swap interval: 1 frames
Windowed mode.
Vendor: "b'NVIDIA Corporation'"
Renderer: b'GeForce GT 730/PCIe/SSE2'
Version: b'4.6.0 NVIDIA 391.35'
Display Info: None
Screen sizes: virtual=(800, 600) physical=(651, 488) drawable=(651, 488)
Maximum texture size: 4096x4096
Eliminating __pycache__...
I am also 100% blocked on using the updater on android. As soon as I have time off from work I'll make example projects demonstrating the problem. One of my projects starts the downloaded game twice, causing errors anywhere 'default' is used. The other, a much larger project, simply cycles through the download over and over again, each time thinking that 3 files have been modified.
It's really frustrating debugging this because the log file is written to protected storage, so I have to modify Ren'Py to get it to write in an accessible location.
That's good to know, thank you! I'll use that from now on.
Working on this today. I'll set something up in github with both the downloader and the downloaded game as minimal as possible and work up from there until I hit the problems!
* Make sure you're on 8.2.1 or the fix branch, as there have been a lot of fixes to this.
* There's also a known problem with Google Play. Your best bet is to contact @GooglePlayBiz on X, and see if they can fix it.
Supporting creators since 2004 (When was the last time you backed up your game?)
PyTom wrote: ↑Sat Mar 09, 2024 1:13 am
The log comes out over logcat, so you can get access to it that way.
I don't think it does. I'm specifically talking about the logging in 00updater.rpy. I should see either "Verifying with ECDSA." or "Verifying with RSA." and I see neither. I also inserted a log into the start of the download() function and it does not display in ADB.
The only way I've been able to access that log is changing this line:
PyTom wrote: ↑Sat Mar 09, 2024 5:31 pm
A couple things:
* Make sure you're on 8.2.1 or the fix branch, as there have been a lot of fixes to this.
* There's also a known problem with Google Play. Your best bet is to contact @GooglePlayBiz on X, and see if they can fix it.
8.2.2 nightly fixed the issue that I was currently blocked on, but only on an actual android phone, not on an emulated phone - even an emulated version of the same phone!
I'll open a new post on the issue I see in emulator.
I am very interested in knowing how to solve this problem. I am also trying to upload a game to Android and this problem is not letting me (and I have already tried a thousand things), in my case the 8.2.2 nightly patch has not solved the problem, the game continues to show a “download of assets” infinite when I upload the game to Android it downloads it as an internal test.
I am going to provide a little extra information that may help you solve the error: if I make a new project in renpy from 0 and try to upload it to Google, this error also appears. I insist, a new project without any extra information, just the base with the phrase "You have created a new Ren'Py game."
If someone manages to solve it, please share the solution. Thank you.