Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ren'Py Engine for Android - make visual novels on your phone

Ren'Py Engine for Android

The full Ren'Py 8.6.1 SDK, on your phone. Create, write, test and play visual novels without a PC.

Download APK

Build Ren'Py 8.6.1 Android 6.0+ arm64 · arm32 · x86_64 License: MIT

Download · Screenshots · Getting started · FAQ · How it works

Note

This is an unofficial community port. It is not made or endorsed by the Ren'Py project. Ren'Py itself is by Tom Rothamel and contributors (renpy.org).


✨ Features

🚀 Real Ren'Py launcher The same launcher as on PC: projects list, actions and preferences, in 20+ languages.
🆕 Create New Project The full GUI template: resolution, colour theme, generated images and translations, all made on the phone.
▶️ Launch Project Runs your game inside the app. Tap ‹ Launcher in the corner to come back.
🔍 Navigate Script Jump to any label, define, screen or transform in your project.
✅ Check Script (Lint) Full lint report, shown in the app.
📝 File viewer + your editor Read any script in the app, then Open in editor app (Acode, QuickEdit, Markor, …) to edit it.
🎨 Change/Update GUI, 🌍 Generate Translations, 💬 Extract Dialogue, ♻️ Force Recompile, 🧹 Delete Persistent All of them run on the phone.
🛡️ Errors don't close the app A broken script shows Ren'Py's error screen. Fix it in your editor and tap Reload, or Quit back to the launcher, which shows the full traceback.
📚 Tutorial & The Question Both bundled, so you can learn Ren'Py right on the device.
📂 Your files, your folder Projects are plain files in RenPyProjects on your phone storage. Copy them to a PC at any time.

📸 Screenshots

Launcher front page
The launcher: your projects and every action.
Starter game running
Launch Project: the game runs in the app.
Return to launcher dialog
‹ Launcher takes you back at any time.
New project colour picker
New Project: pick a colour scheme…
New project created
…and get the full GUI template.
New project running
Your new game, playable right away.
Navigate Script
Navigate Script: labels, defines, screens.
Lint report
Check Script: the lint report.
File viewer
File viewer with Open in editor app.
Error screen in a game
A bug in your script shows Ren'Py's error screen…
Error report in the launcher
…and Quit brings the traceback to the launcher.
The Ren'Py tutorial
The official Tutorial, bundled.

Screenshots are from the release build, running in the project's Android simulator (see Testing).


📲 Install

Requirement
Android 6.0 or newer
Graphics OpenGL ES 3.0 (nearly every phone from the last ten years)
CPU arm64 (most phones), arm32 (older phones) or x86_64 (emulators), all in one APK
Space a 105 MB download; the engine unpacks itself on first start, so leave a few hundred MB free for it and your projects
  1. Download RenPy-8.6.1-engine-android-universal-arm32-arm64.apk from the latest release.
  2. Open it. If Android asks, allow your browser or file manager to install unknown apps.
  3. Start Ren'Py Engine and pick your language.
  4. Tap Grant file access (top right) and allow it:
    • Android 11 and newer: turn on Allow access to manage all files, then go back.
    • Android 6 – 10: tap Allow in the dialog.

Grant file access button

Tip

You can skip step 4. Your projects are then kept in the app's own folder, and the launcher moves to RenPyProjects once you grant access, unless you've already made projects in the app's folder.

Updating: install the new APK over the old one. Your projects and settings stay.


🚀 Getting started

Your first five minutes

  1. Select Example Game in the projects list. The app creates it on first start.
  2. Tap Launch Project and play it. Tap ‹ Launcher (top left) → Yes to come back.
  3. Under Edit File, tap script.rpy. It opens in the viewer.
  4. Tap Open in editor app, pick your editor, change a line of dialogue and save.
  5. Back in Ren'Py Engine, tap Launch Project again to see your change.

Making your own game

  1. Tap + Create New Project, name it, and pick a resolution and colour scheme. The launcher builds the full GUI template, like on PC.
  2. Edit game/script.rpy (story), game/options.rpy (settings) and game/gui.rpy / game/screens.rpy (look). Use Open in editor app or open them straight from your editor.
  3. Put images in game/images/ and music in game/audio/.
  4. Tap Check Script (Lint) now and then to catch mistakes early.
  5. Tap Launch Project to test.

Recommended editor apps

Any app that edits plain text works. These are good for Ren'Py:

  • Acode has syntax highlighting, tabs and a file tree. Open the RenPyProjects folder as a project.
  • QuickEdit is fast, with line numbers.
  • Markor is simple and dependable.

Tip

Ren'Py scripts are indentation-sensitive. Set your editor to insert 4 spaces for Tab.

Where are my files?

What Where
Your projects /storage/emulated/0/RenPyProjects/<project>/
Projects (no file access granted) /storage/emulated/0/Android/data/org.renpy.engine/files/RenPyProjects/
A project's saves <project>/game/saves/
A project's errors <project>/traceback.txt, <project>/errors.txt
Crash report (if the app closes) RenPyProjects/renpy_crash.txt

✅ What works / ❌ What needs a PC

Works on the phone Needs the desktop Ren'Py SDK
✅ Create New Project (GUI template) ❌ Build Distributions (Windows / Mac / Linux zips)
✅ Launch Project, Tutorial, The Question ❌ Android (build an APK of your game)
✅ Navigate Script, Check Script (Lint) ❌ iOS (needs Xcode)
✅ Change/Update GUI ❌ Web (needs the web toolchain)
✅ Generate Translations, Extract Dialogue
✅ Force Recompile, Delete Persistent
✅ Edit files (viewer + your editor app)

