Tool Ren'Py Alternative/ Second save location for RenPy 7.8.4 / 8.3.4 SDK in Android Ports

TATOSHCKA

New Member
Jun 3, 2018
4
8
Using the modified version 8.3.4 from the first post, when initially scanning any game, it immediately returns an error.

You don't have permission to view the spoiler content. Log in or register now.

Please tell me how to fix this error.
 

Wills747

Engaged Member
Dec 14, 2018
2,517
5,307
Using the modified version 8.3.4 from the first post, when initially scanning any game, it immediately returns an error.

You don't have permission to view the spoiler content. Log in or register now.

Please tell me how to fix this error.
Do you have character os?
Try using osc(for example character Oscar)
os is a python function built into RenPy.
 

TATOSHCKA

New Member
Jun 3, 2018
4
8
My operating system is Windows 11 24H2 x64.
Python version 3.12.6
Normal renpy scans and builds ports without errors. But, the saves are in the system folder and are deleted with the game. It is the modified file 00sync.rpy that gives errors. If you use the standard file, the ports are collected, but the saves are not in the documents folder.
 
  • Sad
Reactions: estrada777

Wills747

Engaged Member
Dec 14, 2018
2,517
5,307
My operating system is Windows 11 24H2 x64.
Python version 3.12.6
Normal renpy scans and builds ports without errors. But, the saves are in the system folder and are deleted with the game. It is the modified file 00sync.rpy that gives errors. If you use the standard file, the ports are collected, but the saves are not in the documents folder.
For the error you posted above, my comment stands.
Also you should think about placing RenPy SDK in the root of your drive to avoid file length errors.
 

estrada777

Forum Fanatic
Modder
Donor
Mar 22, 2020
4,144
10,145
My operating system is Windows 11 24H2 x64.
Python version 3.12.6
Normal renpy scans and builds ports without errors. But, the saves are in the system folder and are deleted with the game. It is the modified file 00sync.rpy that gives errors. If you use the standard file, the ports are collected, but the saves are not in the documents folder.
Search the game's code for "os"
The developer should never use the variable "os" for anything.
 

Tidus Black

Newbie
Dec 20, 2021
42
46
My operating system is Windows 11 24H2 x64.
Python version 3.12.6
Normal renpy scans and builds ports without errors. But, the saves are in the system folder and are deleted with the game. It is the modified file 00sync.rpy that gives errors. If you use the standard file, the ports are collected, but the saves are not in the documents folder.
Ren'py sdk 8.0+ previously presented an error if the SDK was not on the PC's C drive, try testing it if it is not.
Another error is that in some games the SDK gives an error if the antivirus is active. I had this error in 3 games with Renpy 8.3.
 

Wills747

Engaged Member
Dec 14, 2018
2,517
5,307
Ren'py sdk 8.0+ previously presented an error if the SDK was not on the PC's C drive, try testing it if it is not.
Now this I've never come across, I've been using a ram drive Z:\ for years now for SDK building games both there and projects folder in H:\ drive.
Edit: another odd error someone else had was caused by using a VPN while building.
 

estrada777

Forum Fanatic
Modder
Donor
Mar 22, 2020
4,144
10,145
Now this I've never come across, I've been using a ram drive Z:\ for years now for SDK building games both there and projects folder in H:\ drive.
Edit: another odd error someone else had was caused by using a VPN while building.
All of my games have been built using drive S:, so I'm skeptical about that claim.
 

Kayaa

Member
Mar 9, 2024
129
626
Wills747
Hey, sorry to bother you. I've run into an issue where my saves aren’t being stored where they should be.

Let me start from the beginning. I’m using Ren'Py version 8.3.4. At first, I was making Android ports without using your tool, and everything was building perfectly fine with no errors. Then I saw your post here and downloaded the Ren'Py 8.3.3/8.3.4 Bare Files Pack. I didn’t change or rewrite anything in the code. I installed everything by default (First, I completely closed Ren'Py, then installed your files, and after that, I reopened Ren'Py and started building the ready-to-go games).

The build process went smoothly. But then, when I installed and launched it on my phone, the problems started.
  1. First, during the installation, I got a warning from Google Play Protect, saying that the game was built for older versions of Android and that installing it could harm the device, etc. To proceed, I had to confirm the installation manually. I should note that this never happened when I was building projects using the clean Ren'Py without your script.
  2. After installing the game, the save folder in Documents didn’t appear. And when I uninstalled the game, all the saves disappeared as they usually would with a regular Android port build.
I really appreciate your work, and maybe someone has encountered this issue before, but I’d be grateful if you or anyone else could help me figure out what’s going wrong.
 

Wills747

Engaged Member
Dec 14, 2018
2,517
5,307
Wills747
Hey, sorry to bother you. I've run into an issue where my saves aren’t being stored where they should be.

Let me start from the beginning. I’m using Ren'Py version 8.3.4. At first, I was making Android ports without using your tool, and everything was building perfectly fine with no errors. Then I saw your post here and downloaded the Ren'Py 8.3.3/8.3.4 Bare Files Pack. I didn’t change or rewrite anything in the code. I installed everything by default (First, I completely closed Ren'Py, then installed your files, and after that, I reopened Ren'Py and started building the ready-to-go games).

The build process went smoothly. But then, when I installed and launched it on my phone, the problems started.
  1. First, during the installation, I got a warning from Google Play Protect, saying that the game was built for older versions of Android and that installing it could harm the device, etc. To proceed, I had to confirm the installation manually. I should note that this never happened when I was building projects using the clean Ren'Py without your script.
  2. After installing the game, the save folder in Documents didn’t appear. And when I uninstalled the game, all the saves disappeared as they usually would with a regular Android port build.
I really appreciate your work, and maybe someone has encountered this issue before, but I’d be grateful if you or anyone else could help me figure out what’s going wrong.
1. Google play protect warning is because I'm targeting Android 10 due to more recent restrictions on apps accessing file space outside of its own android/data folder. Unfortunately I can't think of a work around while still using RenPy's build system.
(If someone out there has an idea, let me know!)
2. The Bare files pack was intended to be used on a fresh unused SDK folder in case someone wanted to customise settings(folders, Apk name etc). Best advice is to download the ready to go version.

Edit: 1a. You'll also see a warning if you use a new android.keystore/bundle.keystore files. Best practice is to copy your old keystores to your new rapt folder.
(Yes, I have modified the way RenPy deals with this as well as the older behaviour of centralised keystores was far better for porting)
 
Last edited:
  • Like
Reactions: Kayaa