The code is almost the same, yes.
As you suggested, I'll put some traces and upload it to an external hosting to see what happens.
Thanks for your help.
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).If you're using PlayerPrefs, it unfortunately loses everyone's save data when you post an update to your game.
How do you deal with this problem, guys?
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.
I didn't found a way to make it work as is.
So finally I implemented an online-save system with an external server, using the newgrounds user-id to authenticate. The game saves a backup of the game-data in the server regularly, and if it founds that there is no local data at start-up, it downloads it from the server.
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?
The code is almost the same, yes.
As you suggested, I'll put some traces and upload it to an external hosting to see what happens.
Thanks for your help.
At 2/22/14 07:49 PM, Sebby64 wrote:At 2/20/14 10:02 AM, Junjo wrote: I'm using the api with haxe too, and what I see is that the ads are only shown then the game is played on newgrounds. When the game runs on other portals (many copied the game from here), no ads are shown...Hm that's not a problem for me. Are you doing any sort of site lock where the ad doesn't get created unless it's on newgrounds?
do you know if this is normal, or i'm missing something?
Really not. In fact, the ads component is shown (the black box with the NG logo) but no ads loads.
At 2/15/14 01:51 PM, Sebby64 wrote: This was a very simple problem. I forgot to enable Flash Ads in the API Tools section of the project manager.
hehe, that was an easy one.
I'm using the api with haxe too, and what I see is that the ads are only shown then the game is played on newgrounds. When the game runs on other portals (many copied the game from here), no ads are shown...
do you know if this is normal, or i'm missing something?