Page 2 of 19
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Wed Feb 29, 2012 2:44 pm
by jack_norton
Heh, now I understand why most people in mobile space develop on iOS

Not blaming Ren'Py, but I know several devs that told me making a game on Android is a total nightmare...!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Wed Feb 29, 2012 6:50 pm
by PyTom
Parkey - try again. The downloads sometime seem to be corrupted, but trying again usually fixes it.
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Sat Mar 03, 2012 9:50 am
by Parkey
Ok, after try several times, the download works well, but it still gives me the same error than before, that says: "The build seems to have failed". And the java is the lastest version. So... ¿why gives that error? Any idea?
Thanks!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Sat Mar 03, 2012 11:15 am
by Parkey
Ok, forget it, that error was because of a wrong usb-drivers, so the packaging didn't end correctly. However, it don't install it to the smartphone or copy it to the sdcard. Or maybe I can't find it... but installing it manually it works! I can believe it! xD. At least a simple game.
Good job PyTom

RAPT it's a good working application. Recommended!
Just two questions:
-Are functions like imagedissolved still not works on Android? (I don't use it just in case);
-And is it possible to use functions of the mobile phone like vibration? I think so, but how? (I don't mean about the permissions but how to include it to the code).
Thanks!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Sat Mar 03, 2012 12:12 pm
by PyTom
ImageDissolve is still not working, and won't until I make the Android version use OpenGL ES 2.
Call the renpy.vibrate function to enable vibration on Android:
http://www.renpy.org/doc/html/other.html#renpy.vibrate
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 8:45 am
by jack_norton
Ok, now everything works, but when I run the game on the tablet, a really weird error comes up: can't find label start!!!!!!
Of course, there's the label start in the game rpy

Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 8:52 am
by PyTom
If you run:
android-sdk/platform-tools/adb devices
by hand, does it find it? Also, do you have debugging turned on in your device?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 8:53 am
by jack_norton
Yes I managed to, trying to run Planet Stronghold on it

but as soon as I launch the game says can't find label start. I copied the whole "game" folder on it. Maybe I'll try with a simpler game now!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 8:56 am
by jack_norton
No, same error even with Remember Me. Maybe the game size is too big? also, I copied the .rpa and not the single files, is that ok?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 9:01 am
by PyTom
No, use the single files. Archiving is not supported on Android. (At least not yet.)
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 9:07 am
by jack_norton
Ah ok. Well, tried again with Remember Me, I see the "renpy loading..." splash screen, but then the app exits. It might be because I'm using other .py files (http functions) ? the debug info is:
Code: Select all
I/python ( 2172): extracting game/
I/python ( 2172): Private directory is /data/data/com.winterwolves.rememberme/f
iles
I/python ( 2172): Argument is /data/data/com.winterwolves.rememberme/files
I/python ( 2172): Handing off to main.
I/python ( 2172): /data/data/com.winterwolves.rememberme/files/renpy/bootstrap.
py:263: RuntimeWarning: import cdrom: No module named cdrom
I/python ( 2172): (ImportError: No module named cdrom)
I/python ( 2172): Imported android.sound.
I/python ( 2172): Screen diagonal is 9.27846970141 inches.
I/python ( 2172): Full traceback:
I/python ( 2172): File "/home/tom/ab/android-rebuild/private/renpy/bootstrap.
py", line 291, in bootstrap
I/python ( 2172): File "/home/tom/ab/android-rebuild/private/renpy/main.py",
line 226, in main
I/python ( 2172): File "/home/tom/ab/android-rebuild/private/renpy/script.py"
, line 173, in load_script
I/python ( 2172): File "/home/tom/ab/android-rebuild/private/renpy/script.py"
, line 367, in load_appropriate_file
I/python ( 2172): Exception: Could not load from archive about..rpyc
I/python ( 2172): While loading the script.
I/python ( 2172): Exception: Could not load from archive about..rpyc
I/python ( 2172): Logging to /data/data/com.winterwolves.rememberme/files/log.t
xt
I/python ( 2172): Traceback (most recent call last):
I/python ( 2172): File "start.pyx", line 55, in start (jni/../jni/application
/src//start.c:1352)
I/python ( 2172): File "/data/data/com.winterwolves.rememberme/files/main.py"
, line 141, in main
I/python ( 2172): renpy.bootstrap.bootstrap(renpy_base)
I/python ( 2172): File "/home/tom/ab/android-rebuild/private/renpy/bootstrap.
py", line 319, in bootstrap
I/python ( 2172): SystemExit: 0
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 9:54 am
by PyTom
Try it with a simple game like the_question, and work up from there.
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 11:18 am
by jack_norton
The question works perfectly... so it's something in my games that doesn't like

I tried the old Vera Blanc 3 tech demo and worked. The error I get on new games is quite strange though:
"could not load from archive: about..rpyc"
I don't know why it puts two dots instead of "about.rpyc". I mean, with this debug info, it could be anything wrong and is impossible to know the reason why some games works and other don't
edit: does the android support JCC ? I forgot I use it in my new games, so maybe could be that?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 3:27 pm
by sake-bento
Just ported Ripples, and it works beautifully. About to try something a little more intense. >.>
But really, it's lovely. Thank you so much!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Thu Mar 08, 2012 5:20 pm
by jack_norton
Did some more testing. The OLD games seems to work without problems, I mean just copying the old sources (I noticed it doesn't recompile the .rpy). I can run Heileen fine.
The weird things start to happen even if you modify old games. I am not 100% sure, but I changed only a file on Bionic Heart (was testing how it would look at 1024x600), rebuilt the .rpyc and then wasn't working anymore, throwing out random bugs like the one reported (could not load from archive: about..rpyc).
Hopefully in future updates even recent games will work. I have to say that seeing Heileen work at 1st attempt was pretty cool. Good job
