scratch-gui icon indicating copy to clipboard operation
scratch-gui copied to clipboard

Data import export onto lists

Open Tomtfc opened this issue 3 years ago • 3 comments

Please make a block on turbowarp blocks section to export or import files to lists this could be very useful for games to save data or import data

Example

Import files(.txt)to list (gamedata)

When the import button is clicked it opens a file browser to import the given file formats,in our case this is txt

Export list(gamedata)as(gamedata.gm)

This opens a file browser to save the current list as a file

Tomtfc avatar Feb 10 '22 03:02 Tomtfc

Couldn't showSaveFilePicker() and showOpenFilePicker() be used?

hello-smile6 avatar Feb 10 '22 03:02 hello-smile6

as things are right now, it's extremely unlikely that any new blocks will be added

GarboMuffin avatar Feb 10 '22 04:02 GarboMuffin

The above comment is outdated, we are working to support unsandboxed extensions https://extensions.turbowarp.org/

There is an extension there for (limited) file I/O, although it works on strings, not lists.

GarboMuffin avatar Nov 13 '22 07:11 GarboMuffin