YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
I was wondering if anyone could help me find a way to make the saves be stored in the data local folder of the game(Ex Android/data/"gamename"/files/), I already found some RPG maker MV android games that can do that.

I found this AndroidDevKit that seems to have a method to save to the local device, it is already outdated but I managed to make it work, but the saves are still hidden, I do not know if I did wrong.o_O

https://github.com/Creta5164/RPGMakerMV-AndroidDevKit

I have been trying for days to find a way to make it possible to export saves from a pc game to android, but I don't know much about android development.:frown:

Sorry for my English, I'm not sure if it was very clear what I want to do.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
408
Reaction score
180
First Language
PT-BR
Primarily Uses
RM2k3
This is very interesting, could you list some of these games?
 

YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
This is very interesting, could you list some of these games?
First I want to say that I work with adult games, so the games I know are for adults...

I apologize for this and if you don't want help I will understand.:smile:

I recently tested a game called "Peasant's Quest" and I realized that it is possible to save the game on the smartphone android and pick up the saves in Android/data/"gamename"/files/saves.

(I'm sorry I said "games" up there, my mistake.)

This is the only one I tested, I can't tell you correctly if there is another one that does this, but it is very likely that there are more games that do this.

As I can say this is a very important function for my game because there are some people who play and have saves with 14 hours of game or more, sometimes some error that is my fault compromises the save, then the person can send her save and I can fix.
 
Last edited:

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
408
Reaction score
180
First Language
PT-BR
Primarily Uses
RM2k3
I just needed access to AndroidManifest.xml, after analyzing, I could see that the developer used this method to compile the game:
 

YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
I just needed access to AndroidManifest.xml, after analyzing, I could see that the developer used this method to compile the game:
I have used this method before (I think this is the most famous) but the saves are still hidden, so as it didn't work I tried to migrate to the method I mentioned in the other post.

Maybe he must have modified the code of this method to work with local save, but I have no idea how this was done.o_O
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
408
Reaction score
180
First Language
PT-BR
Primarily Uses
RM2k3
From what I have compared, the really relevant modification that the developer made was to include this line, which refers to a permission:
XML:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Reference:
 

YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
From what I have compared, the really relevant modification that the developer made was to include this line, which refers to a permission:
XML:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Reference:
I think I tried using this permission, but I will try again.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
408
Reaction score
180
First Language
PT-BR
Primarily Uses
RM2k3
I noticed some differences beyond the previous one, so I took the one from the game you talked about and just modified the "Package" attribute.
To make sure it doesn't replace another app, set a name for your game.
Default: mv.packagename.mygame

XML:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:compileSdkVersion="30" android:compileSdkVersionCodename="11"
    package="mv.packagename.mygame"
    platformBuildVersionCode="30"
    platformBuildVersionName="11">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <application
        android:allowBackup="true"
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:fullBackupContent="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:theme="@style/AppTheme">
        
        <activity android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTask"
            android:name="systems.altimit.rpgmakermv.WebPlayerActivity"
            android:screenOrientation="sensorLandscape">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data
                    android:host="@string/app_host"
                    android:scheme="@string/app_scheme" />
            </intent-filter>
        </activity>
        <activity android:name="systems.altimit.libandroidapi.FileWebViewActivity" android:parentActivityName="systems.altimit.rpgmakermv.WebPlayerActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".WebPlayerActivity"/>
        </activity>
    </application>
</manifest>
 

YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
I noticed some differences beyond the previous one, so I took the one from the game you talked about and just modified the "Package" attribute.
To make sure it doesn't replace another app, set a name for your game.
Default: mv.packagename.mygame

XML:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:compileSdkVersion="30" android:compileSdkVersionCodename="11"
    package="mv.packagename.mygame"
    platformBuildVersionCode="30"
    platformBuildVersionName="11">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <application
        android:allowBackup="true"
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:fullBackupContent="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:theme="@style/AppTheme">
       
        <activity android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTask"
            android:name="systems.altimit.rpgmakermv.WebPlayerActivity"
            android:screenOrientation="sensorLandscape">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data
                    android:host="@string/app_host"
                    android:scheme="@string/app_scheme" />
            </intent-filter>
        </activity>
        <activity android:name="systems.altimit.libandroidapi.FileWebViewActivity" android:parentActivityName="systems.altimit.rpgmakermv.WebPlayerActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".WebPlayerActivity"/>
        </activity>
    </application>
</manifest>
[ISPOILER]
<activity android:name="systems.altimit.libandroidapi.FileWebViewActivity" android:parentActivityName="systems.altimit.rpgmakermv.WebPlayerActivity"> <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".WebPlayerActivity"/> </activity>
[/ISPOILER]
This part here is giving an error, it's like a java class is missing.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
408
Reaction score
180
First Language
PT-BR
Primarily Uses
RM2k3
After analyzing it well, I found many differences between the "rpg_core.js" of this game compared to what I did as a test.

And it wasn't just that file, to be honest, it seems to have a lot of adaptations, unfortunately I don't dare to mess with this type of mixture.

Sorry for my bad English.
 

YioruYioru

Villager
Member
Joined
Mar 31, 2021
Messages
22
Reaction score
4
First Language
Portuguese - BR
Primarily Uses
RMMV
After analyzing it well, I found many differences between the "rpg_core.js" of this game compared to what I did as a test.

And it wasn't just that file, to be honest, it seems to have a lot of adaptations, unfortunately I don't dare to mess with this type of mixture.

Sorry for my bad English.
No problem, thanks for the help!
 

Latest Threads

Latest Posts

Latest Profile Posts

I wish I can work faster on my game. But I don't want to get burned out. :(
I've been working on something on and off for a few years now, and I've been reluctant to share any details on the project before I had anything playable because I did not want to generate hype only for the project to go back on hiatus. That being said I believe what I'm working on is very unique and pushes the boundaries of what RPG Maker projects can be. Bold claims, I know but just wait.
Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[My favorite slow moving track I've made so far]

Forum statistics

Threads
111,204
Messages
1,059,241
Members
144,455
Latest member
epokshiem
Top