VictoryBPPlugin problem with save location in save to file

Qbsoon
Fri, 03 May 2019 12:56:31 +0000
Editor Scripting

Hi!
I’m using “File IO Save String Array to File” from VictoryBPPlugin as save game, beacuse I had problems with using save game object. On PC everything is fine, but I realised that I’ll have a problem with that on Android, beacuse in this command I have to specify save location. I’m wondering if there’s something like %appdir%, then I could just write “%appdir%/savegame.sav”. I could write the full android path (/storage/emulated/0/Android//data/com.appname/savegame.sav), but I don’t think that it would work on every phone and it would have problems with app installed on external memory. So I’m asking if there’s a variable for app directory, or any other solution to this problem (I don’t want to change to save game object even if it would work this time, beacuse it would take long to do so).

EDIT:

I just tried using “ProjectSavedDir()” and it works, but only on PC.

EDIT 2:

I tried using full android path to app folder as save directory, but still no saves on Android and the there’s no progress.sav file in directory I chosed.

1 post - 1 participant