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.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 16088
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:

RAPT - Ren'Py Android Packaging Tool

#1 Post by PyTom »

I've made a first release of RAPT, the Ren'Py Android Packaging Tool. You can download RAPT from:

http://www.renpy.org/dl/android/

RAPT marks a massive change in the way we approach developing Android-based Ren'Py games. Until now, I expected people to place files on their SD card as part of the development process, and run them with the Ren'Py Launcher. This meant that the app would run in an environment that was different from how it would run when packaged. It also was something of an excuse for me - it was easy to get started developing, so it didn't matter if it was hard to get a package to market.

RAPT changes that. It moves us to a package-based approach, where you're expected to build a package, transfer it to your device, and test it like any other application. Once you have a package you like, you can upload it to the Android Market, Amazon App Store (probably) or wherever.

RAPT makes building an Android app easier. It may not be easy, but it's no longer nigh-impossible. It provides an android.py command that lets you:

1) Download and install an Android build environment, including creating package signing keys.
2) Interactively query you about the configuration of your application.
3) Build the application and install it on your device.
4) Display the logging information produced by Python as it runs.

The current version of RAPT is something of a down payment. The eventual goal is to integrate it with the launcher. For now, you'll need some familiarity with the command line.

There isn't any RAPT-specific documentation yet. I plan to document RAPT as part of Ren'Py 6.13.9, which still has a few more bugs to work out in it. For now, you can use the PGS4A documentation found at:

http://pygame.renpy.org/

You want to read the "Building Android Applications" and "Icon and Presplash" sections.

If you have any problems or questions, please let me know.
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
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#2 Post by DaFool »

Thank you very much.

Having several high resolution games in development (1024x768 and 1280x720), what are the recommended processes to follow to have a ready to port build?
- remove movies
- remove ImageDissolves
...anything else that bears repeating?

There's this Samsung I've had my eyes on for a while now, so it's a crucial decision to make the plunge now rather than later. (I mentioned elsewhere with renpy archives being easier to extract now more than ever, it is absolutely crucial to have a day and date Android port of every noteable Ren'Py game, since the mobile market is full of scummy pirates that steal others games and sell as their own.)

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

#3 Post by PyTom »

Don't archive files bound for Android. (They will be archived as part of the .apk file produced, and double-archiving can screw things up.)

If you're aiming for a phone device, rather than a tablet, you'll want to tweak the interface of your game so that it's usable on the small screen.
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
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#4 Post by jack_norton »

Woot, if I wasn't so busy fixing Loren I would definitely attempt to use this with some of my old/simplest games. Well, also I need an Android device first :D
follow me on Image Image Image
computer games

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#5 Post by Parkey »

Hello! Y tried to use de Android Packaging Tool but I'm still not able to pack...

I've followed the instructions from that link. Step by step. I have everything downloaded and installed (with "android.py installsdk"). If I run "android.py test" returns a "All systems go!" so I think that everything is correctly installed. After that, I configure that with "android.py configure my_folder_game" and after a few questions it's all right.

Then I run "android.py build my_folder_game release install", where "my_folder_game" is in the same directory that rapt-6.13.9.0, but... well, this is the error...

WindowsError: [Error 2] No such file or directory.

Any idea why is this happening? What's missing?

Thank you!
Attachments
Dibujo.jpg

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

#6 Post by PyTom »

Try deleting the android-sdk directory, and running installsdk again. If that doesn't fix it, please take a screenshot of the contents of the android-sdk/tools directory.
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

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#7 Post by Parkey »

Ok, once I've installed again the sdk it build the .apk but... it gives me an error that says: "The build seems to have failed". I think that probably is because my smartphone wasn't connected. What do you think?

Anyway, I can see in "rapt-6.13.9.0/bin" the apk unsigned. It's enough that apk to install it into the device? Because I copy it to de microsd card, but if I try to install it says me "Application not installed". Why? :S

Thanks!
Attachments
Dibujo2.jpg

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

#8 Post by PyTom »

What does the contents of the bin directory look like?
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

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#9 Post by Parkey »

Bin contents:

bin/classes/com...
bin/classes/org...

bin/res/drawable/icon.png

bin/build.prop
bin/classes.dex
bin/clases.dex.d
bin/MyGame-1.0.ap_
bin/MyGame-1.0.ap_.d
bin/MyGame-1.0-release-unsigned.apk
bin/MyGame-1.0-release-unsigned.apk.d

Something wrong?

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

#10 Post by PyTom »

I don't know why there's no output for the release action.

What version of the JDK is on your system? Maybe try updating to 7?
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
OdysseyStudio
Regular
Posts: 94
Joined: Wed Oct 20, 2010 12:34 am
Location: Spokane, WA
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#11 Post by OdysseyStudio »

Hay PyTom, have you tried Illumination Software Creator? You could build a basic frame work of RAPT at least untill you get it intergraded to the Launcher. You could also get it easy as well because Bryan(The Creator of the ISC) it doing a pay what you want sale, so you could get your hands on it without letting burn a hole in your pocket.
The artist's world is limitless. It can be found anywhere, far from where he lives or a few feet away. It is always on his doorstep.
--Paul Strand

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

#12 Post by PyTom »

I'm not sure why something like that is relevant. And I really don't want to add more dependencies to the fairly complex Ren'Py dependency chain.
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

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#13 Post by Parkey »

PyTom wrote:I don't know why there's no output for the release action.

What version of the JDK is on your system? Maybe try updating to 7?
Ok, I'll see when I get home. But... what do you mean with "output"? How should look like the bin directory?

User avatar
OdysseyStudio
Regular
Posts: 94
Joined: Wed Oct 20, 2010 12:34 am
Location: Spokane, WA
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#14 Post by OdysseyStudio »

I'm not sure why something like that is relevant. And I really don't want to add more dependencies to the fairly complex Ren'Py dependency chain.
Yeah, after thinking about a bit more, you would need GTK to get a GUI up and running, and that would just add more to it's dependency chain. Sorry about that I wasn't thinking of it completely when I wrote it at first. Sorry about that... ^^'
The artist's world is limitless. It can be found anywhere, far from where he lives or a few feet away. It is always on his doorstep.
--Paul Strand

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#15 Post by Parkey »

I had JDK-7u2 but I updated it to JDK-7u3. Now not even try to pack, it gives me an CRC error extracting Apache Ant... I thinks it's better to start again from the beginning.
Attachments
dibujo2.jpg
Last edited by Parkey on Wed Feb 29, 2012 2:54 pm, edited 2 times in total.

Post Reply

Who is online

Users browsing this forum: No registered users