00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Edits to post #26474059 by Junjo

Edited

At 2/22/20 11:57 AM, 3p0ch wrote:
At 6/3/19 04:55 AM, Junjo wrote: Hi all.
If I am not wrong, every time I update the zip file of a HTML5 game, it seems that NG creates a new folder for it. This changes the reference of the data saved on the IndexDB, so the GAME PROGRESS IS LOST for all players (I think this applies to PlayerPrefs too).

How do you deal with this problem, guys?
If you're using PlayerPrefs, it unfortunately loses everyone's save data when you post an update to your game.

I came up with a solution to the problem, [...]


So, the sort answer is that it is the PlayerPrefs implementation witch depends on the url, but not the whole idb thing... so I should stop using playerprefs and write directly to a fixed path of the idb instead.

Thank you! I will give it a try.


At 2/22/20 11:57 AM, 3p0ch wrote:
At 6/3/19 04:55 AM, Junjo wrote: If I am not wrong, every time I update the zip file of a HTML5 game, it seems that NG creates a new folder for it. This changes the reference of the data saved on the IndexDB, so the GAME PROGRESS IS LOST for all players (I think this applies to PlayerPrefs too).

How do you deal with this problem, guys?
If you're using PlayerPrefs, it unfortunately loses everyone's save data when you post an update to your game.

I came up with a solution to the problem, [...]


So, the sort answer is that it is the PlayerPrefs implementation witch depends on the url, but not the whole idb thing... so I should stop using playerprefs and write directly to a fixed path of the idb instead.

Thank you! I will give it a try.