Page 14 of 19

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Sun Sep 07, 2014 5:48 am
by tiya_nofurita
Excuse me, I'm building into Android .apk file for my current project with the newest version of Ren'Py (I think it's 6.17.7)
The building itself is fine and work on Android device, but my customized icon and presplash won't work (still appear as Ren'Py default)
What did I do wrong? I placed them on base directory as the instruction/manual written.
I've successfully replace them on my previous project with the old version of Ren'Py and RAPT, why it won't work now? :?
base directory.jpg

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Fri Sep 12, 2014 5:37 am
by badspeler
tiya_nofurita wrote:Excuse me, I'm building into Android .apk file for my current project with the newest version of Ren'Py (I think it's 6.17.7)
The building itself is fine and work on Android device, but my customized icon and presplash won't work (still appear as Ren'Py default)
What did I do wrong? I placed them on base directory as the instruction/manual written.
I've successfully replace them on my previous project with the old version of Ren'Py and RAPT, why it won't work now? :?
base directory.jpg
I'm facing this problem too. How did you resolve it?

EDIT: For whatever reason, I switched to Renpy 6.18 and it seems to work. I may have changed the configuration though.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Fri Sep 12, 2014 7:57 am
by tiya_nofurita
badspeler wrote:
tiya_nofurita wrote:Excuse me, I'm building into Android .apk file for my current project with the newest version of Ren'Py (I think it's 6.17.7)
The building itself is fine and work on Android device, but my customized icon and presplash won't work (still appear as Ren'Py default)
What did I do wrong? I placed them on base directory as the instruction/manual written.
I've successfully replace them on my previous project with the old version of Ren'Py and RAPT, why it won't work now? :?
base directory.jpg
I'm facing this problem too. How did you resolve it?

EDIT: For whatever reason, I switched to Renpy 6.18 and it seems to work. I may have changed the configuration though.
I haven't resolved this until now :?
Eh? Really? Do you need to update to Ren'Py 6.18 (pre-release), RAPT 6.18, or both of them?

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Sep 16, 2014 1:16 pm
by sapiboonggames
PyTom, how do we import .py file for Android?
I tried importing this to android: (because I would like to try making similar ones)
http://lemmasoft.renai.us/forums/viewto ... 11&t=19128

But it fails during the "import py file"
I tried putting the entire file into an init python block but it also fails...

I'm not really good at programming so forgive me for being so noob :oops:

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Sep 16, 2014 1:42 pm
by PyTom
sapiboong>>> I'll look into this and get back to you.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Sep 16, 2014 1:51 pm
by sapiboonggames
PyTom wrote:sapiboong>>> I'll look into this and get back to you.
Nevermind. I was being stupid :oops:
Init python block works fine (I accidentally erased some lines which caused it to display error)

The only problem now is with the renpy.input
But looking around the forum, it is still an unimplemented feature. :wink:

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Sun Oct 05, 2014 5:48 am
by KeyboardSan
Hey I am getting this error while trying to install Android SDK
the engine installed the Apache Ant as well as the Android SDK but after that this error pops up. Please help.


I'm sorry, but an uncaught exception occurred.

While running game code:
File "launcher/game/android.rpy", line 569, in script
python:
File "launcher/game/android.rpy", line 571, in <module>
rapt.install_sdk.install_sdk(AndroidInterface())
File "launcher/game/android.rpy", line 258, in call
if yes and self.yes_thread:
AttributeError: 'AndroidInterface' object has no attribute 'yes_thread'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "launcher/game/android.rpy", line 569, in script
python:
File "C:\Users\ayush\Downloads\renpy-6.18.1-sdk\renpy-6.18.1-sdk\renpy\ast.py", line 778, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\ayush\Downloads\renpy-6.18.1-sdk\renpy-6.18.1-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "launcher/game/android.rpy", line 571, in <module>
rapt.install_sdk.install_sdk(AndroidInterface())
File "C:\Users\ayush\Downloads\renpy-6.18.1-sdk\renpy-6.18.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 254, in install_sdk
get_packages(interface)
File "C:\Users\ayush\Downloads\renpy-6.18.1-sdk\renpy-6.18.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 172, in get_packages
if not run_slow(interface, plat.android, "update", "sdk", "-u", "-f", "-a", "-t", ",".join(packages), yes=True):
File "C:\Users\ayush\Downloads\renpy-6.18.1-sdk\renpy-6.18.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 33, in run_slow
interface.call(args, cancel=True, **kwargs)
File "launcher/game/android.rpy", line 258, in call
if yes and self.yes_thread:
AttributeError: 'AndroidInterface' object has no attribute 'yes_thread'

