Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Saving player data in HTML5

Author
Message
niansenx
8
Years of Service
User Offline
Joined: 29th Jan 2016
Location:
Posted: 24th Nov 2017 12:25
Hello

Is there any way to save player data permanently in the HTML5 version of my game?

Thanks.
Dybing
12
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 24th Nov 2017 14:15
Not without some backend code on the same server that you host the HTML5 web-page on - and set up comms between them. Either have the backend hooked up to database (or if limited traffic, a simple flat-file JSON will do) for more permanent storage, or have it save a cookie on the players browser. Though this perishes when the player clears his cookies, and won't be persistent should the player get onto another browser/machine.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 24th Nov 2017 16:00
i believe browsers have a storage area and it is permanently until the user clear this site data.
do you tested this exported HTML game from a real webspace?

AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.2) Radeon R7 265 : Mac mini OS High Sierra (10.13)
PHeMoX
6
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 18th Feb 2018 12:34
I'm wondering the same thing, how can we store data when using a HTML app? Is there no way we could give an app permission to upload a file or rather update a file that is online somehow?

Login to post a reply

Server time is: 2024-04-19 05:56:30
Your offset time is: 2024-04-19 05:56:30