Discuss Scratch

erc5
Scratcher
8 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Update: It seems to apply to a lot more projects now. Even projects which used to work don't work anymore. Can someone please explain why?

Dear Scratch team,
Please DON'T add this to Scratch.

change [faves v] by (10) //can also be loves or views! Fake variable block, real SUS block. LOL

Make the page impossible to close. :: looks //WATCH OUT!!

Make the page possible to close. :: looks //NICE

Set system volume to (20)% :: sound //ehehehehehehe...

//:)

when I receive [Become Evil v]
Make the page impossible to close. :: looks
forever
Set system volume to (100)% :: sound
set volume to (100) %
end
when I receive [Become Evil v]
forever
play sound [rickroll v] until done
end
medians
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

erc5 wrote:

Update: It seems to apply to a lot more projects now. Even projects which used to work don't work anymore. Can someone please explain why?
I tried this project: https://scratch.mit.edu/projects/760729153/
And it didn’t work.

:D: 2.0 is 11 years old https://scratch.mit.edu/projects/1018259409/
Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Itz_Wolfram
Scratcher
66 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

medians wrote:

erc5 wrote:

Update: It seems to apply to a lot more projects now. Even projects which used to work don't work anymore. Can someone please explain why?
I tried this project: https://scratch.mit.edu/projects/760729153/
And it didn’t work.
what is your device?

This is Some of the games I made https://scratch.mit.edu/projects/466767503/

if <you play my games> then(I will be glad)
DifferentDance8
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Itz_Wolfram wrote:

medians wrote:

erc5 wrote:

Update: It seems to apply to a lot more projects now. Even projects which used to work don't work anymore. Can someone please explain why?
I tried this project: https://scratch.mit.edu/projects/760729153/
And it didn’t work.
what is your device?
I don't think device matters, unless you're dealing with a person who's device can't run JS. Then again, how would they be on this website?

R.I.P Zydrolic, 2023-2024
ethernetexplorer
Scratcher
100+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

It doesn't work for any project I choose

Last edited by kaj (Jan. 0, 1900 00:00:00)

JulkingII
Scratcher
16 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

