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
562
Reaction score
239
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
562
Reaction score
239
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
562
Reaction score
239
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
562
Reaction score
239
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
562
Reaction score
239
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

Sometimes you Just need to realise someone is beyond help... Still hard to walk away tho :(
100 Horror/Tragedy Sample Maps, Penguin Mech Sprite, & TileD Templates | RPG Maker News #70

Continuing working on abs. So far I have done the workout twice. I am excited to see the results after a couple of weeks. How is everyone doing? :)
MZ: oh boy imma work today
Me, excited: Really?
MZ, doesn't do what I tell It too
Me: I Thought-
MZ: I am Working!
Oof, this "side project" of mine is starting to get as complex as a VS plugin, at least as far as plugin parameters are concerned. I think I now understand why a plugin like this doesn't already exist(that I know of). Learning a lot while trying to make it work though!

Forum statistics

Threads
112,224
Messages
1,066,661
Members
145,829
Latest member
jifei19860311
Top