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
chewpower
Regular
Posts: 36
Joined: Mon Feb 11, 2013 11:08 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#166 Post by chewpower » Wed Oct 02, 2013 1:43 am

jayroll123 wrote:I have a problem in rapt .. Can you please help me .. thanks
What is the content of folder "game"? If I'm not mistaken, it should contain files/folders of your Ren'Py game project, i.e. by default:
"game"
"tmp"
"log.txt"
"project.json"
"README.html"
(and sometimes with addition "android-icon.png" and "android-preplash.jpg" if you wish to have your own preplash screen and icon)
I'm sorry if I'm too stupid, but I can't learn to walk on my own

jayroll123
Newbie
Posts: 22
Joined: Tue Jul 02, 2013 9:32 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#167 Post by jayroll123 » Wed Oct 02, 2013 6:59 pm

It's ok now.. i have another problem. . how can I use the latest version of sdk? I downloaded Android 4.1.2 and all its components in the Android SDK Manager but when I build release my project, It is still using the older version which is Android 4.0.3 .. .Need help. .thanks

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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

#168 Post by PyTom » Wed Oct 02, 2013 9:31 pm

Ren'Py should download and use the Android 2.2 SDK. (For now, it's trying for compatibility with a broad range of devices.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
darkagent
Newbie
Posts: 4
Joined: Fri Feb 15, 2013 7:09 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#169 Post by darkagent » Thu Oct 03, 2013 12:27 am

I'm trying to build the_question game to android but still get error


D:\rapt-6.13.11.0>android.py build the_question release

Updating build files.

