RAPT - Ren'Py Android Packaging Tool

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#181 Post by PyTom »

You need to make sure the font you're using is included with your game and in the apk. Assuming the file exists in the game directory, try renaming the .apk to .zip and looking inside the assets/ directory to make sure the font is there.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Hseo
Regular
Posts: 38
Joined: Thu Sep 24, 2009 10:42 am
Completed: High School Life:HSL
Deviantart: greeeed
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#182 Post by Hseo »

never mind,
fix it by deleting google play licensing library and google play APK expansion library
and re-download them from Android SDK Manager

Code: Select all

Updating build files.
Resolved location of library project to: D:\renpy_sdk\rapt\android-sdk-r22.6.2\extras\google\play_apk_expansion\downloader_library
Updated project.properties
Updated local.properties
Added file D:\renpy_sdk\rapt\build.xml
Updated file D:\renpy_sdk\rapt\proguard-project.txt




Creating assets directory.

Packaging internal data.

I'm using Ant to build the package.
Buildfile: D:\renpy_sdk\rapt\build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.2
 [checkenv] Installed at D:\renpy_sdk\rapt\android-sdk-r22.6.2

-setup:
     [echo] Project Name: Test_01-alpha
  [gettype] Project Type: Application

-pre-clean:

clean:

BUILD FAILED
D:\renpy_sdk\rapt\android-sdk-r22.6.2\tools\ant\build.xml:460: ../market_licensing resolve to a path with no project.properties file for project D:\renpy_sdk\rapt\android-sdk-r22.6.2\extras\google\play_apk_expansion\downloader_library

Total time: 0 seconds




The build seems to have failed.

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#183 Post by tiya_nofurita »

Hseo : Same problem with you and I deleted google play licensing library and google play APK expansion library, then re-downloaded them again. Successfully build but haven't tried it on my device. I wonder if my Android can recognize .obb file? (totally noob, I use file expansion by the way). Where should I put .apk file and .obb file on my device? Do I have to rename .obb file into the same as .apk file?
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

Hseo
Regular
Posts: 38
Joined: Thu Sep 24, 2009 10:42 am
Completed: High School Life:HSL
Deviantart: greeeed
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#184 Post by Hseo »

tiya_nofurita wrote:Hseo : Same problem with you and I deleted google play licensing library and google play APK expansion library, then re-downloaded them again. Successfully build but haven't tried it on my device. I wonder if my Android can recognize .obb file? (totally noob, I use file expansion by the way). Where should I put .apk file and .obb file on my device? Do I have to rename .obb file into the same as .apk file?
for this you can watch this video for full explaining how to play games with apk and obb files
[youtube]http://www.youtube.com/watch?v=cPaBxSViTYY[/youtube]
+
you can put *.apk and *.obb files anywhere you want
-> for me I just put them in "root -> download"
(I:\download or I:\device_name\download )

also, it look like the game will crush in android if we used

Code: Select all

init python:
        config.rtl = True
though it look like downloading last API version + add simple code will fix it
->>>>>>>downloading API 19 right now

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#185 Post by tiya_nofurita »

Hseo : Thanks for your tips and explanation, but nope, after I followed all the instructions on that video, it's still not functioning. I successfully installed my .apk files but when I run it, it always said "Looking for some resources to download" and then "Download failed because you may not have purchased this app." :?

Edited : But after I upload my .apk and .obb expansion file to Google Play, then download it directly into my Android device, it works just fine. Weird :? Probably still contains some issues though, but I hope not.
Anyone interested to become a beta-tester, maybe?
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

dididarkness
Newbie
Posts: 2
Joined: Sat Apr 26, 2014 9:14 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#186 Post by dididarkness »

hello, I listed these errors :
that I can do?
[dx] ...while parsing Com/android/vending/expansion/downloader/R.class
[dx]
[dx] 6 errors; aborting

BUILD FAILED
C:\Users\Diego\Downloads\Nueva carpeta\Nueva carpeta (2)\renpy-6.17.4-sdk\rapt\android-sdk-r22.6.2\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Users\Diego\Downloads\Nueva carpeta\Nueva carpeta (2)\renpy-6.17.4-sdk\rapt\android-sdk-r22.6.2\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Users\Diego\Downloads\Nueva carpeta\Nueva carpeta (2)\renpy-6.17.4-sdk\rapt\android-sdk-r22.6.2\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Users\Diego\Downloads\Nueva carpeta\Nueva carpeta (2)\renpy-6.17.4-sdk\rapt\android-sdk-r22.6.2\tools\ant\build.xml:284: null returned: 1

Total time: 40 seconds


The build seems to have failed.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#187 Post by PyTom »