Windows-7-6.1.7600
Ren'Py 6.18.1.670
Ren'Py Launcher 6.18.1.670

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Sun Oct 05, 2014 11:37 pm
by carroll6
I am getting the same errors.. line 569, 571, and 258. No need to post I get the exact same ones. Windows 7, new version of Ren 'Py..looks like I have Python 3.0 ..searched and there are a lot of Python directories. I am trying a test game with a imagemap with 4 large images, like comic book panels. Only the first one (upper right) works. The screen is 800 x 600. So I tried to install the Android Packages, can't get it to work. Just got the Java.. it is brand new, just now downloaded it. I have a X86 machine.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Sun Oct 05, 2014 11:41 pm
by PyTom

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Oct 07, 2014 3:29 pm
by squall
Hseo wrote:
tiya_nofurita wrote:Hseo : Same problem with you and I deleted google play licensing library and google play APK expansion library, then re-downloaded them again. Successfully build but haven't tried it on my device. I wonder if my Android can recognize .obb file? (totally noob, I use file expansion by the way). Where should I put .apk file and .obb file on my device? Do I have to rename .obb file into the same as .apk file?
for this you can watch this video for full explaining how to play games with apk and obb files
[youtube]http://www.youtube.com/watch?v=cPaBxSViTYY[/youtube]
+
you can put *.apk and *.obb files anywhere you want
-> for me I just put them in "root -> download"
(I:\download or I:\device_name\download )

also, it look like the game will crush in android if we used

Code: Select all

init python:
        config.rtl = True
though it look like downloading last API version + add simple code will fix it
->>>>>>>downloading API 19 right now

Adding

Code: Select all

config.rtl = True 
is causing crashes on startup in android. Followed the traceback.txt file and found this:
"C:\Users\***\renpy-6.18.1-sdk\renpy\text\text.py", line 935, in rtl_paragraph
NameError: global name 'ON' is not defined"

This is my first post, so I should say thanks for the nice efforts to create this software. I was thinking to make one from scratch. However, I found this which saved a lot of my time :D.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Oct 07, 2014 11:31 pm
by carroll6
Umm.. so what does this mean? I am a novice. What do I do to get it working, could you spell it out or is it too extremely detailed? I'd appreciate it.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Tue Oct 07, 2014 11:34 pm
by PyTom
We don't support RTL languages on Android, yet.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Wed Oct 08, 2014 3:10 am
by squall
PyTom wrote:We don't support RTL languages on Android, yet.
Thanks for your quick reply. I was trying to get it working (assuming it was a bug) but once I've read these lines, I stopped:

Code: Select all

# Modules directory.
cython(
    "_renpy",
    [ "IMG_savepng.c", "core.c", "subpixel.c"],
    sdl + [ 'png', 'z', 'm' ])

if has_fribidi and not android:
    cython(
        "_renpybidi",
        [ "renpybidicore.c" ],
        ['fribidi'], define_macros=[ ("FRIBIDI_ENTRY", "") ])
I am not used to write programs by Python or making apps on android. However, I'll be glad if you told me why you are excluding fribidi with android. So that I may help to make a patch for this issue since you're probably busy with other issues which are of higher priority.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Wed Oct 08, 2014 9:05 am
by PyTom
The answer is that I was unable to get the underlying fribidi library to compile on Android, so I couldn't connect my stuff to it.

Re: RAPT - Ren'Py Android Packaging Tool

Posted: Wed Oct 08, 2014 11:03 pm
by carroll6
I am on the edge of my seat waiting to find out how to fix this, how to compile to Android.