Discuss Scratch

s_federici
Scratcher
500+ posts

Looking for 1.4 projects

Now that Scratch is moving to 2.0 (but the 2.0 editor is still “dangerous”: I have lost a project one week ago…) it would be nice to have a way to identify 1.4 projects so that 1.4 users will still be able to take advantage of the incredible amount of available projects without having to enter each single project to see if the “share to” section contains a downloadable source.

Is there a way to quickly look for projects developed with the 1.4 (or previous) version?
blob8108
Scratcher
1000+ posts

Looking for 1.4 projects

I think you can determine in an automated fashion whether a given project is 2.0-only using the following API:

http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/project/10043508/get/

Which I believe returns 404 if it's a 1.4 project, and the JSON file if it's a Scratch 2.0 project. (Replace “10043508” with the project's ID.)

However, I don't think there's any way you can obtain a list of projects that have 1.4 files.

Btw, I have told you about the Retro Converter, haven't I? It lets you convert a Scratch 2.0 project back into a 1.4 one, as long as you haven't used any of the new blocks.
s_federici
Scratcher
500+ posts

Looking for 1.4 projects

blob8108 wrote:

I think you can determine in an automated fashion whether a given project is 2.0-only using the following API:

http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/project/10043508/get/

Thanks a lot! This is really enough for me Is there a place where this api is described?

blob8108 wrote:

Btw, I have told you about the Retro Converter, haven't I? It lets you convert a Scratch 2.0 project back into a 1.4 one, as long as you haven't used any of the new blocks.

No. You haven't. And this is GREAT news!

BTW, is there a standalone version too of this amazing tool?
blob8108
Scratcher
1000+ posts

Looking for 1.4 projects

s_federici wrote:

is there a standalone version too of this amazing tool?
Thank you! There is, but it's command-line only, sadly. I can tell more if that doesn't put you off.
blob8108
Scratcher
1000+ posts

Looking for 1.4 projects

EDIT: Whoops, ignore this post.

Last edited by blob8108 (Oct. 22, 2013 22:11:55)

s_federici
Scratcher
500+ posts

Looking for 1.4 projects

blob8108 wrote:

[There is, but it's command-line only, sadly. I can tell more if that doesn't put you off.

It doesn't Go on!
blob8108
Scratcher
1000+ posts

Looking for 1.4 projects

Thankfully, I've already written some OS-specific install instructions.

Once installed, create a quick Python file, ‘convert.py’:
#!/usr/bin/python
import sys
import kurt

inpath, outpath = sys.argv[1:]
kurt.Project.load(inpath).save(outpath)
At some point I'll make sure a version of this script is included with Kurt.

Then you can use it like this:
$ convert.py input.sb2 output.sb
Hopefully that works; let me know how you get on.
s_federici
Scratcher
500+ posts

Looking for 1.4 projects

blob8108 wrote:

Hopefully that works; let me know how you get on.

Thanks a lot! I will let you know for sure

Powered by DjangoBB