my project is not working::hat operators
here is the project: (https://scratch.mit.edu/projects/744463525/::sensing)::extension

Julking the 2nd.
Lim_C
Scratcher
10 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

ZZC12345
Scratcher
500+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Itz_Wolfram wrote:

Is there a size limit when you upload to this?
I think that CodeSandbox restricts the size of files. Your files are opened on CodeSandbox (if I remember right) when they get converted to JavaScript; the JavaScript must be less than 2MB to be viewable in their editor and 30MB to be uploaded. In addition, the project may not have more than 500 generated files.

CodeSandbox FAQ wrote:

Are there any limitations with sandboxes?

* A sandbox cannot use more than 500 modules (files). Note though that node_modules and dependencies are not counted towards this limit.
* Imported sandboxes must contain a package.json file.
* The maximum file size that can be opened in the editor is 2MB. Files uploaded that are larger than that still exist but are linked as a static asset.
The maximum file upload size is 30MB (60MB for Pro users).

This is my signature. Go check out my GitHub if you want to!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Make sure to check out these cool projects, written in real code! (outdated, sorry)
Aviate - Itinerary - Scratch Auth - Orange OS Linux Distro - ocular - Leopard - PyHelp - My GitHub
YaYeetyeetyeet
Scratcher
0 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

For some reason leopard is unable to find my scratch project,I didnt use any extensions
Project ID 761738386
-0REDACTED0-
New to Scratch
1 post

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

When I try to convent a project to JAVASCRIPT i cand do it thate is no code but that shouldnt be a problem? Right?
thebruhed
Scratcher
7 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

my project doesn't work?????
define this
(now)

yee haw
when green flag clicked
wait until [power button v] pressed
if <powered off> then
set [powered on v] to [true]
start [windows v]
else
set [powered on v] to [false]
power off [after windows shuts down v]
end
thiyagesh
Scratcher
49 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

What are the modules required for manual coding of projects in scratch? (Like how to get scratch api ex.)
Also, any project i try to convert with automatic coding fails.

⭐ and ❤ and follow please. I'm making new and cool games.
Itz_Wolfram
Scratcher
66 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

ok turns out a lot of useful blocks do not work
Like “if on edge, bounce”

This is Some of the games I made https://scratch.mit.edu/projects/466767503/

if <you play my games> then(I will be glad)
medians
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

DifferentDance8 wrote:

Itz_Wolfram wrote:

medians wrote:

erc5 wrote:

Update: It seems to apply to a lot more projects now. Even projects which used to work don't work anymore. Can someone please explain why?
I tried this project: https://scratch.mit.edu/projects/760729153/
And it didn’t work.
what is your device?
I don't think device matters, unless you're dealing with a person who's device can't run JS. Then again, how would they be on this website?
I tried it on several devices… LOL
Every project I try does this, even the ones that have been converted.

Last edited by medians (Nov. 18, 2022 03:49:37)


:D: 2.0 is 11 years old https://scratch.mit.edu/projects/1018259409/
Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
tutu60000
Scratcher
4 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

No matter what project I seem to submit it says that it doesn't work. The project I wanted to submit was https://scratch.mit.edu/projects/760496902/
Please tell me how to fix it.
Redstone1080
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PLEASE READ THIS BEFORE POSTING!!! THIS IS WHY YOUR PROJECTS AREN'T CONVERTING!!!
NO PROJECTS ARE ABLE TO BE CONVERTED ANYMORE. The Scratch Team (the programmers, not the mods)™️ recently made some API changes that have broken Leopard. LEOPARD IS NOT ABLE TO CONVERT PROJECTS ANYMORE, AT LEAST FOR NOW.

Last edited by Redstone1080 (Nov. 18, 2022 23:42:38)


const juniper = programmer && musician;
// my pronouns are she/her
// i am trans and bi :P
// you can call me june or juni for short but i prefer juniper
python version:
juniper = programmer and musician
# my pronouns are she/her
# i am trans and bi :P
# you can call me june or juni for short but i prefer juniper
oggy_250413
Scratcher
10 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

Please use this thread to discuss Leopard, share your projects, and ask for help.


That's right! Translating Scratch to JavaScript is now possible! The tool is called Leopard, and it's available here:

Leopard Website – Go here to convert your projects!

Who needs this?
Scratch is amazing. This is the place where I learned to code almost 9 years ago. I love the Scratch community, and the fact that it's so easy to get started with Scratch. However, many of the features that make it easy to start using Scratch also make it underpowered for more experienced programmers.

With a different programming language like JavaScript, you get:
  • More features: You can do cool tricks that simply aren't possible with Scratch.
  • Speed: Your projects run faster and lag isn't as problematic.
  • Publishing options: Run your projects on any website, not just Scratch.
If you want to try a different programming language but find it difficult to get started, Leopard can help.

How is this different than Phosphorus?
Phosphorus is awesome, but it's a little different than Leopard. With Leopard you can view and edit the translated JavaScript code yourself.

What if it doesn't work?
Not every project will translate perfectly.
  • Only projects created using Scratch 3.0 can be translated. If you created your project using Scratch 2.0 or older, you'll need to open it up in the Scratch 3.0 editor, make a small change, and then try again.
  • Some Scratch blocks are not yet supported. Check the translations page to see which blocks have JavaScript equivalents using Leopard. More blocks will be supported over time.
  • Extension blocks won't work (except pen, which works great!)
  • Sometimes there are little inconsistencies. We've done our best to make sure Leopard behaves exactly the same as Scratch, but there will always be little cases we haven't considered. It's possible that your scripts will run slightly out of order, be a little too fast, or some other issue. Fortunately, you can edit the JavaScript code to fix those issues, and I'm happy to help.

Thank you so much to the contributors who made Leopard possible!
Well, I try to convert my projects, but it doesn't work. It have blocks compatible with Leopard, it's made in Scratch 3.0, it doesn't have any extensions (well, except pen) but it doesn't work. It says: “Failed to load project with ID 7613????? (censored project ID)”. Can anyone know why?

Last edited by NULL (January 1, 1970 0:00:00)

DifferentDance8
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

oggy_250413 wrote:

Well, I try to convert my projects, but it doesn't work. It have blocks compatible with Leopard, it's made in Scratch 3.0, it doesn't have any extensions (well, except pen) but it doesn't work. It says: “Failed to load project with ID 7613????? (censored project ID)”. Can anyone know why?

Redstone1080 wrote:

PLEASE READ THIS BEFORE POSTING!!! THIS IS WHY YOUR PROJECTS AREN'T CONVERTING!!!
NO PROJECTS ARE ABLE TO BE CONVERTED ANYMORE. The Scratch Team (the programmers, not the mods)™️ recently made some API changes that have broken Leopard. LEOPARD IS NOT ABLE TO CONVERT PROJECTS ANYMORE, AT LEAST FOR NOW.

R.I.P Zydrolic, 2023-2024
Cordongreen
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

It doesn't work even though my project was made in scratch 3.0!

My name is Cordongreen. I'm thinking of making projects and maybe even writing???

when forums entered::#5e02cf hat
always{

if <[post v]is[supposed to show v]::extension> then
load [post v]::#a2cf02
load [signature v]at x:(-90)y:(-20)::#a2cf02
}::#02cf9f
DifferentDance8
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

*facepalm* You all can't seem to read. Redstone made a post explaining that a Scratch API change made Leopard broken.

R.I.P Zydrolic, 2023-2024

Powered by DjangoBB