Page 5 of 19
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Sun Apr 01, 2012 6:05 pm
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?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 3:10 am
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...

Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 8:04 am
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.
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 8:46 am
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
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 12:10 pm
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?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 12:25 pm
by Atlantis
I just download it
Test in progress...
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 12:52 pm
by Atlantis
..and this time I get that..

Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 1:04 pm
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.

Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 1:56 pm
by jack_norton
Have you tried creating the assets directory manually? here works fine!
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 2:36 pm
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)
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 3:09 pm
by jack_norton
I think is a file/directory permission problem then, do you run as administrator?
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 3:11 pm
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
with
Code: Select all
if os.path.isdir("assets"):
shutil.rmtree("assets")
on line 235.
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 3:24 pm
by Atlantis
Excellent !!
It works fine...
Thank you very much PyTom.
And Jack too for your interest.
Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 3:30 pm
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...

Re: RAPT - Ren'Py Android Packaging Tool
Posted: Mon Apr 02, 2012 4:15 pm
by PyTom
JCC doesn't work?