Exporting/importing files on html5 game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Maverik
:warning: Old Version Published before Godot 3 was released.

I’ve compiled my game into html5, but can’t quite access save/load with user file system. It seems to have some phantom environment when I try to access user files with bunch of folders I can’t navigate and data pack. How would I allow users to save files into their PC? FileDialogue also shows that same place and does not seem to allow access anything outside of it.

:bust_in_silhouette: Reply From: Toger5

You generally don’t have access to the users file system form the browser.
This is why Node.js is such a big thing :wink:

Maybe you can send some kind of a download request so the user can download the file and load it when he wants to continue.

But usually when u deploy a web app you just provide your own backend which has a db for all the users and their game state.
(if you want to deploy for a web app?)

Maybe you can send some kind of a download request so the user can
download the file and load it when he wants to continue.

That’s exactly what I’m looking for. I basically making an equivalent to the flash game which would allow user to backup its data on their own because the game is self-sustaining and does not require internet connection. It does not seem like I can easily pass files from phantom folder to the user either.

Maverik | 2017-02-23 02:31