Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 18, 2013 5:45 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py support questions should go here. This forum is for discussing changes to Ren'Py itself.



Post new topic Reply to topic  [ 138 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next
Author Message
PostPosted: Sun Feb 19, 2012 10:57 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Mon Feb 20, 2012 1:44 am 
Lemma-Class Veteran

Joined: Tue Aug 01, 2006 12:39 pm
Posts: 4049
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.)


Top
 Profile Send private message  
 
PostPosted: Mon Feb 20, 2012 9:25 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Mon Feb 20, 2012 10:01 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3396
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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 Image
computer games


Top
 Profile Send private message  
 
PostPosted: Mon Feb 27, 2012 2:33 pm 
Regular

Joined: Thu Feb 02, 2012 11:52 am
Posts: 48
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
Dibujo.jpg [ 62.76 KiB | Viewed 2659 times ]
Top
 Profile Send private message  
 
PostPosted: Mon Feb 27, 2012 6:10 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Tue Feb 28, 2012 2:03 pm 
Regular

Joined: Thu Feb 02, 2012 11:52 am
Posts: 48
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
Dibujo2.jpg [ 55.66 KiB | Viewed 2597 times ]
Top
 Profile Send private message  
 
PostPosted: Tue Feb 28, 2012 2:15 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
What does the contents of the bin directory look like?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Tue Feb 28, 2012 2:22 pm 
Regular

Joined: Thu Feb 02, 2012 11:52 am
Posts: 48
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?


Top
 Profile Send private message  
 
PostPosted: Tue Feb 28, 2012 5:46 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 12:22 am 
Regular
User avatar

Joined: Wed Oct 20, 2010 12:34 am
Posts: 92
Location: Spokane, WA
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


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 1:07 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 7:59 am 
Regular

Joined: Thu Feb 02, 2012 11:52 am
Posts: 48
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?


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 12:52 pm 
Regular
User avatar

Joined: Wed Oct 20, 2010 12:34 am
Posts: 92
Location: Spokane, WA
Quote:
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


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 1:35 pm 
Regular

Joined: Thu Feb 02, 2012 11:52 am
Posts: 48
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
dibujo2.jpg [ 120.97 KiB | Viewed 2516 times ]


Last edited by Parkey on Wed Feb 29, 2012 2:54 pm, edited 2 times in total.
Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 138 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group