Traceback (most recent call last):
File "D:\rapt-6.13.11.0\android.py", line 66, in <module>
main()
File "D:\rapt-6.13.11.0\android.py", line 54, in main
build.build(iface, args.argument[0], args.argument[1:])
File "buildlib\build.py", line 311, in build
build_core(iface, directory, commands)
File "buildlib\build.py", line 231, in build_core
subprocess.call([plat.android, "update", "project", "-p", '.', '-t', 'androi
d-8', '-n', versioned_name])
File "C:\Python27\lib\subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified


Logcat :


D:\rapt-6.13.11.0>android.py logcat
Traceback (most recent call last):
File "D:\rapt-6.13.11.0\android.py", line 66, in <module>
main()
File "D:\rapt-6.13.11.0\android.py", line 57, in main
subprocess.call([ plat.adb, "logcat", "-s", "python:*"] + args.argument)
File "C:\Python27\lib\subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

jayroll123
Newbie
Posts: 22
Joined: Tue Jul 02, 2013 9:32 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#170 Post by jayroll123 » Thu Oct 03, 2013 7:53 am

So how can I use the Android 4.1.2 sdk platform? and to be the version of my game?

jayroll123
Newbie
Posts: 22
Joined: Tue Jul 02, 2013 9:32 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#171 Post by jayroll123 » Wed Oct 09, 2013 12:34 pm

Is there a way that I can use Renpy and Pygame in one program? and convert int using RAPT?
thanks

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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

#172 Post by PyTom » Wed Oct 09, 2013 1:54 pm

There isn't an easy way to mix pygame, Ren'Py, and RAPT. You pretty much have to pick two, since Ren'Py likes to take control of things when it's running. It's an engine, not a library.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

bobobo1618
Newbie
Posts: 2
Joined: Wed Dec 18, 2013 11:22 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#173 Post by bobobo1618 » Wed Dec 18, 2013 11:26 pm

Would it be possible for RAPT built distributions to download and install their own Expansion APKs in the future?

I ask this because at the moment there are two options:
- Distribute through the Play Store
- Install the builds manually

If you integrated download support (supply a URL at build time?), then we could distribute our VNs ourselves and not rely on Google.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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

#174 Post by PyTom » Thu Dec 19, 2013 2:44 pm

Ren'Py makes using an expansion APK optional. For other app stores, or sideloading, you can omit the expansion APK entirely.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

jlopes
Newbie
Posts: 1
Joined: Wed Dec 25, 2013 8:31 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#175 Post by jlopes » Wed Dec 25, 2013 8:39 am

kurix wrote:I'm having trouble with the second step. "android.py test" returns "All systems go!"

When I try to run "android.py installsdk" I get an error message:

Code: Select all

C:\Users\Dewi\Downloads\Python\rapt-6.14.0.1>android.py installsdk

I'm compiling a short test program, to see if you have a working JDK
on your system.


The JDK is present and working. Good!


I'm downloading Apache Ant. This might take a while.


I'm extracting Apache Ant.

Traceback (most recent call last):
  File "C:\Users\Dewi\Downloads\Python\rapt-6.14.0.1\android.py", line 66, in <m
odule>
    main()
  File "C:\Users\Dewi\Downloads\Python\rapt-6.14.0.1\android.py", line 40, in ma
in
    install_sdk.install_sdk(iface)
  File "buildlib\install_sdk.py", line 191, in install_sdk
    unpack_ant(interface)
  File "buildlib\install_sdk.py", line 123, in unpack_ant
    os.rename(unpacked, "apache-ant")
WindowsError: [Error 5] Access is denied
I'm running the command prompt window as admin. The rapt-6.14.0.1 folder contains the "apache-ant-1.8.4-bin.tar.gz" file and the extracted "apache-ant-1.8.4" folder. Anybody else had this trouble? Any ideas?
Open the 'buildlib\install_sdk.py' and change the 1.8.4 to 1.9.2.

ryanshowseason2
Newbie
Posts: 7
Joined: Sat Jul 27, 2013 11:45 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#176 Post by ryanshowseason2 » Tue Dec 31, 2013 11:25 pm

Trying to use rapt for the first time.

I've setup my JAVA_HOME environment variable and when trying to install from the android screen of the launcher. It gives me an error telling me it cannot compile the test program android.txt reads:

javac: file not found: test.java
Usage: javac <options> <source files>
use -help for a list of possible options

Any thoughts?

I'm on windows 7 and I installed both jdks for x64 and x86...

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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

#177 Post by PyTom » Wed Jan 01, 2014 2:01 am

This doesn't make a lot of sense to me. Maybe make sure you have the right RAPT, and try restarting the launcher?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

ryanshowseason2
Newbie
Posts: 7
Joined: Sat Jul 27, 2013 11:45 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#178 Post by ryanshowseason2 » Thu Jan 02, 2014 7:49 pm

Alright I understood the directions incorrectly. I copied the rapt directly to the folder and overwrote a bunch of stuff I shouldn't have.

So to install on my device manually I need the apk and the obb right? Anything else?

Put the obb into /android/obb/Vore.Novel/

Someone tried testing it for me since I cannot and sent me this traceback

Code: Select all

I'm sorry, but an uncaught exception occurred.

While loading the script.
Exception: Module _errorhandling could not be loaded.

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

Full traceback:
  File "renpy/bootstrap.py", line 265, in bootstrap
  File "renpy/main.py", line 222, in main
  File "renpy/exports.py", line 1718, in load_module
  File "renpy/script.py", line 193, in load_module
Exception: Module _errorhandling could not be loaded.

Code: Select all

%s  File "renpy/bootstrap.py", line 447, in report_exception
  File "/home/tom/ab/android/python-for-android/build/python-install/lib/python2.7/platform.py", line 1575, in platform
  File "/home/tom/ab/android/python-for-android/build/python-install/lib/python2.7/platform.py", line 163, in libc_ver
IOError: [Errno 21] Is a directory: '/data/data/Vore.Novel/files'
script.rpy is mine if I'm not mistaken but it is only a line of code loading and image to a variable...

Code: Select all

image meldissapoint = "meldissapoint.png"
Nothing special although I initially load all images and music about 80mb worth... Is that stretching it? or unreasonable?

I'm wondering what strategy to take with debugging android distributions of my game or whether to dump it since I can't debug it personally haha. :P

Has the experience for others with rapt been difficult or relatively problem free?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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

#179 Post by PyTom » Fri Jan 03, 2014 2:19 am

For testing purposes, put the obb in the root of the SD card (/mnt/sdcard).

Android places obbs in weird locations on multi-user systems. The /mnt/sdcard location lets Ren'Py ignore that and just load the obb for testing purposes. (If you want more realistic testing, you have to go through the play store.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
curry nochi rice
Miko-Class Veteran
Posts: 746
Joined: Sat Mar 27, 2010 3:12 am
Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
Organization: Circle Cosine
IRC Nick: Curry
Skype: after.curry.rice
itch: project-rothera
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#180 Post by curry nochi rice » Mon Feb 10, 2014 9:25 am

uhh I successfully built a 4.0 test program and had it installed in my friend's xperia with android 4.1
...
it ran but there was this "font not found error". any fix for this, without rooting the phone?
...
and oh, I tried resorting to using no custom fonts at all... and then poof, it doesn't even install.
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

Post Reply

Who is online

Users browsing this forum: No registered users