Tool VN Ren'Py Porting Ren'Py games to Android

5.00 star(s) 1 Vote

MrFluffums

Member
Dec 23, 2024
123
310
I'll let you know
OK, I finally found what the issue was.
For one, un.rpy apparently can create a folder /game in C:\vntools\renpysdk, which will stop renpy .

This was solved by deleting C:\vntools\renpysdk\game.

Next issue which prevented android from starting was that the rpy files weren't packed to Android (build.classify('**.rpy', None)), plus the rpyc were set to be archived due to the rules in option.rpy. I used an emulator + to read the logs of the emulator, and found it could not find start.rpy.

I removed all build.classify and build.archive lines from options.rpy, and after that I could build an APK that works.

I also force recompiled the project, but I don't think that was necessary.

Could you try editing option.rpy and see if you can get it to work?
 
  • Like
Reactions: Nobile1701

Nobile1701

Newbie
May 10, 2020
96
62
OK, I finally found what the issue was.
For one, un.rpy apparently can create a folder /game in C:\vntools\renpysdk, which will stop renpy .

This was solved by deleting C:\vntools\renpysdk\game.

Next issue which prevented android from starting was that the rpy files weren't packed to Android (build.classify('**.rpy', None)), plus the rpyc were set to be archived due to the rules in option.rpy. I used an emulator + to read the logs of the emulator, and found it could not find start.rpy.

I removed all build.classify and build.archive lines from options.rpy, and after that I could build an APK that works.

I also force recompiled the project, but I don't think that was necessary.

Could you try editing option.rpy and see if you can get it to work?
thing is how can i edit options.rpy if after compressing the game, the files become .rpyc. i have to use un.rpy still?
 

MrFluffums

Member
Dec 23, 2024
123
310
Exactly.

You start off with RPA (an archive format), the compressor automatically unpacks the archive, revealing the rpyc files.

You unrenpy these, so you end up with rpy files. However, if you try to build an android APK at this point, the settings in options.rpy instructs RenPy to ignore rpy files when building distributions, what apparently fucks with android - meaning neither rpy nor rpyc files ended up in the APK, which is why it crashed - it simply had no code to execute.

But if you edit options.rpy so it won't ignore rpy files anymore (by deleting all build.classify files), it'll now work.
 
5.00 star(s) 1 Vote