You are here

Application not saving data properly

5 posts / 0 new
Last post
Mati9319
Offline
Last seen: 6 years 7 months ago
Joined: 2016-05-14 07:13
Application not saving data properly

First of all, I've already seen some other threads regarding similar issue, but none gave me any working solution. Oh, and let's call my game "AppNamePortable". As for game's data folder, I'll go with simply "[datafolder]".

So, I decided to make one game portable. Using the template and generating the launcher went smooth and without any problems.

And now: said game saves data in "C:Users/[username]/appdata/local/[datafolder]". The thing is, the portable version of this game (made by myself) instead of saving data in "AppNamePortable/Data" folder, still uses my PC account's "appdata" folder, leaving no trace in "AppNamePortable/Data" folder.

I've already tried cutting and pasting "[datafolder]" from "C:Users/[username]/appdata/local" to "AppNamePortable/Data" folder and then adding

[DirectoriesMove]
[datafolder]=%LOCALAPPDATA%\[datafolder]

to "AppNamePortable.ini". It worked, but only partially. "[datafolder]" got successfully copied from "AppNamePortable/Data" to "C:Users/[username]/appdata/local" when starting the game, but the new/updated data didn't get copied back to "AppNamePortable/Data" when I closed the game.

Is there any solution?

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
belive it should be somethinglikethis

%PAL:DataDir%\DataFolder=%LOCALAPPDATA%\DataFolder

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Mati9319
Offline
Last seen: 6 years 7 months ago
Joined: 2016-05-14 07:13
Sadly, this command's not

Sadly, this command's not even doing anything :/ It's not even copying "[datafolder]" from "AppNamePortable/Data" to "C:Users/[username]/appdata/local" when starting the game.

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
[DirectoriesMove]

[DirectoriesMove]
%PAL:DataDir%\DataFolder=%LOCALAPPDATA%\DataFolder

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Mati9319
Offline
Last seen: 6 years 7 months ago
Joined: 2016-05-14 07:13
That's exactly how I did it

That's exactly how I did it and it's not working.

Log in or register to post comments