Discuss Scratch

god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?
If it was localhost:8601 then you would go to
http://localhost:8601
Don't use HTTPS because localhost 99% of the time doesn't have a signed TLS certificate. I think you should run it in Git Bash since it's better than Command Prompt in my opinion and supports bash commands.

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?
If it was localhost:8601 then you would go to
http://localhost:8601
Don't use HTTPS because localhost 99% of the time doesn't have a signed TLS certificate. I think you should run it in Git Bash since it's better than Command Prompt in my opinion and supports bash commands.


Thanks, I got it working now to try and start modding it. I also found it easier to just use Git CMD
Also do I just ignore the errors or what do I do about them

Last edited by TerminatorTroy6 (Nov. 29, 2021 02:03:31)

god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Scratch modding is a nightmare for me, not doing it again

Last edited by god286 (Nov. 29, 2021 02:20:23)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



Yeah when I installed npm I also got error messages, they looked like this:

up to date, audited 2041 packages in 21s

68 packages are looking for funding
run `npm fund` for details

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Do I ignore it or what should I do?
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Do I ignore it or what should I do?
https://scratch.mit.edu/users/ogadaki/#comments-172951762
@ogadaki makes a cool scratch mod

ogadaki wrote:

To be honest I never really worried about it (but maybe I should). Current official scratch-blocks project from MIT (which is the one used at scratch.mit.edu) has currently 36 vulnerabilities (19 high). So if MIT don't “worry” about it while it's used by millions of people, it's OK for you to live with it for your own Scratch mod!
so you don't need to care
how did you even get it to work??

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

Do I ignore it or what should I do?
https://scratch.mit.edu/users/ogadaki/#comments-172951762
@ogadaki makes a cool scratch mod

ogadaki wrote:

To be honest I never really worried about it (but maybe I should). Current official scratch-blocks project from MIT (which is the one used at scratch.mit.edu) has currently 36 vulnerabilities (19 high). So if MIT don't “worry” about it while it's used by millions of people, it's OK for you to live with it for your own Scratch mod!
so you don't need to care
how did you even get it to work??

Thanks
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

I went to https://github.com/LLK/scratch-desktop
Clicked code then download zip
I unzipped the files and opened the folder in VS Code
How do I run it???

Last edited by TerminatorTroy6 (Nov. 29, 2021 05:13:36)

TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

How do I add a button in VS Code, I want to make a settings page
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

Omg I was trying to edit https://github.com/LLK/scratch-desktop the whole time, tomorrow I am going to try and code a GUI
chinmaym
Scratcher
68 posts

Guide to Modding Scratch 3.0

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

god286 wrote:

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



Yeah when I installed npm I also got error messages, they looked like this:

up to date, audited 2041 packages in 21s

68 packages are looking for funding
run `npm fund` for details

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Do I ignore it or what should I do?
1. those aren't error messages, you can ignore them.
2. node.js comes with npm preinstalled, i think you'll now need to completely remove node.js and reinstall it because npm install npm on windows totally bricks npm


Made using Nord Theme & Inkscape
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

chinmaym wrote:

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
You should probably use HTTP instead of HTTPS when developing. This sounds like the problem.

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?

Last edited by god286 (Nov. 30, 2021 00:21:22)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?


C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop>npm run start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\termi\AppData\Local\npm-cache\_logs\2021-11-30T00_25_49_081Z-debug.log
chinmaym
Scratcher
68 posts

Guide to Modding Scratch 3.0

god286 wrote:

chinmaym wrote:

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
You should probably use HTTP instead of HTTPS when developing. This sounds like the problem.
How???
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

god286 wrote:

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?

C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop>npm run start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\termi\AppData\Local\npm-cache\_logs\2021-11-30T00_25_49_081Z-debug.log[/quote]




Do I use npm install???
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Do I use npm install???
Of course you need to run npm install… that's how modding works
I think you must have done it already if you're all the way up to here - I got a similar issue with you

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

Do I use npm install???
Of course you need to run npm install… that's how modding works
I think you must have done it already if you're all the way up to here - I got a similar issue with you


I also just noticed I spelt “Modding” wrong

That worked but now I get this:
C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop\scratch-gui-develop>npm run start

> scratch-gui@0.1.0 start
> webpack-dev-server

'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.

Last edited by TerminatorTroy6 (Nov. 30, 2021 01:25:54)

god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0


I may or may not have just made “Red Block Mod”
On a serious note, I have no idea what I have done wrong but now I am really tired of scratch mods.

A warning:
Ignoring non-existent input STEPS in block motion_movebacksteps

Last edited by god286 (Nov. 30, 2021 02:18:05)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.

Powered by DjangoBB