codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
364 stars 75 forks source link

Fix writing Scratch projects #146

Closed BwenedianJr closed 8 months ago

BwenedianJr commented 1 year ago

Hi, scratch 1,4 isn’t reading the project files. I think this has to do with the fact scratch 1.4 was written in a different version of squeak, so it glitches. Also, can you make it so on mobile devices the cursor is hidden? I find the cursor distracting and it makes it hard to click.

codefrau commented 1 year ago

Hi, scratch 1,4 isn’t reading the project files.

Which project files specifically? "json" as per your title is not a Scratch project.

I think this has to do with the fact scratch 1.4 was written in a different version of squeak, so it glitches.

What makes you think this is a different version of Squeak? This is literally running the official Scratch 1.4 image.

Also, can you make it so on mobile devices the cursor is hidden? I find the cursor distracting and it makes it hard to click.

Someone could make that happen, certainly. It might be better to separate feature requests from bug reports though. And then find a volunteer to do it.

BwenedianJr commented 1 year ago

It says the file might be damaged Even if I download the file from squeak.jr.org/run it gets corrupted

BwenedianJr commented 1 year ago

IMG_3590 IMG_3591 IMG_3592 IMG_3593 IMG_3594

codefrau commented 1 year ago

Hmm, not sure what's wrong. It can load the example projects fine (when you click the Examples folder button) but it cannot load a project I saved ... it is not specific to iPad but happens on desktop too.

Might be a similar issue as in #144 (you could try Pyonkee as suggested there)

I personally do not have time to investigate this any time soon, unfortunately. If you are a Squeak programmer, or you know one, shift-click the loop in the R of the SCRATCH logo to access the Squeak tools and start debugging.

BwenedianJr commented 10 months ago

Could you add this Pyonkee image file I found to squeak? https://github.com/SoftUmeYa/Pyonkee/raw/master/Scratch.image

codefrau commented 10 months ago

You can run it directly by executing it via this URL https://squeak.js.org/run/#image=https://github.com/SoftUmeYa/Pyonkee/raw/master/Scratch.image

It starts to load, but I'd be surprised if it worked well because it likely depends on the Pyonkee environment.

What are you trying to do?

BwenedianJr commented 9 months ago

Can you add this to one of the featured images? https://squeak.js.org/run/#image=https://github.com/NoMod-Programming/Whiskers/raw/master/Build/Whiskers.image The link doesn’t let me add to Home Screen like scratch 1.4.

BwenedianJr commented 9 months ago

I found the saving issue! All you need to do is delete the sounds and it saves!

BwenedianJr commented 9 months ago

By the way, that’s my main account. I forgot I made a issue here!

codefrau commented 8 months ago

I fixed a file writing bug in release 1.1.0 that might fix the sound writing issue.

codefrau commented 8 months ago

Yep, confirmed this works now.

BwenedianJr commented 7 months ago

😁 IT WORKS THANK YOU SO MUCH