+1 vote

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.

in Engine by (46 points)

1 Answer

0 votes

You generally don't have access to the users file system form the browser.
This is why Node.js is such a big thing ;)

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?)

by (333 points)

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.