Make the Browser App a fully usable PWA #2799
Replies: 4 comments 9 replies
-
This is indeed two missing features for now. If I have to prioritize things, the ability to import resources from an external place is the most important (this would unlock much more usage, like on Chromebooks/tablets).
This is also linked to the support for projects between the web-app and the desktop app. For now there is a limited transfer possible from the web-app to the desktop app (the desktop app is able to download the resources that are URLs, but then your project is local and can't be opened again in the web-app). |
Beta Was this translation helpful? Give feedback.
-
One idea that is potentially feasible is adding integration with github. It has an easy to use rest api and tons of libraries wrapping it, its free and popular. It let's you do version control unlike gdrive. Your game is always backed up and you can have it on a private tracker for free. |
Beta Was this translation helpful? Give feedback.
-
You could get around the 5mb localstorage limit by instead using a virtual
drive storage (its tmp with benefits). You could also do a combination of
the two with json files being cached in localstorage, images and bigger
files on a virtual drive and all of that can be backed up and saved to
github. Its what yarn editor can do now, although it doesn't do the tmp
part and uses gist instead of git. I can edit offline and close the app
without saving even. Then when reopened it just loads all my work from
cache and at all times when online I can save to gists
…On Thu, 15 Jul 2021, 00:07 Arthur Pacaud, ***@***.***> wrote:
While Git and GitHub integration is in my opinion a very good and
interesting thing indeed, the main problem here is finding a good storage
solution that works offline I think.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2799 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRRWVPDXWAVUHETDP4JKP3TXYKENANCNFSM5AFWOLYQ>
.
|
Beta Was this translation helpful? Give feedback.
-
The nice thing of github is that you can override files and all you have to
do is add a token for gdevelop to it.
This file access api may not be ready in another 5 years. Does Firefox
support it? Seems far off to me and I've been waiting for it for the last
year or so :(
…On Thu, 15 Jul 2021, 00:12 Todor Imreorov, ***@***.***> wrote:
You could get around the 5mb localstorage limit by instead using a virtual
drive storage (its tmp with benefits). You could also do a combination of
the two with json files being cached in localstorage, images and bigger
files on a virtual drive and all of that can be backed up and saved to
github. Its what yarn editor can do now, although it doesn't do the tmp
part and uses gist instead of git. I can edit offline and close the app
without saving even. Then when reopened it just loads all my work from
cache and at all times I can save to gists
On Thu, 15 Jul 2021, 00:07 Arthur Pacaud, ***@***.***>
wrote:
> While Git and GitHub integration is in my opinion a very good and
> interesting thing indeed, the main problem here is finding a good storage
> solution that works offline I think.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#2799 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABRRWVPDXWAVUHETDP4JKP3TXYKENANCNFSM5AFWOLYQ>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
The web IDE is usable, but lacks a few key features to be fully usable. I think those are those most important ones:
Offline usage.
This is necessary for a PWA, but GDevelop currently cannot work offline for 2 reasons:
Previews are dependent on the network.
As currently, all previews on this version are basically web exports, they rely on the statically hosted gdjs. Events code also relies on being uploaded to an s3. This could be changed for example by downloading the whole runtime on for example indexed db, making exporters that also export to indexed db and making a service worker that intercepts fetch events and returns files from indexed db for an url like
editor.gdevelop-app.com/preview
, "emulating" a local http server for that url. That way, we can have the runtime files we want locally to be able to run games locally and have events code exported locally without requiring internet and an external service.Projects can only be loaded from google drive
Google drive, obviously, requires internet. An option would be using the browser storage or the filesystem api to store project files and resources. Another one would be to allow opening downloaded zips of the project.
No ability to use own resources
The biggest complaint I see is from chromebooks users that want to use their own images and other resources for their games. This is tricky as the resource files cannot be stored directly inside the JSON. We could either store the resources as data url in the file (not very good), or do like construct, make 2 types of project files: Project folders that need to be opened with the file system api to get access to all files in the folder including the resources or use a single file which is then basically a zip with the project folder inside it.
Beta Was this translation helpful? Give feedback.
All reactions