djdolphin

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.

NoMod-Programming

djdolphin wrote:

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.
O_o Thanks!!! I will try to implement this. Also, I got custom blocks to work!!! I just need them to update when I change them
Trouble is, though, opening the zip file (2.0 sb2). Apparently, squeak can only write them from what I can tell. Hopefully, I can find a way.

djdolphin

NoMod-Programming wrote:

djdolphin wrote:

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.
O_o Thanks!!! I will try to implement this. Also, I got custom blocks to work!!! I just need them to update when I change them
Trouble is, though, opening the zip file (2.0 sb2). Apparently, squeak can only write them from what I can tell. Hopefully, I can find a way.
Unless it was different in the version that Scratch uses, Squeak can read zip files. The code I posted wouldn't work at all if it couldn't.

NoMod-Programming

djdolphin wrote:

NoMod-Programming wrote:

djdolphin wrote:

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.
O_o Thanks!!! I will try to implement this. Also, I got custom blocks to work!!! I just need them to update when I change them
Trouble is, though, opening the zip file (2.0 sb2). Apparently, squeak can only write them from what I can tell. Hopefully, I can find a way.
Unless it was different in the version that Scratch uses, Squeak can read zip files. The code I posted wouldn't work at all if it couldn't.
Hmm. I'll find out Nope. It's not in there. Also, last time I tried to run NuScratch with the latest VM, it didn't work. Which VM should I use, then???

djdolphin

NoMod-Programming wrote:

djdolphin wrote:

NoMod-Programming wrote:

djdolphin wrote:

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.
O_o Thanks!!! I will try to implement this. Also, I got custom blocks to work!!! I just need them to update when I change them
Trouble is, though, opening the zip file (2.0 sb2). Apparently, squeak can only write them from what I can tell. Hopefully, I can find a way.
Unless it was different in the version that Scratch uses, Squeak can read zip files. The code I posted wouldn't work at all if it couldn't.
Hmm. I'll find out Nope. It's not in there. Also, last time I tried to run NuScratch with the latest VM, it didn't work. Which VM should I use, then???
I think I've been using 4.5.

NoMod-Programming

djdolphin wrote:

NoMod-Programming wrote:

djdolphin wrote:

NoMod-Programming wrote:

djdolphin wrote:

I worked on something like this for NuScratch a while ago, and I got .sb2 loading partially working. Here's the changeset if it'll help: https://gist.github.com/djdolphin/649f0ab343d43fc42b67 It used http://www.squeaksource.com/@KVcNyNdWLZs_8jlr/pMPYo1wB for JSON reading.
O_o Thanks!!! I will try to implement this. Also, I got custom blocks to work!!! I just need them to update when I change them
Trouble is, though, opening the zip file (2.0 sb2). Apparently, squeak can only write them from what I can tell. Hopefully, I can find a way.
Unless it was different in the version that Scratch uses, Squeak can read zip files. The code I posted wouldn't work at all if it couldn't.
Hmm. I'll find out Nope. It's not in there. Also, last time I tried to run NuScratch with the latest VM, it didn't work. Which VM should I use, then???
I think I've been using 4.5.
Thanks. I'll get to porting it right away

SimpleScratch

No rush for NuScratch (Well its more newer Squeak VM really) working 1st - speed second :-)

Simon

NoMod-Programming

SimpleScratch wrote:

No rush for NuScratch (Well its more newer Squeak VM really) working 1st - speed second :-)

Simon
All right. I ran into a compatability issue with NuScratch last night anyways, so I'll work on polishing the custom blocks right now.
And I still have school :P

timrowledge

Well, it's a surprise finding people actually hacking the nuscratch image. Even more of a surprise to find you not on the Pi forums. I haven't had anything like enough free time to track you down elsewhere.

The latest Pi NuScratch image (as included in the jessie release of RAspbian) runs on the latest Cog/Spur VMs - with the faster object memory, the dynamic translation, the mapped stack handling etc - and cannot run on any older VMs.

Older Pi images back to around august 2012 run on a closure-aware VM such as the standard interpreter post-4.0 or the StackVM (a predeccesor to Cog without the dynamic translation).

The very oldest Scratch 1.x images run on an even older VM and it's a right pain to try to support them, so I don't.

