Discuss Scratch

superben100
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Cool! This will become very, very useful. I toyed with the idea a couple of years back, but of course, that method is not going to work anymore.

Thank you for this guide!

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
_nix
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

_nix wrote:

LuckyLucky7 wrote:

I got a permission denied error…
Can you copy-and-paste the entire error message? We can probably figure out exactly what went wrong if we have that.
After I put the following:
git clone git@github.com:LLK/scratch-gui.git
It said:
Cloning into 'scratch-gui'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
I used Command Prompt for this.
Okay, good to know. Try out this instead:

git clone https://github.com/LLK/scratch-gui

That should make things work

(The only difference is the way that git clones the repository – instead of using SSH, it's just downloading files the same way your web browser does (with HTTP).)

══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
superben100
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

_nix wrote:

LuckyLucky7 wrote:

_nix wrote:

LuckyLucky7 wrote:

I got a permission denied error…
Can you copy-and-paste the entire error message? We can probably figure out exactly what went wrong if we have that.
After I put the following:
git clone git@github.com:LLK/scratch-gui.git
It said:
Cloning into 'scratch-gui'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
I used Command Prompt for this.
Okay, good to know. Try out this instead:

git clone https://github.com/LLK/scratch-gui

That should make things work

(The only difference is the way that git clones the repository – instead of using SSH, it's just downloading files the same way your web browser does (with HTTP).)
Thanks. I'll keep this in mind.

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Whenever I try to install npm, it says that I need an administrator's permission to install it(very ANNOYING), so how do I mod Scratch 3 without administrator permission?

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

AmazingMech2418
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Whenever I try to install npm, it says that I need an administrator's permission to install it(very ANNOYING), so how do I mod Scratch 3 without administrator permission?
Try to activate sudo.

I'm a programmer, ethical hacker, and space nerd!

Last edited by Neil Armstrong (July 20, 1969 20:17:00)












sam
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

AmazingMech2418 wrote:

LuckyLucky7 wrote:

Whenever I try to install npm, it says that I need an administrator's permission to install it(very ANNOYING), so how do I mod Scratch 3 without administrator permission?
Try to activate sudo.
Thanks for trying to help, but I've already found a workaround to making my mod.
Experienced HTML/CSS/JavaScript programmers, like me, can mod Scratch 3 easily.
I did it my own way, so here's how someone(an experienced HTML/CSS/JavaScript programmer) would do it:
Before following the steps: Create a GitHub account(very easy)
If they created an account already or finished creating the GitHub account, they will have to follow the steps below.
  1. Go to glitch.com
  2. Click “New Project” and then click “hello-webpage”, which brings you here
  3. Sign in to glitch.com using GitHub
  4. Go to https://llk.github.io/scratch-gui/master/
  5. Right click the stage and click “Inspect Element”
  6. Scroll all the way to the top of the HTML code
  7. Right click the element that says “<html>” and then click “Edit as HTML”
  8. Select everything(Ctrl+A) and then Copy everything(Ctrl+C)
  9. Go back https://glitch.com/edit/#!/remix/hello-webpage
  10. Click where it says something like “index.html” and then Paste(Ctrl+V) the code that was copied
  11. Wait for the lag to go away
  12. (They would do whatever they want with the code)

Last edited by LuckyLucky7 (June 21, 2018 19:49:22)


I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

AmazingMech2418 wrote:

LuckyLucky7 wrote:

Whenever I try to install npm, it says that I need an administrator's permission to install it(very ANNOYING), so how do I mod Scratch 3 without administrator permission?
Try to activate sudo.
Thanks for trying to help, but I've already found a workaround to making my mod.
Experienced HTML/CSS/JavaScript programmers, like me, can mod Scratch 3 easily.
I did it my own way, so here's how someone(an experienced HTML/CSS/JavaScript programmer) would do it:
Before following the steps: Create a GitHub account(very easy)
If they created an account already or finished creating the GitHub account, they will have to follow the steps below.
  1. Go to glitch.com
  2. Click “New Project” and then click “hello-webpage”, which brings you here
  3. Sign in to glitch.com using GitHub
  4. Go to https://llk.github.io/scratch-gui/master/
  5. Right click the stage and click “Inspect Element”
  6. Scroll all the way to the top of the HTML code
  7. Right click the element that says “<html>” and then click “Edit as HTML”
  8. Select everything(Ctrl+A) and then Copy everything(Ctrl+C)
  9. Go back https://glitch.com/edit/#!/remix/hello-webpage
  10. Click where it says something like “index.html” and then Paste(Ctrl+V) the code that was copied
  11. Wait for the lag to go away
  12. (They would do whatever they want with the code)
That will not work. Copying the HTML on the site will not give you a functional version of the code, it will give you a non-functional copy. Here's what it will look like:

Although it looks almost correct (lacking images, but almost correct), there is no functionality. It's impossible to close the dialog. Nothing will ever be loaded on the canvas. It doesn't work. You can then of course modify the JavaScript URLs to point to the usual page, but it is much easier to just do the following:
You can go to https://github.com/llk/scratch-gui and clicking download as zip. That gives you full access to the real code. And with the real code, you can actually use it.

Last edited by JGames101 (June 24, 2018 20:34:11)

LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

JGames101 wrote:

LuckyLucky7 wrote:

-snip-
That will not work. Copying the HTML on the site will not give you a functional version of the code, it will give you a non-functional copy. Here's what it will look like:

Although it looks almost correct (lacking images, but almost correct), there is no functionality. It's impossible to close the dialog. Nothing will ever be loaded on the canvas. It doesn't work. You can then of course modify the JavaScript URLs to point to the usual page, but it is much easier to just do the following:
You can go to https://github.com/llk/scratch-gui and clicking download as zip. That gives you full access to the real code. And with the real code, you can actually use it.
But nobody except you can access it, otherwise you would just be modifying a private Scratch mod. Currently in my mod, I can't copy and paste the file “lib.min.js” because glitch.com gets REALLY laggy when I do on https://llk.github.io/scratch-gui/master You can see https://lucky7mod.glitch.me/ for my Public mod for Scratch 3. If the website for my mod looks like 3 Scratch GUIs with 1 of them non-functional, this means that I'm having trouble copying and pasting “lib.min.js”, because it takes a long time for me to do it.
My browser / operating system: Windows NT 10.0, Chrome 67.0.3396.87, Flash 30.0 (release 0)
Also, if I try modding Scratch 3 with your way in the OP, it says that I need an administrator's permission to install npm(it actually downloads node.js first), but my way doesn't need an administrator's permission, so that way is easier for me.

Last edited by LuckyLucky7 (June 25, 2018 12:26:09)


I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Jonathan50
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

But nobody except you can access it, otherwise you would just be modifying a private Scratch mod.
Of course not, you can redistribute Scratch mods as much as you like, as long as you don't use the Scratch trademark. You would just have to upload it somewhere, or use a web host, or sign up for GitHub and create a fork, or whatever.
Also, if I try modding Scratch 3 with your way in the OP, it says that I need an administrator's permission to install npm(it actually downloads node.js first), but my way doesn't need an administrator's permission, so that way is easier for me.
You'd only need to do it once.

Not yet a Knight of the Mu Calculus.
ScratchDiogoh
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I wanted to make a Mod, but there any way without the GitHub (Why do not I like him)

Last edited by ScratchDiogoh (July 11, 2018 17:04:15)


+1700 Bad Posts
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

ScratchDiogoh wrote:

I wanted to make a Mod, but there any way without the GitHub (Why do not I like him)
There's a way, it's just kind of hard. You will need a code editor for the way I will explain it.
Go o glitch.com and click “Sign in” and then create an account by selecting one of the options. After creating an account, copy and paste the code from https://llk.github.io/scratch-gui/master/gui.js into a file and then close it after modifying it. You will need to update this file every 5-7 days. Then copy and paste the code from here and then save it into a separate file and then upload both files onto your project and then after they both upload, click on one file and then click “Copy URL” and then in the index.html…

Sorry if I did not explain this completely, I was getting sleepy while typing this

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I've modified Scratch blocks and made the blocks less fat.

I also added back the square string inputs and flipped the colours of the events and control blocks.

Because I really like the block duplication behaviour in Scratch 2.0, I tried to replicate the right click menu design.

You can try it out here.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Sheep_maker wrote:

I've modified Scratch blocks and made the blocks less fat.

I also added back the square string inputs and flipped the colours of the events and control blocks.

Because I really like the block duplication behaviour in Scratch 2.0, I tried to replicate the right click menu design.

You can try it out here.
What does the <O RLY?> block do?

Last edited by LuckyLucky7 (July 13, 2018 13:25:16)


I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Sheep_maker wrote:

You can try it out here.
What does the <O RLY?> block do?
I think it's just an example block for demonstration purposes.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Sheep_maker wrote:

LuckyLucky7 wrote:

Sheep_maker wrote:

You can try it out here.
What does the <O RLY?> block do?
I think it's just an example block for demonstration purposes.
Ok. I wonder if you are working on more projects like this one and the utilities extension.

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

PineappleDonuts
Scratcher
77 posts

Guide to Modding Scratch 3.0

Yep, I definitely understood that XF

0(w ::motion)0 ::ring 
Support the Grian Movement: here!
And while you're here:
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Ugh, another error?
I followed instructions of how to install Node and npm with No Administrator's permission and now this happens:
C:\Users\*censored due to name reveal*\scratch-gui> npm install
'npm' is not recognized as an internal command or external command, operable program or batch file.

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Ugh, another error?
I followed instructions of how to install Node and npm with No Administrator's permission and now this happens:
C:\Users\*censored due to name reveal*\scratch-gui> npm install
'npm' is not recognized as an internal command or external command, operable program or batch file.
Please Answer

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Jonathan50
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Ugh, another error?
I followed instructions of how to install Node and npm with No Administrator's permission and now this happens:
C:\Users\*censored due to name reveal*\scratch-gui> npm install
'npm' is not recognized as an internal command or external command, operable program or batch file.
Make sure that it's in your PATH (Go to Control Panel -> User Accounts and Family Safety -> User Accounts -> Change my environment variables -> User variables for […] and look for a variable called PATH. If it doesn't exist, make it, if it's there but doesn't contain the folder where NPM is installed, edit it, add a semicolon to the end and paste the path in.)

Is installing NPM as an administrator really a problem?

Last edited by Jonathan50 (July 25, 2018 01:33:47)


Not yet a Knight of the Mu Calculus.
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Jonathan50 wrote:

Is installing NPM as an administrator really a problem?
For me, yes.
There should really be a sticky for how to mod Scratch 3 without being an administrator.

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Powered by DjangoBB