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: 16093
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

#61 Post by PyTom »

It's possible that's it. I'd expect it's more the size of the image, rather than the ATL that's doing it. It's also possible there's some other problem - a bigger traceback would be better. Does logcat say anything else?
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

#62 Post by jack_norton »

Will try again today (early morning here), since I updated the firmware (bad idea perhaps...) the android.py doesn't recognize the device anymore (so logcat doesn't work). Strange because I can copy the file manually, so windows recognize the device... :|
follow me on Image Image Image
computer games

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

#63 Post by PyTom »

That's not necessarily true. You may need to update the android driver - the adb driver is different from the mass storage support driver.
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

#64 Post by jack_norton »

Correct, there was an update to the USB driver :)
Full log:

Code: Select all

I/python  ( 1560): Full traceback:
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/execution.
py", line 265, in run
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/ast.py", l
ine 1008, in execute
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/exports.py
", line 887, in with_statement
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/co
re.py", line 1498, in do_with
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/co
re.py", line 1799, in interact
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/co
re.py", line 2104, in interact_core
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/co
re.py", line 1388, in draw_screen
I/python  ( 1560):   File "render.pyx", line 366, in renpy.display.render.render
_screen (gen/renpy.display.render.c:4567)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/la
yout.py", line 511, in render
I/python  ( 1560):   File "render.pyx", line 95, in renpy.display.render.render
(gen/renpy.display.render.c:2290)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/tr
ansition.py", line 362, in render
I/python  ( 1560):   File "render.pyx", line 95, in renpy.display.render.render
(gen/renpy.display.render.c:2290)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/la
yout.py", line 511, in render
I/python  ( 1560):   File "render.pyx", line 95, in renpy.display.render.render
(gen/renpy.display.render.c:2290)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/la
yout.py", line 511, in render
I/python  ( 1560):   File "render.pyx", line 95, in renpy.display.render.render
(gen/renpy.display.render.c:2290)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "accelerator.pyx", line 75, in renpy.display.accelerat
or.transform_render (gen/renpy.display.accelerator.c:1076)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/im
age.py", line 164, in render
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/im
age.py", line 54, in wrap_render
I/python  ( 1560):   File "render.pyx", line 95, in renpy.display.render.render
(gen/renpy.display.render.c:2290)
I/python  ( 1560):   File "render.pyx", line 166, in renpy.display.render.render
 (gen/renpy.display.render.c:2032)
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/im
.py", line 432, in render
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/im
.py", line 195, in get
I/python  ( 1560):   File "/home/tom/ab/android-rebuild/private/renpy/display/im
.py", line 482, in load
I/python  ( 1560): error: JPEG loading error
I/python  ( 1560): While running game code:
I/python  ( 1560):   File "game/story.rpy", line 114, in script
I/python  ( 1560): error: JPEG loading error
follow me on Image Image Image
computer games

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

#65 Post by jack_norton »

Ok managed to make Heileen run fine :) And the web browser actually seems to work here, I put a button and it opens my webpage just fine! Maybe you changed it now?
follow me on Image Image Image
computer games

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

#66 Post by Atlantis »

I just download it
Test in progress...
There are 10 sorts of people, those who understand the binary and the others..

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

#67 Post by Atlantis »

..and this time I get that..
:|
Image
There are 10 sorts of people, those who understand the binary and the others..

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

#68 Post by Atlantis »

A sub dir game seems to be missing. So I create one and solve this problem.
But.
The original problem with assets/*.* directory, always not found.

Image
There are 10 sorts of people, those who understand the binary and the others..

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

#69 Post by jack_norton »

Have you tried creating the assets directory manually? here works fine!
follow me on Image Image Image
computer games

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

#70 Post by Atlantis »

Thanks Jack, works fine too BUT only one time..I need to reboot Windows between each build.
It works randomly.. (Windows 7 - Integrale version SP1)
There are 10 sorts of people, those who understand the binary and the others..

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

#71 Post by jack_norton »

I think is a file/directory permission problem then, do you run as administrator?
follow me on Image Image Image
computer games

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

#72 Post by PyTom »

Jack - could your problem be case-related? The usual Ren'Py is pretty robust against foo.JPG vs foo.jpg. But the android Ren'Py may not be.

Atlantis - try editing buildlib/build.py, and replacing

Code: Select all

shutil.rmtree("assets")
with

Code: Select all

    if os.path.isdir("assets"):
        shutil.rmtree("assets")
on line 235.
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

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

#73 Post by Atlantis »

Excellent !!
It works fine... :D
Thank you very much PyTom.
And Jack too for your interest.
There are 10 sorts of people, those who understand the binary and the others..

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

#74 Post by jack_norton »

PyTom wrote:Jack - could your problem be case-related? The usual Ren'Py is pretty robust against foo.JPG vs foo.jpg. But the android Ren'Py may not be.
Since I got my first error some years ago I'm very careful with upper/lower case. However, I found out that the image is named:
cg 01.jpg
with a space! Might be that? I'll try changing it, I was using the autoimages feature:

Code: Select all

    config.automatic_images=[ ' ', '_', '/' ]
    config.automatic_images_strip = ["gfx","cgs","bgs","chibi"]
also, no chances to have the JCC working? that would really shrink the size of the games... :oops:
follow me on Image Image Image
computer games

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

#75 Post by PyTom »

JCC doesn't work?
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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]