Discuss Scratch

----WindowsXD-----
Scratcher
82 posts

Guide to Modding Scratch 3.0

PintOfMilk wrote:

Reported it to be stickied!
why?
AmazingMech2418
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

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
npm is a nodejs package installer. It needs to be downloaded.
MrMeowington
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Holy cow, the cloning is taking a while!

Well I mean, it could be worse.
It could be a Raspbian update!
MrMeowington
Scratcher
100+ posts

Guide to Modding Scratch 3.0

If you're using Linux, you might want to run the install command with root privileges…
sudo npm install

Last edited by MrMeowington (Aug. 24, 2018 22:55:32)

AmazingMech2418
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

MrMeowington wrote:

You might want to run the install command with root privileges…
sudo npm install
Sudo doesn't work in Batch. Bash can use sudo, though.
MrMeowington
Scratcher
100+ posts

Guide to Modding Scratch 3.0

AmazingMech2418 wrote:

MrMeowington wrote:

You might want to run the install command with root privileges…
sudo npm install
Sudo doesn't work in Batch. Bash can use sudo, though.
Yeah, I just realized that I wasn't very clear on that and was just coming back to fix it.
Only Linux users can enter ‘sudo’ at the terminal.
jokebookservice1
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

MrMeowington wrote:

AmazingMech2418 wrote:

MrMeowington wrote:

You might want to run the install command with root privileges…
sudo npm install
Sudo doesn't work in Batch. Bash can use sudo, though.
Yeah, I just realized that I wasn't very clear on that and was just coming back to fix it.
Only Linux users can enter ‘sudo’ at the terminal.
Actually, Mac users (and I think Unix too) can also use sudo at their terminals
AmazingMech2418
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

jokebookservice1 wrote:

MrMeowington wrote:

AmazingMech2418 wrote:

MrMeowington wrote:

You might want to run the install command with root privileges…
sudo npm install
Sudo doesn't work in Batch. Bash can use sudo, though.
Yeah, I just realized that I wasn't very clear on that and was just coming back to fix it.
Only Linux users can enter ‘sudo’ at the terminal.
Actually, Mac users (and I think Unix too) can also use sudo at their terminals
Yes, but not Windows.
ateesdalejr
Scratcher
100+ posts

Guide to Modding Scratch 3.0

jokebookservice1 wrote:

MrMeowington wrote:

AmazingMech2418 wrote:

MrMeowington wrote:

You might want to run the install command with root privileges…
sudo npm install
Sudo doesn't work in Batch. Bash can use sudo, though.
Yeah, I just realized that I wasn't very clear on that and was just coming back to fix it.
Only Linux users can enter ‘sudo’ at the terminal.
Actually, Mac users (and I think Unix too) can also use sudo at their terminals
please use su instead.
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

Hi JGames101 and everyone, I tried
git clone git@github.com:LLK/scratch-gui.git
but I get the following error message:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Am I doing something wrong?
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

Hi JGames101 and everyone, I tried
git clone git@github.com:LLK/scratch-gui.git
but I get the following error message:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Am I doing something wrong?
Trying the GUI version of Git I get a similar error message:
Warning: Permanently added the RSA host key for IP address ‘192.30.253.113’ to the list of known hosts.
git clone git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

Hi JGames101 and everyone, I tried
git clone git@github.com:LLK/scratch-gui.git
but I get the following error message:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Am I doing something wrong?

I solved the clone problem by using the “Clone existing repository” in the GUI version of github and using

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

as Source Location, as suggested at https://github.com/LLK/scratch-gui. Then, after installing and starting it, I got Scratch 3 correctly working at localhost:8601. Thanks JGames101!
s_federici
Scratcher
500+ 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.

I like a lot the thinner blocks! How did you get that? I just downloaded the source code and made it run in node.js, so I really don't know where to start
Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

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.

I like a lot the thinner blocks! How did you get that? I just downloaded the source code and made it run in node.js, so I really don't know where to start
I don't recall exactly what I did, but you can see my changes here. Most of my changes were made in core/block_render_svg_vertical.js

I believe I had some trouble building it to gh-pages because I didn't have Python, so I just manually moved my files over to the other branch and that worked.
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

When I run
npm link
I get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

When I run
npm link
I get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?
After having installed python (version 2.x; version 3.x apparently DOESN'T work with the Scratch 3 source code) I get the following error when I run “npm link”:

> python build.py && webpack

Traceback (most recent call last):
File “build.py”, line 569, in <module>
test_proc = subprocess.Popen(test_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File “C:\Python27\lib\subprocess.py”, line 394, in __init__
errread, errwrite)
File “C:\Python27\lib\subprocess.py”, line 644, in _execute_child
startupinfo)
WindowsError: Impossibile trovare il file specificato
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-blocks@0.1.0-prerelease.1540417094 prepublish: `python build.py && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-blocks@0.1.0-prerelease.1540417094 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\s_fed\AppData\Roaming\npm-cache\_logs\2018-11-01T10_45_46_092Z-debug.log
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

Is there anyone following this thread that knows how to work on Scratch 3 source code? It seems that JGames101 is not monitoring it
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

Is there anyone following this thread that knows how to work on Scratch 3 source code? It seems that JGames101 is not monitoring it
I used Glitch, but Scratch 3 kept having updates so the code got messed up for me. The only solution now is to wait until Scratch 3 actually releases and then use Glitch to edit the Scratch 3 source code.
JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

I'm in the process of rewriting the post now. I've been away from Scratch for a while but I am now much more familiar with npm than I was at the time I originally wrote it.
JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

s_federici wrote:

s_federici wrote:

When I run
npm link
I get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?
After having installed python (version 2.x; version 3.x apparently DOESN'T work with the Scratch 3 source code) I get the following error when I run “npm link”:

> python build.py && webpack

Traceback (most recent call last):
File “build.py”, line 569, in <module>
test_proc = subprocess.Popen(test_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File “C:\Python27\lib\subprocess.py”, line 394, in __init__
errread, errwrite)
File “C:\Python27\lib\subprocess.py”, line 644, in _execute_child
startupinfo)
WindowsError: Impossibile trovare il file specificato
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-blocks@0.1.0-prerelease.1540417094 prepublish: `python build.py && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-blocks@0.1.0-prerelease.1540417094 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\s_fed\AppData\Roaming\npm-cache\_logs\2018-11-01T10_45_46_092Z-debug.log
The new instructions addresses this issue with a workaround. I'm looking into a proper fix. Is it possible for you to run the code in an environment without Java installed? If so, try running the command without java, in which case it uses the web version to compile, which should work successfully. I'm looking into how to make it work without this workaround.

Powered by DjangoBB