Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I'm happy to announce Ren'Py 7.1.1. This is a bug release for Ren'Py 7.1, which improves the new android support and fixes a number of other issues.
Some of the more important bugfixes include:
A change to the History screen to fix problems with [[ in dialogue. (This requires you to change screens.rpy, see the changelog for details.)
The Android SDK uses a sufficient amount of memory on low-memory computers.
A problem with creating non-adaptive Android icons has been fixed.
Zero-width characters are drawn correctly, and non-breaking spaces are respected in more places. (This fixes a problem with Arabic text rendering.)
Automatic window management now considers dialogue and captions associated with the menu statement.
There have also been a few small feature additions:
The SetVariable and ToggleVariable functions now can take namespaces, and fields, so it's posible to have actions like SetVariable("hero.strenght", 42) and ToggleVariable("persistent.alternate_outfits").
It is now possible to nestle the CTC indicator into the text in such a way that it can not be on a separate line from the final word of dialogue.
Drags (used in drag-and-drop) now support alternate clicks, which are right clicks on PC and long-presses on touch platforms.
The Russian and Korean translations have been updated.
The 86_64 Android APK is given a different numeric version than the arm version, allowing both to be uploaded to the Play store.
Ever since updating to this build, I've been having trouble exporting the Android versions of my game. I deleted and re-installed RAPT, but I still keep getting this:
Ren'Py 7.1.1.929
Updating project.
Creating assets directory.
Packaging internal data.
I'm using Gradle to build the package.
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
The build seems to have failed.
Are there new configuration options I need to add to my project somewhere?
Main Website
Includes information about and links to many of my current and past projects.
Major Game Projects
[Nightshade] Eldritch Academy, Eldritch University, Blooming Nightshade, Flowering Nightshade, Life as Designed
[Team Despair] Corpse Party D2 series
First, I would like to thank you all again for creating this wonderful platform. My dream is to someday work as a fulltime developer, and Renpy was a great step for me. My game is getting a bit more downloads recently (got good spot in terms like 'super seducer' and whatnot lol) and I'm getting something like 1k downloads per day (my game is in portuguese, so I cant compete in the global market yet).
Well, with more players, I started to see some bugs. They are happening only in some scpecific phone devices, specially running Android 6.0. Its not all the devices, but some of them, like Galaxy Grand Prime Plus (grandppltedtv) - not the 5.0 version.
The errors seems to be related to the pymodules (libpymodules.so). I dont know if this is a problem with Renpy itself, because I temper a lot with it, adding lots of external resources (firestore, storage, facebook api and other libraries) to my game using Android Studio.
However, these problems started when I compiled the game with targetsdkversion 28. After the release of Renpy 7.1.0, I changed the target version back to 22 (because I knew android 23 changed a lot of things) and everything was fine. Two weeks ago I finally changed it to SDK 28 (the original sdk generated from renpy) and the problems started.
I know this is not a Renpy problem as I'm using external resources, but I would really love to get help, maybe some indication from you guys how I coud handle these errors.
I'm reading a lot since and found good chunk of info about python-for-android and other resources renpy uses. I upgraded/downgreaded Gradle, tried some other shenanigans but nothing seems to work.
@PyTom: How do I switch to a 64-bit version of Java? I've been checking my Java versions and such, and I thought I was already using a 64-bit version... Is there a specific way to do it for non-browser applications?
Main Website
Includes information about and links to many of my current and past projects.
Major Game Projects
[Nightshade] Eldritch Academy, Eldritch University, Blooming Nightshade, Flowering Nightshade, Life as Designed
[Team Despair] Corpse Party D2 series
Okay, I installed a 64-bit version of the JDK and got past my previous issue. I ran into a different issue before I went back to create a key to sign the APK files with, though. I had assumed the step was optional, but it causes an error if you skip creating a key and then try to build a package:
Ren'Py 7.1.1.929
Updating project.
Creating assets directory.
Packaging internal data.
I'm using Gradle to build the package.
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile
:app:processReleaseResources
:app:generateReleaseSources
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease
:app:transformDexArchiveWithExternalLibsDexMergerForRelease
:app:transformDexArchiveWithDexMergerForRelease
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease
:app:validateSigningRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file 'C:\[redacted]\Renpy SDK\rapt\android.keystore' not found for signing config 'release'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 19s
45 actionable tasks: 15 executed, 30 up-to-date
The build seems to have failed.
Main Website
Includes information about and links to many of my current and past projects.
Major Game Projects
[Nightshade] Eldritch Academy, Eldritch University, Blooming Nightshade, Flowering Nightshade, Life as Designed
[Team Despair] Corpse Party D2 series
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/android.rpy", line 462, in <module>
File "game/mobilebuild.rpy", line 197, in call
WindowsError: [Error 2] El sistema no puede encontrar el archivo especificado
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "launcher/game/android.rpyc", line 460, in script
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\renpy\ast.py", line 882, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\renpy\python.py", line 1913, in py_exec_bytecode
exec bytecode in globals, locals
File "game/android.rpy", line 462, in <module>
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 234, in install_sdk
check_java(interface)
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 47, in check_java
if not run_slow(interface, plat.javac, plat.path("buildlib/CheckJDK8.java"), use_path=True):
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 35, in run_slow
interface.call(args, cancel=True, **kwargs)
File "game/mobilebuild.rpy", line 197, in call
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 710, in __init__
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 958, in _execute_child
WindowsError: [Error 2] El sistema no puede encontrar el archivo especificado
Windows-8-6.2.9200
Ren'Py 7.2.0.6
Ren'Py Launcher 7.2.0.6
Sat Oct 20 02:03:44 2018
I installed java x64 sdk and Android sdk, as well as RAPT, but I must be missing something.
Finally solved it. Not sure how, but among the things I have done are:
- Set writing rights for the Program Files folder.
- Uninstall and re-install the Android SDK.
Hope it helps for any other who eventually reach the same problem.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/android.rpy", line 462, in <module>
File "game/mobilebuild.rpy", line 197, in call
WindowsError: [Error 2] El sistema no puede encontrar el archivo especificado
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "launcher/game/android.rpyc", line 460, in script
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\renpy\ast.py", line 882, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\renpy\python.py", line 1913, in py_exec_bytecode
exec bytecode in globals, locals
File "game/android.rpy", line 462, in <module>
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 234, in install_sdk
check_java(interface)
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 47, in check_java
if not run_slow(interface, plat.javac, plat.path("buildlib/CheckJDK8.java"), use_path=True):
File "C:\Users\XXX\Downloads\RENPY\renpy-7.1.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 35, in run_slow
interface.call(args, cancel=True, **kwargs)
File "game/mobilebuild.rpy", line 197, in call
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 710, in __init__
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 958, in _execute_child
WindowsError: [Error 2] El sistema no puede encontrar el archivo especificado
Windows-8-6.2.9200
Ren'Py 7.2.0.6
Ren'Py Launcher 7.2.0.6
Sat Oct 20 02:03:44 2018
I installed java x64 sdk and Android sdk, as well as RAPT, but I must be missing something.