Discuss Scratch

thelegosensei
Scratcher
21 posts

Scratch 3.0 to 2.0 converter

so, I found this forum here: https://scratch.mit.edu/discuss/topic/287666/

but it was unhelpful at best.

so, with the release of Scratch 3.0, the new online editor looks pretty good. I think it'll be pretty fun to use once it's a bit more ironed out.

but right now, the 2.0 offline editor works better, and is my preferred editor. I've tried making a pretty simple game in Scratch 3.0, and I'm getting a great deal of input lag. this could be because I have too many tabs open at once, or because I listen to spotify while coding, idk. but I really shouldn't be getting this much lag on my gaming laptop. so, I'd like to downgrade my Scratch 3.0 project to Scratch 2.0, so I can use the offline editor to finish my project. right now, the only viable option I'm seeing is to recreate it block by block, which, as you can imagine, I'd like to avoid.

I popped open a simple .SB2 and a simple .SB3 file (made identically) in notepad++ so I could see about coding a converter in Scratch (use the resources you have, eh?) but it seems a little beyond my understanding. plus that only lets me convert the .JSON, while the other assets are similar, yet a few are different. and they have strange filenames.

so, before I break my brain too much trying to reverse engineer the whole thing, I thought I'd ask if anyone else with better knowhow is already working on a converter? or if anyone else wants one? personally I think the best thing would be to integrate a converter into the Scratch 2.0 offline editor itself, as really, without a converter, the Scratch 2.0 editor is a tad useless. plus, I can't even find the option to upload a 2.0 project to 3.0 anymore, so I suppose a converter should be made to work both ways. (“load from computer” isn't working for SB2 for me right now, I assume that's a bug and will be fixed)

I'm Batman.
superben100
Scratcher
1000+ posts

Scratch 3.0 to 2.0 converter

I've sort-of-recently been working on Gel, an SB3 to SB2 converter. Right now though, it's pretty barebones and highly experimental.

Because of this, I'd say it'll be a while before it'll actually work for ordinary purposes.

Thanks,
Superben100.

Hey there, I'm Superben100!
I've been on Scratch for over 5 years (yeah I know, I feel like a grandpa), so if you have any questions, feel free to ask!
Also – I'm trying to coin the protologism “summbeatitudinem” (basically a stronger synonym for “happiness”).
For example, you might say, “There was an air of summbeatitudinem in the room.”
Spread the word!
thelegosensei
Scratcher
21 posts

Scratch 3.0 to 2.0 converter

well hey! so glad someone's working on it! I look forward to the stable version!

I'm Batman.
josephchuang
Scratcher
93 posts

Scratch 3.0 to 2.0 converter

Sounds cool!





djdolphin
Scratcher
1000+ posts

Scratch 3.0 to 2.0 converter

I've written a mod that allows basic 3.0 projects to be opened in 2.0. It's not complete, though. https://github.com/djsrv/fins-flash

!
SimpleScratch
Scratcher
500+ posts

Scratch 3.0 to 2.0 converter

Great to see someone working on this
I'm trying to compile it on Win10 but gettings
C:\fins-flash-develop>.\gradlew build -Ptarget=11.6
Defining custom ‘build’ task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0
Target is: 11.6
Commit ID for scratch-flash is: unknown

and then later

* What went wrong:
A problem occurred configuring root project ‘fins-flash-develop’.
> The following error occurred while executing this line:
C:\Users\Simon\.gradle\gradleFx\sdks\e69b0f308bb0e2e9a3c5d92b5a82628a08ea31d8\installer.xml:662: The following error occurred while executing this line:
C:\Users\Simon\.gradle\gradleFx\sdks\e69b0f308bb0e2e9a3c5d92b5a82628a08ea31d8\installer.xml:873: The following error occurred while executing this line:
C:\Users\Simon\.gradle\gradleFx\sdks\e69b0f308bb0e2e9a3c5d92b5a82628a08ea31d8\installer.xml:881: The following error occurred while executing this line:
C:\Users\Simon\.gradle\gradleFx\sdks\e69b0f308bb0e2e9a3c5d92b5a82628a08ea31d8\installer.xml:923: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I'm on latest Gradle and JRE

What OS are you running it on?

djdolphin
Scratcher
1000+ posts

Scratch 3.0 to 2.0 converter

SimpleScratch wrote:

What OS are you running it on?
I'm using macOS.

Poking through my own installer.xml file, it sounds like it might be a problem with downloading OSMF, which Jonathan50 solved before by manually downloading OSMF_1.0.zip and placing that in the C:\Users\<user>\.gradle\gradleFx\sdks\<long_number> folder.

If that doesn't work, I've uploaded a pre-built SWF here.

Another note: I'm not sure how far I want to go with this mod. I'm generally happy with 3.0 aside from the huge size of the blocks (which the Scratch Team says they are taking user feedback on), the mess of a file format compared to 2.0, and some performance issues.

!
SimpleScratch
Scratcher
500+ posts

Scratch 3.0 to 2.0 converter

Not got any sub-folders in c:\users\simon\.grade\gradleFx\dsks - its empty on my machine

And your .swf is just reported as being corrupted when try to run it

Computers - don't you just love em at times

Another note: I'm not sure how far I want to go with this mod. I'm generally happy with 3.0 aside from the huge size of the blocks (which the Scratch Team says they are taking user feedback on), the mess of a file format compared to 2.0, and some performance issues.

I know what you mean. The Hue and Cry to be able to convert .sb3 to .sb2 WILL die down.

Agarkov
New to Scratch
1 post

Scratch 3.0 to 2.0 converter

It would be better making a converter that supports SB, SB2 and SB3 and quickly converts all of these formats to each other. Hello from Russia!

Last edited by Agarkov (May 17, 2019 17:56:46)

superben100
Scratcher
1000+ posts

Scratch 3.0 to 2.0 converter

Agarkov wrote:

It would be better making a converter that supports SB, SB2 and SB3 and quickly converts all of these formats to each other. Hello from Russia!
Your point is valid, but it can be a challenge to make more than one method of conversion.

Hey there, I'm Superben100!
I've been on Scratch for over 5 years (yeah I know, I feel like a grandpa), so if you have any questions, feel free to ask!
Also – I'm trying to coin the protologism “summbeatitudinem” (basically a stronger synonym for “happiness”).
For example, you might say, “There was an air of summbeatitudinem in the room.”
Spread the word!
ZachZoid20
Scratcher
2 posts

Scratch 3.0 to 2.0 converter

Yes i need a converter i need to use some functions in scratch 2 in my scratch 3 project
roboys5
Scratcher
1 post

Scratch 3.0 to 2.0 converter

I want to convert tham why Scratch 2 is better then 3 but an bit of Projects , i want to convert it ) :
Maximouse
Scratcher
1000+ posts

Scratch 3.0 to 2.0 converter

roboys5 wrote:

I want to convert tham why Scratch 2 is better then 3 but an bit of Projects , i want to convert it ) :
Does this help?

You are reading Maximouse's signature. Learn more about signatures
Click here to make pixel art.

Harakou wrote:

Yeah, this seems to be a request for custom reporter blocks - which has been suggested in the linked topic and a number of other times. I know I would personally love to see them, myself - I'm not sure what technical or design concerns there to them, if any.

Powered by DjangoBB

Standard | Mobile