When your game is ready to ship, copy its project folder to a PC with the Ren'Py SDK and build from there. The project is the same on both.


❓ FAQ & troubleshooting

How do I get back to the launcher from a game?

Tap the small ‹ Launcher button in the top-left corner, then Yes. It's on every screen, including the game's menus. Ren'Py hides the Quit button on phones, which is why this button exists.

I changed my script, but the game didn't change.

Save the file in your editor, then go back and tap Launch Project again. If you're on an error screen, tap Reload. If it still looks old, tap Force Recompile.

My game shows "An exception has occurred" or a parse error.

That's Ren'Py telling you where the problem is: file name and line number. Tap Open to view the full report, fix the line in your editor, then tap Reload (parse errors) or Quit → Launch Project. After Quit, the launcher also shows the traceback.

"Open in editor app" says no app could open the file.

Install a text editor (see the recommended apps above), or open the file from inside the editor: browse to RenPyProjects/<project>/game/.

I don't see my projects / the folder is empty.

Tap Grant file access if it's showing, then refresh next to PROJECTS:. Projects made before you granted access are in Android/data/org.renpy.engine/files/RenPyProjects/. Move them to /storage/emulated/0/RenPyProjects/ with a file manager.

The app closed by itself.

It shouldn't. If it does, open RenPyProjects/renpy_crash.txt (or Android/data/org.renpy.engine/files/renpy_crash.txt) and attach it to a new issue, along with your phone model and Android version.

Can I publish a game made with this?

Yes. Your project is a normal Ren'Py 8.6.1 project. Build the release with the desktop SDK (see above). Ren'Py's license applies to games, the same as on PC.

Does it need the internet?

No. Everything runs offline. The Documentation and Ren'Py Website links open your browser.

Reporting a bug

Please open an issue with:

  • your phone model and Android version
  • what you tapped, step by step
  • renpy_crash.txt if the app closed, or traceback.txt / errors.txt / log.txt from the project folder.

🛠 How it works

The short version

On a PC, the launcher starts a second Ren'Py process for every game run and every tool (lint, scans, translations…). Android can't do that, so this port runs them in the same process and switches between the launcher and your project:

  1. The launcher turns each action into a job: the exact renpy.sh <project> <command> line the PC would run.
  2. The engine restarts itself in-process, runs the job, and returns to the launcher however the job ends. That covers finishing, quitting, a parse error, an uncaught exception or sys.exit(). The graphics renderer is kept across the switch.
  3. Launcher steps that wait for a tool's result (Navigate Script, lint, Change GUI, translations) resume as if the tool had run in the background.

Jobs live in memory only, so starting the app always opens the launcher. A broken project can never trap you in a crash loop.

The long version (for contributors)
Piece What it does
port/build_android.py Downloads the official Ren'Py SDK + RAPT, patches them, compiles the launcher, assembles the android.dist tree and drives rapt.build.build() directly. --stage-only skips Gradle.
port/patches/main.py Replaces renpy.py as the bootstrap: job queue, in-process hand-off, the "‹ Launcher" button, crash dumps.
port/patches/mobile_support.rpy Launcher additions: projects folder (with or without storage permission), starter project, on-device Project.launch, flow resumption, file viewer, "Grant file access".
renpy/bootstrap.py patch Starts jobs, returns to the launcher however a run ends, keeps the renderer, writes fatal errors before Android's System.exit.
renpy/editor.py patch The system editor hands files to the launcher's viewer.
renpy/lint.py, renpy/translation/* patches Ren'Py's common files come from the APK, with no common directory on disk.
renpy/loader.py patch In project mode the packaged launcher assets are skipped.
gui7/code.py patch + launcher/ on disk New Project reads the icon template and translated template code from disk.
app-AndroidManifest.xml patch requestLegacyExternalStorage for Android 10.
iconmaker.py patch Runs without pygame_sdl2 and finds icons in the dist directory.

🧪 Testing without a phone

port/sim/ runs the packaged engine on Linux as if it were Android. It uses the real RAPT packaging (private tar + APK assets), the real android runtime package, and the Android code paths of the engine and the port; only pyjnius is stubbed. It renders offscreen with Mesa, taps buttons by their text, and takes screenshots.

sudo apt-get install libegl1 libgles2 libegl-mesa0      # Mesa EGL/GLES
export BUILD_WORK=$PWD/build-work
sh port/sim/build_and_package.sh                        # stage + fake device
python3 port/sim/run_scenarios.py                       # all UI scenarios

The scenarios in port/sim/scenarios/ cover launch and return, every launcher tool, New Project, game errors, missing storage permission and the desktop-only buttons. CI runs them before every release, so a build that crashes in the simulator is never published. Screenshots are uploaded as a build artifact.

🏗 Building from source

pip install pillow
python3 port/build_android.py      # needs JDK 21, Android SDK, ~4 GB disk

The APK lands in out/RenPy-8.6.1-engine-android-universal-arm32-arm64.apk. Release builds are signed by GitHub Actions with the keystore in the repo secrets (ANDROID_KEYSTORE_B64, RENPY_RELEASE_STORE_PASSWORD, RENPY_RELEASE_KEY_ALIAS). Every push to main that touches port/ publishes a new release.


📜 License & credits

  • Ren'Py is copyright © Tom Rothamel and contributors, MIT licensed: renpy.org. This port ships unmodified Ren'Py engine and launcher code plus the patches described above, which are also MIT.
  • The bundled Tutorial and The Question are part of the Ren'Py SDK.
  • Ren'Py's own license (in the SDK) covers the engine and its components.
Made for everyone who has a story to tell and a phone in their pocket. 💜