New filter for Scratch files (.sb)

New filter for Scratch files (.sb)

von John White -
Anzahl Antworten: 8
Hi All,

Following a recent discussion in the General Problems forum concerning Scratch files, I kicked off the idea of creating a new Moodle filter for this file-type.

Scratch files are created in the Scratch application downloadable free from http://scratch.mit.edu/
and there are at least 8000 projects freely available through the Scratch community, mainly aimed at youngsters,
...or you could create your own!

Now, my coding did not stand up to the challenge and Johannes Albert stepped in and rewrote the filter - and taught me a great deal on the way!
We have tested the filter on Firefox, Safari & IE7, and it works well wherever Java is enabled.

To download the filter, click this link: Scratch filter
...unzip the file, so that it creates a folder 'scratch',
...drag this folder into your 'filter' folder (in public_html, moodle_html, or similar).

Then go to Site Administration->Modules->Filters and open the eye to enable the Scratch filter.

You can then create a link to a Resource file of the type .sb, or simply edit a topic summary
to create a hyperlink to show the Scratch object (a Scratchboard) within you course page.

Have fun,

John White
Johannes A. Albert


Anhang Scratch_boards-lr.jpg
Mittelwert:Useful (1)
Als Antwort auf John White

Re: New filter for Scratch files (.sb)

von x x -
John
Haven't installed this filter as yet, am waiting to do an upgrade first and then I will install on the upgraded version.

Once I have installed, I'll let you know how it all goes.

Thanks for your help.
Jo
Als Antwort auf John White

Re: New filter for Scratch files (.sb)

von Nadav Kavalerchik -
Nutzerbild von Core developers Nutzerbild von Plugin developers Nutzerbild von Testers Nutzerbild von Translators
i have installed the filter but i am unable to see it work.

i linked (from the internet) .sb files and some local files
i have on my moodle server.

but i keep getting the loading screen with not progress in the
progress bar.

tried to replace the v.21 applet with v23 but no use.

what am i doing wrong ?
Als Antwort auf Nadav Kavalerchik

Re: New filter for Scratch files (.sb)

von Chris hum -
Had this same problem. I found this link on the scratch forum:
http://scratch.mit.edu/forums/viewtopic.php?id=191&p=1
and it fixed the problem.
By putting everything in one folder and creating the .htm file it worked fine.
I think just created a link in Moodle to link to the .htm file.

There are many other suggestion on the link, and I thought I would also share this great example of scratch in action in Moodle:
http://www.meridianmoodle.com/course/view.php?id=35
Als Antwort auf Nadav Kavalerchik

Re: New filter for Scratch files (.sb)

von Rick Ashby -
I had a similar issue. Older projects were playing fine, but the newer ones would hang on the loading screen. I updated the ScratchApplet.jar to the most recent version and everything seems to be working fine.
Here's the link for the most recent version: http://scratch.mit.edu/static/misc/ScratchApplet.jar


Als Antwort auf Rick Ashby

Re: New filter for Scratch files (.sb)

von Lee Campion -
I've downloaded that version but still can't progress beyond the loading screen.  Anyone else found this?  I'm on Scratch 1.4.
Als Antwort auf Lee Campion

Re: New filter for Scratch files (.sb)

von Brian Larkin -

This is painful. Can anyone advise me how this should work.

I've installed the scratch filter and added a label, but as others before me no progress bar.

I also tried just adding the code in. First I used the link to the scratch page.

<applet archive="ScratchApplet.jar" codebase="http://scratch.mit.edu/static/misc" code="ScratchApplet" style="display: block;" id="ProjectApplet" width="482" height="387"><param value="../../static/projects/MrLarkin/772425.sb" name="project"></applet>

It worked but is painfully slow. This is slow on my home PC. It will never work at school with 30+ kids all trying to use it at once.

Then I tried using their codebase and my local file.

</applet> <applet height="387" width="482" archive="ScratchApplet.jar" codebase="http://scratch.mit.edu/static/misc" code="ScratchApplet" style="display: block;" id="ProjectApplet"><param value="http://localhost/file.php/2/AsteriodsFinalGame.sb" name="project" /></applet>

Again a non moving bar.

It seems to me that it is the only the paths for my codebase and game that are  different. Can anyone tell me how to successfully use my local codebase and file. My file is in /var/moodledata/2/ and my ScratchApplet.jar and soundbank.gm are in /var/www/moodle/filter/scratch/

Many thanks,

Brian

Als Antwort auf John White

Re: New filter for Scratch files (.sb)

von Rick Ashby -
WIth the updated .jar file, I can easily give students the ability to post Scratch projects. http://www.rickashby.com/catalyst Unfortunately, the one module that I want to use the most, the Database module, still needs a little tweaking. A patch to embed most multimedia files was created here: http://docs.moodle.org/en/Multimedia_file_field. It works for multimedia files supported by the multimedia filter, but not the Scratch filter. Is there any chance we could get a similar patch for the moodle filter?

Best,
Rick