Discuss Scratch

fezzinate
Scratcher
100+ posts

Scratch 2.0: How do I load local projects

I've successfully set up my dev environment for Scratch, and it's been a lot of fun tinkering with it, but I haven't found a way to load projects from my local disk. Can anyone help me out with this?

-Dan

_nix
Scratcher
1000+ posts

Scratch 2.0: How do I load local projects

Welp. This is the problem I knew I ran into ages ago..

I'd also like to know this – putting the SWF on a server (read: python -m SimpleHTTPServer) doesn't seem to work.

Time to search the source code!

EDIT: Okay, so putting it on a server will actually prevent loadProject from working:
if (projectToInstall != null && (app.isOffline || app.isExtensionDevMode)) {
..but it doesn't work when it's offline, anyways.. hmm..

EDIT #2: Removing that extra check fixed it! Tested on a local server it works fine. You'll want to remove that

Last edited by _nix (Dec. 6, 2016 00:17:12)


══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula

Powered by DjangoBB