I'd try deleting and reinstalling android-sdk - your install seems corrupted.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
chewpower
Regular
Posts: 36
Joined: Mon Feb 11, 2013 11:08 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#188 Post by chewpower »

Hseo wrote:never mind,
fix it by deleting google play licensing library and google play APK expansion library
and re-download them from Android SDK Manager
I have the same problem as you, ".../market_licensing resolve to a path with no project.properties file for project..." and already tried deleting and re-downloading the google play licensing library and google play APK expansion library, but the problem persists. Did you try anything else other than that? (I also had tried deleting rapt folder and installing the Android SDK all over again to no avail)
EDIT: I'm using 6.17.6
EDIT2: IT'S SOLVED.
It took me hours to realize: whenever I run "Install SDK & Create Keys" step, Ren'Py launcher ALWAYS ends up not responding after the long and tiring download of Android SDK. Which (I think) leads to incomplete download of play_licensing and play_apk_expansion folders. Unfortunately, deleting the folders and re-downloading them through the Android SDK Manager didn't work for me.
What works: delete the google folder and re-download them through the LAUNCHER (redo the step "Install SDK & Create Keys").
I'm sorry if I'm too stupid, but I can't learn to walk on my own

User avatar
Ganster41
Newbie
Posts: 2
Joined: Sat May 24, 2014 6:36 am
Location: Ukraine
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#189 Post by Ganster41 »

Why RAPT still has ARMv5TE libs only? Now >90% devices has an ARMv7 cores, but engine doesn't use the all power of them now, because it has no optimised libs for it. May be it's time to add it? Or may be RAPT source are available somewhere, and we can try to build it to other platforms ourselves?
Thanks!

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#190 Post by PyTom »

It isn't clear to me that the additional performance would be worth the larger package sizes or the complexity of having to upload multiple apk variants.

Do you have any data on the percentage of android devices with arm7 cores?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Ganster41
Newbie
Posts: 2
Joined: Sat May 24, 2014 6:36 am
Location: Ukraine
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#191 Post by Ganster41 »

No, I have no CPU-specific statistics instruments. I can look at my app users devices top list in Google Play developer console. And I have no devices with CPUs older than ARMv7 there.
Last ARMv6-based smartphones, which I found, are produced in 2010-2011. You can look how many devices are produced in last 3 years, and before in any catalog, like gsmarena. Anyway, they are to old.
May be optional possibility to make package with pre-ARMv7 CPU support will be better? Unity 3D was doing same, before dropped old cores completely. I think, additional 3 megabytes of libs (which will be compressed in APK) is not a big problem, don't you?

PS: Sorry for my English. I don't know it very well.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#192 Post by PyTom »

Knowing that unity dropped support is a good data point. I'll think about it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

nuggetsandroses
Newbie
Posts: 4
Joined: Tue Jun 10, 2014 7:43 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#193 Post by nuggetsandroses »

Hi there. I tried to built an Android version of my VN, and while I'm doing so, I encountered these while building the package. Do you know what seems to be the problem??? Thank you.
Attachments
builderror2.jpg
builderror1.jpg

Keul
Regular
Posts: 49
Joined: Wed May 06, 2009 3:42 am
Location: France - Strasbourg
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#194 Post by Keul »

Hi.

I was unable to install the SDK:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "launcher/game/android.rpy", line 569, in script
    python:
  File "launcher/game/android.rpy", line 571, in <module>
    rapt.install_sdk.install_sdk(AndroidInterface())
IOError: [Errno 2] No such file or directory: 'C:\\renpy-last-sdk\\rapt\\android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/project.properties'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/android.rpy", line 569, in script
    python:
  File "C:\renpy-last-sdk\renpy\ast.py", line 756, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\renpy-last-sdk\renpy\python.py", line 1382, in py_exec_bytecode
    exec bytecode in globals, locals
  File "launcher/game/android.rpy", line 571, in <module>
    rapt.install_sdk.install_sdk(AndroidInterface())
  File "C:\renpy-last-sdk\rapt\buildlib\rapt\install_sdk.py", line 257, in install_sdk
    get_packages(interface)
  File "C:\renpy-last-sdk\rapt\buildlib\rapt\install_sdk.py", line 180, in get_packages
    with open(plat.path("android-sdk/extras/google/play_apk_expansion/downloader_library/project.properties"), "r") as f:
IOError: [Errno 2] No such file or directory: 'C:\\renpy-last-sdk\\rapt\\android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/project.properties'

Windows-7-6.1.7601-SP1
Ren'Py 6.17.6.512
Ren'Py Launcher 6.17.6.512

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#195 Post by PyTom »

Google upgraded their build tools, which broke Ren'Py. I'm going to try to get a 6.18 prerelease out over the long weekend.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users