Page 2 of 2

Re: New Scratch things for Raspbian September 2016

Posted: Wed Oct 11, 2017 11:11 pm
by timrowledge
Well first things first - re-awakening a year old zombie thread is not the smartest thing to do. Sometimes they get all feisty and try to chew your face off.

Depending on exactly what you are trying to do you have several options.

If you are running Scratch2 - the Flash based abomination in the eyes of Nuggan accessible on your Pi main menu as 'Scratch2' - then you will have to read up on using the external interface. I dare say GHP can help here.

If you are running the older but faster NuScratch (accessible from the same menu as 'Scratch') then you may have more options. I didn't include sensors like the DHT series in the built-in gpio server because nobody seemed to want it at that time. GHP almost certanly has it in his system that works with NuScratch and quite possibly SimpleSi's ScratchGPIO system will handle it.

If you're really serious about using it an other sensors and want support adding to NuScratch, feel free to offer some financial support for the work and it shall be done.

Re: New Scratch things for Raspbian September 2016

Posted: Tue Oct 17, 2017 8:40 pm
by ghp
Hello,
I have since long time a DHT11, DHT22 connection to scratch using an atmel328 as a slave processor. http://heppg.de/ikg/wordpress/?p=430
And since short time there is an adapter using pigpiod software.

scratchClient supports both scratch1.4 and scratchx, the extension enabled version of scratch2.

Hope this helps,
Gerhard

Re: New Scratch things for Raspbian September 2016

Posted: Thu Sep 13, 2018 12:13 pm
by teddysetgo
Tim,

It seems as though this bug has returned.

For the new school year, I reimaged all of the SD cards for my students' Pi's. I ran the usual update/upgrade.

I was surprised to find the Key Press bug back in Scratch two years later. I opened the squeak script, but the line of code I used to comment out to fix this was already commented out.

Everything is fine on MY Pi, which hasn't been imaged in over a year.

Either way, both systems seem to be running 2016-12-12.

Any thoughts on why this might happen or how I can fix it? I can tell you that it drives students crazy! Ha.

Teddy

Re: New Scratch things for Raspbian September 2016

Posted: Tue Sep 18, 2018 6:48 pm
by timrowledge
Well nothing has been changed in the nuscratch world of course since the insanity of allowing Flash on the Pi. That only really leaves some sort of OS release build problems or an OS change that messes up key events. Neither is a very nice idea.

If you are brave enough, rename the image file (probably something like/usr/lib/nuscratch/something-or-other.im) and then copy over the version on your older system. If that doesn’t work then there’s some tedious debugging to do. Sigh.

Re: New Scratch things for Raspbian September 2016

Posted: Wed Sep 19, 2018 12:44 pm
by teddysetgo
First, Flash on Pi makes me sad. Let's not talk about it.

Second, is there any chance you could walk me through that a little bit. When I look in usr/lib/ on my Pi, I don't see nuscratch. So I'm not exactly sure what I'm renaming, what I'm copying, and where I'm copying it to. I really do appreciate any help. As you can imagine, a keypress bug is awful for kids trying to make their first video games with Scratch.

Re: New Scratch things for Raspbian September 2016

Posted: Wed Sep 19, 2018 8:08 pm
by timrowledge
OK, first, I can't see any evidence of the bug and indeed nor can several other people that have tested for me. So that's a bit odd.

The main shell script to start Scratch 1.4 /NuScratch is '/usr/bin/scratch'. 7 or 8 lines down you should see

Code: Select all

IMAGE=`ls -t /usr/share/scratch/NuScratch*.image| head -1`
which is expected to find the newest version of a file named like NuScratchYYYYMMDD.image - it ought to basically only see NuScratch20161212.image in any faintly recent Raspbian release.
Obviously from this we can see that you should have /usr/share/scratch/NuScratch20171212.image in order for it to run. You could check that the file sizes on the new and old systems you have are the same, do whatever linux checksum magic you can think of etc to compare them. Maybe zip up the 'working version, backup the 'broken' one, copy as appropriate & unzip and try it all again.

The VM should be /usr/lib/squeak/5.0-201610101924 - in that directory you should see an executable named 'squeak' (I know, so original) size 6316400 bytes, dated 2016/11/03.

Re: New Scratch things for Raspbian September 2016

Posted: Thu Sep 20, 2018 12:16 pm
by teddysetgo
Based on all of this, it would appear that everything is identical. Very strange.

The bug is most certainly there are. On many machines. All running the latest Raspbian install from Noobs. This is the exact same bug that I had two years ago which you graciously helped me to fix.

I suppose I'll have to keep digging.

Thanks for the help.

Re: New Scratch things for Raspbian September 2016

Posted: Wed Sep 26, 2018 4:44 am
by timrowledge
Here's a bizarre and (to me) unlikely possibility - has NOOBS managed to install an old release by mistake?

... I said it was bizarre.

Re: New Scratch things for Raspbian September 2016

Posted: Thu Dec 06, 2018 12:27 am
by timrowledge
A little more oddness wrt the “key sticking” problem - on my main development Pi updated to the latest Raspbian (the November release) I cannot trigger this. Which is as it should be. However, on another 3B+ with a freshly downloaded version it does the sticky thing. I tried a couple of back versions too and they cause the problem.
I’ve changed nothing in the NuScratch package at all. Something is making the Unix events to not be picked up properly and yet doing a dist-upgrade doesn’t cause it to happen.
Gronk?

Re: New Scratch things for Raspbian September 2016

Posted: Wed Dec 19, 2018 3:51 pm
by teddysetgo
Tim, are you suggesting that had I simply kept dist-upgrading, I would probably be in good shape?

So if I roll back all the way to an old "working" version, and then just dist-upgrade to get current, I might be good?

Re: New Scratch things for Raspbian September 2016

Posted: Wed Dec 26, 2018 2:07 am
by timrowledge
teddysetgo wrote:
Wed Dec 19, 2018 3:51 pm
Tim, are you suggesting that had I simply kept dist-upgrading, I would probably be in good shape?

So if I roll back all the way to an old "working" version, and then just dist-upgrade to get current, I might be good?
I truly don’t know what really happened. If I can find a way to characterize it adequately I’ll attempt to convince Simon that it warrants some of his time to check out. If you can make time to try such an experiment it might provide evidence.

Re: New Scratch things for Raspbian September 2016

Posted: Sun Jan 27, 2019 1:34 am
by timrowledge
I'll put this info here as it continues support stuff for the current NuScratch 1.4

Recent Raspbian releases after the 2018-06-27 release have had a kernel problem that results in the scratch camera interface not working, and I imagine any other applications using the v4linux module. After a lot of testing with different camera modules, Pis, cables and SD cards, I was able to convince myself that it wasn't a hardware issue butdefinitely some OS problem. Simon mentioned that he knew of a problem that might affect this and that the latest kernel had a fix that should solve the problem. I did a fresh load, confirmed the problem was there , did a `sudo rpi-update` to get the newer kernel and retested - and the camera is back. Excellent.

I imagine that in a putative post-january 2019 Raspbian this kernel will be included and thus available without any extra work.