Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Whiskers: Scratch 2.0 for Incompatible Devices
- kenny2scratch
- Scratcher
500+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
+1 You could change IF to IF THEN to match Scratch 2.0.
- eribetra
- Scratcher
100+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
every version of NuScratch running on Squeak 5.1 shows up an error about fonts.I used Monticello to install NuScratch on a fresh Squeak 5.0 image. If you want me to, I can create an image for you to use with only NuScratch on it, which would include the sources and changes file. Also, can you pass the link to the NuScratch you're using? (it needs to be the NuScratch .image, now the Whiskers one) Because
Ok! I would like that! (I will give credit to you and Tim)
If you can convert an .image file, it's even better: ericdutra.com/blockode.html
(Sorry for advertising)
Alright, here's the download: https://drive.google.com/open?id=0B6FRCf6PuzM9SUd0djdycE1SZDg
Please note, though, that this build is unofficial and does not include GPIO extensions. Also, when saving for the end-user, it will create a new image file called NuScratch{current date}.image. You can rename that file after saving it.
Thank you! I will test it!
Since my mod has a few blocks, I can code everything easily.
(Fun Fact: I remember the website, downloading Whiskers and using it to import a Scratch 2.0 file. Good times…)
- eribetra
- Scratcher
100+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Wow! It's working better than I expected!
- eribetra
- Scratcher
100+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Actually, NuScratch isn't working well… It's switching arrow Keys in Scratch projects, but when I try making code on Nu, it works! (the coding is perfectly fine)
Last edited by eribetra (July 16, 2017 11:06:28)
- eribetra
- Scratcher
100+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Also, when saving for the end-user, it will create a new image file called NuScratch{current date}.image. You can rename that file after saving it.
Wait, saving for end-user? How do you do that? The only thing that appears on the World menu is save, save as, and save as new version.
Nothing about saving on the file menu.
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
If you shift-click the place around where the “R” should be, you will get a developers menu. If you want it when shift-clicking the edit menu (or something similar), you can copy the code from Whiskers, since the menu format is a bit different in Squeak 5.0.Also, when saving for the end-user, it will create a new image file called NuScratch{current date}.image. You can rename that file after saving it.
Wait, saving for end-user? How do you do that? The only thing that appears on the World menu is save, save as, and save as new version.
Nothing about saving on the file menu.
Also, I have just released the source for Whiskers under my github as well :https://github.com/NoMod-Programming/Whiskers. If anybody wants to contribute to Whiskers development, they can submit a pull request there. Next up on my list of things to do is to implement JSON reading from a zip file to get scratch 2.0 files imported
Last edited by NoMod-Programming (July 16, 2017 17:38:18)
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Yay! I've got SVG loading working in a 3.8 image! Just a couple of tests (can anybody supply me with some svg images more complex than the scratch cat?) and I might have full sb2 loading ready (except for the blocks, which will use placeholders for how)
- infinitytec
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Will do. Yay! I've got SVG loading working in a 3.8 image! Just a couple of tests (can anybody supply me with some svg images more complex than the scratch cat?) and I might have full sb2 loading ready (except for the blocks, which will use placeholders for how)
Edit: here are some really random SVGs. I hope they help!
I guess compare them to what a browser gives you as well as what S2 and Whiskers render.
https://drive.google.com/open?id=0BzVg3ATlXtVMcFA0aElCYkhtWDQ
Last edited by infinitytec (July 16, 2017 20:51:42)
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
They worked great! I've just got to implement sb2 reading and I'll have another alpha ready!Will do. Yay! I've got SVG loading working in a 3.8 image! Just a couple of tests (can anybody supply me with some svg images more complex than the scratch cat?) and I might have full sb2 loading ready (except for the blocks, which will use placeholders for how)
Edit: here are some really random SVGs. I hope they help!
I guess compare them to what a browser gives you as well as what S2 and Whiskers render.
https://drive.google.com/open?id=0BzVg3ATlXtVMcFA0aElCYkhtWDQ
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Alright! Here's a new alpha with experimental SVG support. This version does NOT generate scratch 2.0-compatible files yet, but can read images and sounds from them. I would appreciate some testing as to which SVG files and which sounds don't work with this version.
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
Last edited by NoMod-Programming (July 16, 2017 22:51:08)
- infinitytec
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Cool! So does it just turn it bitmap? Alright! Here's a new alpha with experimental SVG support. This version does NOT generate scratch 2.0-compatible files yet, but can read images and sounds from them. I would appreciate some testing as to which SVG files and which sounds don't work with this version.
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
For the purposes of displaying it, yes. But internally, it is still stored as an SVG, and that, in a future version, will be used to render the costume.Cool! So does it just turn it bitmap? Alright! Here's a new alpha with experimental SVG support. This version does NOT generate scratch 2.0-compatible files yet, but can read images and sounds from them. I would appreciate some testing as to which SVG files and which sounds don't work with this version.
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
- infinitytec
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
OK. Thanks! It's coming along great!For the purposes of displaying it, yes. But internally, it is still stored as an SVG, and that, in a future version, will be used to render the costume.Cool! So does it just turn it bitmap? Alright! Here's a new alpha with experimental SVG support. This version does NOT generate scratch 2.0-compatible files yet, but can read images and sounds from them. I would appreciate some testing as to which SVG files and which sounds don't work with this version.
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Thanks! I'm working on adding the blocks now, which when it's done, will take Whiskers into beta, since all of its features should be complete.OK. Thanks! It's coming along great!For the purposes of displaying it, yes. But internally, it is still stored as an SVG, and that, in a future version, will be used to render the costume.Cool! So does it just turn it bitmap? Alright! Here's a new alpha with experimental SVG support. This version does NOT generate scratch 2.0-compatible files yet, but can read images and sounds from them. I would appreciate some testing as to which SVG files and which sounds don't work with this version.
https://drive.google.com/open?id=0B6FRCf6PuzM9TGNTUjBPQzVKZUk
- timrowledge
- Scratcher
14 posts
Whiskers: Scratch 2.0 for Incompatible Devices
every version of NuScratch running on Squeak 5.1 shows up an error about fonts.OK, so now by sheer fluke I get some more context for the error report you sent in for NuScratch. General request to anyone ever sending an error report to anyone about anything - try to include actual details! Also, can you pass the link to the NuScratch you're using? (it needs to be the NuScratch .image, now the Whiskers one) Because
Almost certainly your issue is that you simply haven't got the fonts being used. That would be, in this case, the Verdana font set. I think. Since the Pi is set up with the correct fonts installed I never had reason to do much work on making things handle not having them. Where you get fonts for Pango and how you install them.. no idea. But that's what you need to do.
- timrowledge
- Scratcher
14 posts
Whiskers: Scratch 2.0 for Incompatible Devices
OK, thanks. Do you know what Squeak version the official Scratch 1.4 VM is forked from?
Roughly speaking it was 2.8 but with a huge raft of changes made. Many of which actually broke some of the important tools, which has been a source of much pain in the past and is part of why I rewrote stuff to get it to run in Squeak 5.0/5.1. Now it is a good citizen with all the sources organised in a monticello package. And it runs on a modern VM that is many times faster than the old one. And it has huge lists of bug-and-other fixes that make it faster still - a total of around 30 times faster in fact. (referring to Pi performance. Your mileage may vary)
I tried Whiskers using @infinitytec's link above, it works great. So what I'm wondering is, I know that the Scratch 1.4 in the Raspbian repository is NuScratch, but do Debian and Ubuntu use NuScratch too? (The Scratch 1.4 download page says to use the Scratch from the Debian/Ubuntu repositories)
To the best of my knowledge Debian still (mis)uses the ancient ‘4.10’ era unix vm code which is so out of date that it is baffling. Worse, they post-process the code to add a serious bitmap processing bug. Don't use it. Get your Squeak stuff from www.squeak.org
- timrowledge
- Scratcher
14 posts
Whiskers: Scratch 2.0 for Incompatible Devices
Seriously folks, you really, really, ought to move discussion of a lot of this stuff to the squeak mailing list. You'll get a boat-load more involvement and help, from people that really know what goes on in Smalltalk. It would make your lives so much better…
ww.squeak.org and go to the mailing lists page and subscribe to the general list.
ww.squeak.org and go to the mailing lists page and subscribe to the general list.
- Jonathan50
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Okay, thank you for the information.
- NoMod-Programming
- Scratcher
1000+ posts
Whiskers: Scratch 2.0 for Incompatible Devices
Alright. I subscribed. Thanks for the recommendation! Seriously folks, you really, really, ought to move discussion of a lot of this stuff to the squeak mailing list. You'll get a boat-load more involvement and help, from people that really know what goes on in Smalltalk. It would make your lives so much better…
ww.squeak.org and go to the mailing lists page and subscribe to the general list.