Discuss Scratch

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
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.
Redstone1080
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Is there a public API you can use to convert projects?
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…
worthyworm
Scratcher
1 post

Leopard: Edit Scratch projects as JavaScript code

what about sb3 files instead of just public scratch links
Mario5Sonic
Scratcher
49 posts

Leopard: Edit Scratch projects as JavaScript code

yea
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!
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/
pooiod7
Scratcher
92 posts

Leopard: Edit Scratch projects as JavaScript code

so many posts displaying it not working
Itz_Wolfram
Scratcher
66 posts

Leopard: Edit Scratch projects as JavaScript code

pooiod7 wrote:

so many posts displaying it not working
For mine, i think it might be too large.
ego-lay_atman-bay
Scratcher
500+ posts

Leopard: Edit Scratch projects as JavaScript code

DifferentDance8 wrote:

FYI: The links do not have to lead to shared projects. They can lead to unshared projects as well.
At some point, this will not be possible anymore. https://docs.turbowarp.org/unshared-projects
ego-lay_atman-bay
Scratcher
500+ posts

Leopard: Edit Scratch projects as JavaScript code

pooiod7 wrote:

(#645)
so many posts displaying it not working
Of course. No one bothers to say anything when it does work (unless they previously said that it doesn't work).
pooiod7
Scratcher
92 posts

Leopard: Edit Scratch projects as JavaScript code

#648

makes sense

Powered by DjangoBB