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
jack_norton
Lemma-Class Veteran
Posts: 4085
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

#31 Post by jack_norton »

Ok I can confirm this - I installed the old 6.12 and could modify Heileen & Bionic Heart sources and it runs on the android without problems.
follow me on Image Image Image
computer games

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

#32 Post by PyTom »

Jack, can you send me the files you're using to build the game, so I can start building my own packages? That will help me figure out what's going on.
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: 4085
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

#33 Post by jack_norton »

Sure, will email you :)
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
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

#34 Post by jack_norton »

I downloaded the latest version (6.13.9.3) but every time I try to build, I get the message:
"Can't compile Python source, and not including python source. Giving up."
this happens even trying to build the_question game. I did android.py test and says it's all OK!
follow me on Image Image Image
computer games

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

#35 Post by PyTom »

Do you have the right python on your system? You need 2.7.2.
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: 4085
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

#36 Post by jack_norton »

Yes, of course have the 2.7.2 installed (I even tried reinstalling it now just to be sure). The previous raptor version was building fine, even if games weren't running for other problem. With this one I always get that message with any game I try.
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
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

#37 Post by jack_norton »

I found the lines in build.py and tried commenting them out, since I had both the configuration and also Python installed. Now works!
JCC still doesn't work though :mrgreen:

Spoke too early: even normal PNG can't be loaded. I keep getting the error:
IOError: Couldn't find file "gfx/chars/loren.png"

but it's THERE :shock:
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
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

#38 Post by jack_norton »

More random bugs. Tried packaging Remember Me and using logcat I get:
I/python (23963): Private directory is /data/data/com.winterwolves.rememberme/f
iles
I/python (23963): Argument is /data/data/com.winterwolves.rememberme/files
I/python (23963): Handing off to main.
I/python (23963): Traceback (most recent call last):
I/python (23963): File "start.pyx", line 52, in start (jni/../jni/application
/src//start.c:1313)
I/python (23963): ImportError: No module named main
I used same identic procedure as Loren, no clue why this one gives me this different error instead.
follow me on Image Image Image
computer games

cyrus_zuo
Regular
Posts: 57
Joined: Mon Aug 11, 2008 6:46 pm
Projects: Airport Mania: First Flight, Matches & Matrimony
Location: Lake Forest, CA
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#39 Post by cyrus_zuo »

Feeling not as insane...

I've been out of town, so I just got into RAPT today.
I downloaded the latest of everything, am also getting:
"Can't compile Python source, and not including python source. Giving up."

Should I get an older version of RAPT to test?
Also, can you still build a 'debug' version (helpful in testing to many devices as we do).

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

#40 Post by PyTom »

Do you have python 2.7.2 installed?

Yes, you can just do "debug" or "debug install".
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: 4085
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

#41 Post by jack_norton »

cyrus, I had the same bug, then I realized that somehow python 2.7.2 installation was screwed up, I reinstalled it and worked!
...well, I can't run the games still, but I have no clue why, gives me weird errors :D
follow me on Image Image Image
computer games

cyrus_zuo
Regular
Posts: 57
Joined: Mon Aug 11, 2008 6:46 pm
Projects: Airport Mania: First Flight, Matches & Matrimony
Location: Lake Forest, CA
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#42 Post by cyrus_zuo »

I do have 2.7.2
...I also tried using the previous version of RAPT (6.13.9.2), and it makes a build!
I was able to install it, but it died with a big long traceback as soon as I tried to get into the game from the main menu.
(it ends w/ a error in layout.py line 1580 in render - TypeError: range() integer step argument expected, got float.)
> The line it refers to in my code has a 'fade' tag on it, does that not work anymore (I haven't touched the code since December, when I had it previously running on Android w/just the save issue stopping me from release and the speed issue not stopping me, but making it wish it wasn't there...but the game worked from start to finish...)

Using 6.13.9.3 I have the same error as before.

Will try reinstalling python, though I just updated to 2.7.2 today to do this, so it's very fresh.
>> Just fully uninstalled and then reinstalled python and I get the same error when I try to build through 6.13.9.3

Atlantis
Regular
Posts: 27
Joined: Wed Mar 07, 2012 7:52 am
Completed: Tales of Atlantis
Projects: LDVELH
Location: France
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#43 Post by Atlantis »

cyrus_zuo wrote: I downloaded the latest of everything, am also getting:
"Can't compile Python source, and not including python source. Giving up."
I have the same bug too, so I downgrade in 6.13.9.0 but I have another filepath problem.
with this message : WindowsError: [Error 3] Specified FilePath not found 'assets/*.*

I've follow point by point :
Building your first package takes four steps:

1 - Download and install RAPT, Python 2.7
2 - Use the android.py installsdk command to install the Android SDK
3 - Use the android.py configure command to configure Android-specific settings in your game.
4 - Use the android.py build command to build a package, and to install the package on your device.

The 1,2 and 3 works fine.
But I have this message (above) when I build the package (android.py build mygame release install)

I probably put my projet in bad place or another ?
Where must put my all sources and assets files ?

All the best and thanks a lot in advance..

Ps : excuse my Frenchy English :D
There are 10 sorts of people, those who understand the binary and the others..

cyrus_zuo
Regular
Posts: 57
Joined: Mon Aug 11, 2008 6:46 pm
Projects: Airport Mania: First Flight, Matches & Matrimony
Location: Lake Forest, CA
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#44 Post by cyrus_zuo »

Not sure how to fix. I tried doing the installsdk command again, and then installed a second RAPT 6.13.9.3, but I don't seem to be getting anywhere.
I continually get the same error message with version .3

Version .2 does work, but the game immediately has errors when I install it on the device. Since I'd built it for Android before RAPT and had it running and near release ready on the device I'm not sure I should chase those errors as the only change has been RAPT, and as noted I'm not able to get the latest version of it to work (only the older version...?)

Atlantis
Regular
Posts: 27
Joined: Wed Mar 07, 2012 7:52 am
Completed: Tales of Atlantis
Projects: LDVELH
Location: France
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#45 Post by Atlantis »

Is there any differences between .0 and .2 for my path problem ?
There are 10 sorts of people, those who understand the binary and the others..

Post Reply

Who is online

Users browsing this forum: No registered users