Working with Ren’Py: Part 7: Building Distributions

1_Logo

Working with Ren’Py:

Advanced Ren’Py:

Customizing Ren’Py:

Ren’Py + Python:

Ren’Py is a engine for creating visual novels. It comes with a suite of tools for taking code and transforming it into programs that can be run on Windows, Mac, Linux, and even, with a little more work, mobile platforms like Android and iOS.

 

Building for Windows, Mac, and Linux

Once a project has been finished or is at a point where play-testing can begin, Ren’Py can help build the project for release on Windows, Mac, and Linux systems.

1_BuildDistributions

After selecting the project from the left-hand side of the Ren’Py Launcher, click on “Build Distributions” from under Actions on the top of the right-hand set of options.

2_BuildOptions

The Ren’Py Launcher will provide the opportunity to change any of the default settings or take additional actions.

If unsure or no additional actions are needed at this time, click “Build” to continue.

3_Building

Depending on the size of the project and the operating systems chosen, this process can take some time.

4_Built

Once finished, the Ren’Py Launcher will open a folder containing the files.

Note: The above screenshot was taken on a Windows system. Other operating systems or versions may appear differently.

The files can now be sent out for play with a wider audience or to others for play-testing.

 

Building for Android

While building distributions for Windows, Mac, and Linux systems is self-contained and easy, building for Android devices is a multi-step process can can, potentially, take significant time to work through and wait for updates, downloads, and code compiling.

5_BuildAndroid

Click on “Android” under Actions to begin.

6_RAPT

To continue, the Ren’Py Launcher must download the Ren’Py Android Packaging Tool. Agree to continue with the process.

7_Update

The Ren’Py Launcher will download an update.

8_Restart The Ren’Py Launcher will need to be restarted.

Once the Ren’Py Launcher restarts, click on “Android” again under Actions to open a new building process.

 

Install SDK & Create Keys

9_AndroidAgain

Click on “Install SDK & Create Keys” to begin.

10_SDK

The Ren’Py Launcher will download and extrtact the SDK.

11_SDKYesNo

To proceed, the Android SDK Terms and Conditions must be accepted.

12_Keys

The Ren’Py Launcher will ask if signing keys exist or not. If unsure or if signing keys have not previously been created, click “Yes”.

13_VerifyStorage

The Ren’Py Launcher will ask for confirmation that the created keys are stored in a secure place. Verify and then click “Yes” to continue.

14_Organization

The Ren’Py Launcher will ask for the name of the organization

15_ReadyForPackaging

If everything has been configured, click “Continue” to proceed to the next step.

 

Configure

16_Configure

Click on “Configure” to proceed.

17_ApplicationName

Fill out the application name and click “Continue” to proceed.

18_Shortname

Fill out the short name of the application.

19_ASCIIName

Enter the name of the package.

Note: It is highly recommended to enter something like “com.author name.project name” without spaces between words and all lowercase if unsure.

20_Version

Enter a number for the version.

Note: If the default text provided by the Ren’Py Launcher is entered, an error will occur and the configuring process will need to be restarted.

21_VersionCode

Enter a version code or accept the default number.

22_Orientation

Choose the orientation. (If unsure, choose the default, landscape, orientation.)

23_InApp

Choose the in-app purchasing option. (If unsure, choose the default, neither, option.)

24_Size

Choose an expansion APK option. (If unsure, choose “No…”.)

25_AndroidVersion

Choose the Android version. (If unsure, choose the default, Android 4.0, option.)

26_NetworkAccess

Choose if the project should access the Internet or not. (If unsure, choose the default, No, option.)

 

Build Package

27_BuildAndroid

Once a project has been configured, it can be built, installed, or launched.

 

Build

28_Build

To test if the project will build correct without install or launching it, click “Build Package”

29_BuildingAndroind

The Ren’Py Launcher will build the project.

30_SuccessfulBuild

If successful, the Ren’Py Launcher will finish the process and open a folder.

31_AndroidAPKBuilt

The built APK file will be found in the opened folder.

Note: If following this post from start to finish, the folder will also contain the previously built distributions for Windows, Mac, and Linux systems.

 

Build & Install, and Build, Install & Launch

32_NoDevice

Both Build & Install and Build, Install & Launch require physical (or virtual) devices to be connected to the computer. If they are not, an error will occur “failed to get featured set: no devices/emulators found” and the process will stop. Click “Cancel” to return to the menu.

Note: Using the Remote ADB Connection (to connect without a physical cord), may require enabling Remote ADB Access through the Developer Mode on the device. Refer to Google’s Instructions on how to enable Developer Mode.

 

Emulation

33_Emulation

The Ren’Py Launcher can attempt to emulate the project on a Phone, Tablet, or Television. Clicking on these will launch the emulation in a new window with the input matching the description to the right of each option as described in the Ren’Py Launcher.