Conversely, the oldest images cannot run on newer VMs, the mid-age images cannot run on the latest VM. Backwards compatibility is strived for as much as practical but sometimes you can't do it both ways.

Please, please contact me ([Removed - please don't share contact information]) and let's see if we can work out a way to collaborate more effectively.

Edit by tim - er, please don't remove information I choose to include. If I want to publish my email address that is my choice. It's not anyone would have trouble googling to find me; I've been around the net since it was a straight line

NoMod-Programming

timrowledge wrote:

Well, it's a surprise finding people actually hacking the nuscratch image. Even more of a surprise to find you not on the Pi forums. I haven't had anything like enough free time to track you down elsewhere.

The latest Pi NuScratch image (as included in the jessie release of RAspbian) runs on the latest Cog/Spur VMs - with the faster object memory, the dynamic translation, the mapped stack handling etc - and cannot run on any older VMs.

Older Pi images back to around august 2012 run on a closure-aware VM such as the standard interpreter post-4.0 or the StackVM (a predeccesor to Cog without the dynamic translation).

The very oldest Scratch 1.x images run on an even older VM and it's a right pain to try to support them, so I don't.

Conversely, the oldest images cannot run on newer VMs, the mid-age images cannot run on the latest VM. Backwards compatibility is strived for as much as practical but sometimes you can't do it both ways.

Please, please contact me (email removed by me) and let's see if we can work out a way to collaborate more effectively.
I'm not on the pi forums yet OK. I've posted a topic about this. It is currently getting approved.

I am currently working on my own, but once I release the full version and get this ported to NuScratch, I might get a collaborator. Also, please do not share emails on the forums. I am almost out of alpha. I just need to fileIn my custom blocks.

timrowledge

Well if you care to make contact I can provide you some actual sources and explanations of what has changed. I've done quite a lot over the last while to make it faster.

SimpleScratch

@no-mod-programming

but please please please get it working before speeding it up for the Pi

Much more important for education in schools struggling with online or offline Scratch 2 than the relativlely small Pi Scratch users :-) (Says one of the biggest Scratch users on Pi)

@tim
It's Scratch forum rules not to post contact info - its a child protection issue taken very seriously here. And you know what happens to people who transgress forums rules that they don't agree with :-)

Simon

NoMod-Programming

SimpleScratch wrote:

@no-mod-programming

but please please please get it working before speeding it up for the Pi

Much more important for education in schools struggling with online or offline Scratch 2 than the relativlely small Pi Scratch users :-) (Says one of the biggest Scratch users on Pi)

@tim
It's Scratch forum rules not to post contact info - its a child protection issue taken very seriously here. And you know what happens to people who transgress forums rules that they don't agree with :-)

Simon
I know. I have the custom blocks almost ready!!! New alpha coming out sometime this week with WORKING custom blocks! Then, I'll get to work on the
(days since 2000)
block

SimpleScratch

#Phew :-)

NoMod-Programming

SimpleScratch wrote:

#Phew :-)
New Alpha release!!! This one adds custom blocks (a bit) use the following for inputs right now:
%s = string
%n = number
%b = boolean (not finished yet)

You can save and open projects made with these blocks. Enjoy!!! Once I finish the
(days since 2000)
block, I will add a block creation dialog. Enjoy and download it here: https://goo.gl/VijH66

SimpleScratch


Custom blocks works but a bit flaky on my system when trying to use the arg block
Simon

liam48D

Custom blocks don't quite work properly (or rather, they work the same as Scratch does, which is a bit buggy). Here's a program to check out.

NoMod-Programming

liam48D wrote:

Custom blocks don't quite work properly (or rather, they work the same as Scratch does, which is a bit buggy). Here's a program to check out.
Can you put it on dropbox or google sites? Mediafire is blocked at my school

SimpleScratch wrote:


Custom blocks works but a bit flaky on my system when trying to use the arg block
Simon
Hmm… I'm still workign out the kinks. This is still an alpha ;P

liam48D

I don't currently own a dropbox account, so here is an image:

NoMod-Programming

liam48D wrote:

I don't currently own a dropbox account, so here is an image:

I'll fix the duplicate script bug within a week once I add custom block DIALOGS. I don't get the first bug, though. what do you mean by changing the size???