Discuss Scratch

omarahmedessawy
Scratcher
12 posts

Leopard: Edit Scratch projects as JavaScript code

the project https://scratch.mit.edu/projects/737835423/ isnt working
move (CAN YOU HELP ME FIX IT) steps
Redstone1080
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

drapoeL: JS to Scratch

Maintainer of Snazzle | User of Linux (Fedora in particular) | Fan of Rockets
thatgamertristan2
Scratcher
6 posts

Leopard: Edit Scratch projects as JavaScript code

no matter what i do it just says

There was an error converting your project.

Cannot read properties of undefined (reading ‘0’)

Leopard only supports new projects (created in Scratch 3.0). And the only supported extension is “pen”; all others will fail.

If you aren't sure why your project is failing, ask on the forums!
bloctans_4
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Redstone1080 wrote:

drapoeL: JS to Scratch
i dont think thats possible

Generation 4: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
moa8th
Scratcher
13 posts

Leopard: Edit Scratch projects as JavaScript code

So the pin projects don't work in leopard.

Maybe try to turn the pin project to HTML never mind for javascript.
So make something else than pin projects
when green flag clicked
move (10[scratchblocks]
) steps[/scratchblocks]
turn cw ()[scratchblocks]
degrees
play sound [Meow v]
[/scratchblocks]
Cool--Scratcher
Scratcher
100+ posts

Leopard: Edit Scratch projects as JavaScript code

Guys. Josh literally says in the first post that only some projects will work with Leopard. Choose a smaller project that uses a minimal amount of blocks and include some cool stuff. Translate it using Leopard and learn from it. No need to try translating something super insane, lol


█▀▀ █▀█ █▀█ █░░ ▄▄ ▄▄ █▀ █▀▀ █▀█ ▄▀█ ▀█▀ █▀▀ █░█ █▀▀ █▀█
█▄▄ █▄█ █▄█ █▄▄ ░░ ░░ ▄█ █▄▄ █▀▄ █▀█ ░█░ █▄▄ █▀█ ██▄ █▀▄

ᴇxᴘᴇʀɪᴇɴᴄᴇᴅ - 8 ʏᴇᴀʀꜱ! ᴍɪɴᴇᴄʀᴀꜰᴛ! ꜱᴄʀᴀᴛᴄʜ! ʜᴛᴍʟ, ᴄꜱꜱ (kind of)

15 years old // he/him // forumer // video producer // video maker for a certain browser extension

Any questions? Drop by my profile; I'll be happy to help!

stop necroposting i beg you
GoldenCraftVsGames
Scratcher
2 posts

Leopard: Edit Scratch projects as JavaScript code

https://scratch.mit.edu/projects/729146047/

i'm new to using this program btw.

Just loaded this, gave an error.

I wasn't using any external additions (pen, etc.), and this is a new project made using Scratch 3.0

Really need to know what the problem is.

Thx
bloctans_4
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

GoldenCraftVsGames wrote:

https://scratch.mit.edu/projects/729146047/

i'm new to using this program btw.

Just loaded this, gave an error.

I wasn't using any external additions (pen, etc.), and this is a new project made using Scratch 3.0

Really need to know what the problem is.

Thx
i dont trust JSON.parse.

Generation 4: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
Redstone1080
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Is there a public API you can use to convert projects?

Maintainer of Snazzle | User of Linux (Fedora in particular) | Fan of Rockets
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Redstone1080 wrote:

Is there a public API you can use to convert projects?
Not a very good one, but if you hit
https://leopardjs.com/api/PROJECT_ID/codesandbox
it will create a codesandbox and give you back the link as JSON. (Replace PROJECT_ID with the id number found in the project's URL.)
Redstone1080
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

PullJosh wrote:

(#634)

Redstone1080 wrote:

Is there a public API you can use to convert projects?
Not a very good one, but if you hit
https://leopardjs.com/api/PROJECT_ID/codesandbox
it will create a codesandbox and give you back the link as JSON. (Replace PROJECT_ID with the id number found in the project's URL.)
Thank you! Maybe I could make an API that uses browser automation to get the content of the codesandbox and then returns the content of all the files…

Maintainer of Snazzle | User of Linux (Fedora in particular) | Fan of Rockets
worthyworm
Scratcher
1 post

Leopard: Edit Scratch projects as JavaScript code

what about sb3 files instead of just public scratch links

hi
Mario5Sonic
Scratcher
48 posts

Leopard: Edit Scratch projects as JavaScript code

yea

kia ora!
when green flag clicked
repeat (10)
turn cw () degrees
end
say [hey, you lookin at me??] for (2) secs
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Redstone1080 wrote:

PullJosh wrote:

(#634)

Redstone1080 wrote:

Is there a public API you can use to convert projects?
Not a very good one, but if you hit
https://leopardjs.com/api/PROJECT_ID/codesandbox
it will create a codesandbox and give you back the link as JSON. (Replace PROJECT_ID with the id number found in the project's URL.)
Thank you! Maybe I could make an API that uses browser automation to get the content of the codesandbox and then returns the content of all the files…
Alternatively, you could create a fork of the website repository to create your own version of leopardjs.com that does something different. If you edit this file you could make your own API that just gives the file contents directly rather than creating a codesandbox.

If you do this, it would be very easy to host your own edited copy of leopardjs.com for free using Vercel.
DifferentDance8
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

worthyworm wrote:

what about sb3 files instead of just public scratch links
FYI: The links do not have to lead to shared projects. They can lead to unshared projects as well.
Proof: I tried using leapord for one of my coder dojo projects.
Redstone1080
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

PullJosh wrote:

(#638)
~quotes snipped~
Alternatively, you could create a fork of the website repository to create your own version of leopardjs.com that does something different. If you edit this file you could make your own API that just gives the file contents directly rather than creating a codesandbox.

If you do this, it would be very easy to host your own edited copy of leopardjs.com for free using Vercel.
Alright, might look into it. Thanks!

Maintainer of Snazzle | User of Linux (Fedora in particular) | Fan of Rockets
bananasteddy
Scratcher
45 posts

Leopard: Edit Scratch projects as JavaScript code

FlipBookMan21
Scratcher
54 posts

Leopard: Edit Scratch projects as JavaScript code

Help! why wont my project convert? idk whats wrong, i didnt use any extensions/ blocks that don't work. heres the project, maybe someone will see something i didnt.
thanks

https://scratch.mit.edu/projects/716113243/
GreenFasou
New Scratcher
1 post

Leopard: Edit Scratch projects as JavaScript code

Hi I need help
why wont my project convert?
please help me

https://scratch.mit.edu/projects/749969825
Thanks
Itz_Wolfram
Scratcher
66 posts

Leopard: Edit Scratch projects as JavaScript code

Can you help me, this project wont convert
https://scratch.mit.edu/projects/715850379/

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

if <you play my games> then(I will be glad)

Powered by DjangoBB