sb-edit icon indicating copy to clipboard operation
sb-edit copied to clipboard

[question] How to use sb-edit

Open ego-lay-atman-bay opened this issue 3 years ago • 1 comments

I'm so confused as to how I can use this. The readme doesn't have clear instructions on how to use it. btw, I just want to get the leapord code of a scratch project that I can't upload onto scratch.

ego-lay-atman-bay avatar Nov 30 '21 00:11 ego-lay-atman-bay

Bump, but for a different reason.

I found a scratchR repo and a Ubuntu ISO that runs scratchr on launch. HOWEVER, neither the java or the flashplayer shows anything, which is why I want to use sb-edit.

ozgq avatar Jan 24 '22 03:01 ozgq

I'm marginally late, but sb-edit isn't a standalone program. It's a library for various manipulations of Scratch projects (which for now is only really used for sb3 -> leopard conversion).

You can use an external tool like sb-edit-playground to convert an sb3 project into Leopard locally. Skip the steps about npm link, since that's only for locally developing Leopard. Installing and then converting a project works like this:

cd /path/to/sb-edit-playground/
npm install
node index.js /path/to/your-project.sb3 leopard

You have to use a local web server to actually view the project:

cd /path/to/sb-edit-playground/ # if you aren't already there
cd ./out/leopard/
npx http-server -p 3001
# then navigate to http://localhost:3001/ in your web browser

Putting the output folder online somewhere should work too.

towerofnix avatar Mar 10 '23 16:03 towerofnix