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
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#196 Post 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
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
badspeler
Regular
Posts: 46
Joined: Fri Jun 17, 2011 9:06 am
Completed: Aris High Visual Novel, PQRS the Game
Projects: Aris High Visual Novel
Organization: Sotong Games
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#197 Post 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.
Games: Aris High Visual Novel (for Android), PQRS

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#198 Post 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?
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
sapiboonggames
Veteran
Posts: 299
Joined: Thu Jan 05, 2012 8:53 am
Completed: I Love You, Brother [BxB]
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#199 Post 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:
Visit my website: http://www.sapiboong.com

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

#200 Post by PyTom »

sapiboong>>> I'll look into this and get back to you.
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
sapiboonggames
Veteran
Posts: 299
Joined: Thu Jan 05, 2012 8:53 am
Completed: I Love You, Brother [BxB]
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#201 Post 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:
Visit my website: http://www.sapiboong.com

User avatar
KeyboardSan
Regular
Posts: 26
Joined: Sun Oct 05, 2014 5:38 am
Completed: A Sweet Meeting, SRZ, Flower Field
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#202 Post 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

User avatar
carroll6
Regular
Posts: 33
Joined: Tue Sep 30, 2014 5:18 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#203 Post 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.

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

#204 Post by PyTom »

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

squall
Newbie
Posts: 2
Joined: Tue Oct 07, 2014 2:50 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#205 Post 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.

User avatar
carroll6
Regular
Posts: 33
Joined: Tue Sep 30, 2014 5:18 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#206 Post 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.

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

#207 Post by PyTom »

We don't support RTL languages on Android, yet.
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

squall
Newbie
Posts: 2
Joined: Tue Oct 07, 2014 2:50 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#208 Post 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.

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

#209 Post 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.
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
carroll6
Regular
Posts: 33
Joined: Tue Sep 30, 2014 5:18 pm
Contact:

Re: RAPT - Ren'Py Android Packaging Tool

#210 Post by carroll6 »

I am on the edge of my seat waiting to find out how to fix this, how to compile to Android.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]