Discuss Scratch

LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Sheep_maker wrote:

LuckyLucky7 wrote:

Sheep_maker wrote:

Perhaps you haven't installed webpack properly. Try running `npm install` again on Git Bash, then try `npm start` again
When I install NPM, all GIT Bash does is give 4 warnings and then it does nothing else(it doesn't end the command and does do nothing).
Scratch GUI has a lot of dependencies, so installing it takes quite some time. NPM outputs warnings as it goes (but doesn't output anything if there's nothing wrong), then it becomes silent as it loads a big dependency.

Try again and wait a bit longer maybe
I did, and I think it worked.
...@... MINGW64 ~/Scratch_Mod/scratch-gui (develop)
$ npm install
npm WARN deprecated react-dom@16.2.0: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.

> chromedriver@2.44.1 install C:\Users\...\Scratch_Mod\scratch-gui\node_modules\chromedriver
> node install.js

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
Downloading from file: https://chromedriver.storage.googleapis.com/2.44/chromedriver_win32.zip
Saving to file: C:\Users\...\AppData\Local\Temp\chromedriver\chromedriver_win32.zip
Received 781K...
Received 1566K...
Received 2350K...
Received 3134K...
Received 3918K...
Received 4467K total.
Extracting zip contents
Copying to target path C:\Users\...\Scratch_Mod\scratch-gui\node_modules\chromedriver\lib\chromedriver
Done. ChromeDriver binary available at C:\Users\...\Scratch_Mod\scratch-gui\node_modules\chromedriver\lib\chromedriver\chromedriver.exe

> webpack-cli@3.2.0 postinstall C:\Users\...\Scratch_Mod\scratch-gui\node_modules\webpack-cli
> opencollective postinstall


*** Thank you for using webpack-cli! ***

Please consider donating to our open collective
to help us maintain this package.

https://opencollective.com/webpack/donate

***

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN eslint-config-scratch@5.0.0 requires a peer of babel-eslint@^8.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-scratch@5.0.0 requires a peer of eslint@^4.0 but none is installed. You must install peer dependencies yourself.
npm WARN scratch-paint@0.2.0-prerelease.20181220194927 requires a peer of react-intl-redux@^0.7 but none is installed. You must install peer dependencies yourself.
npm WARN scratch-paint@0.2.0-prerelease.20181220194927 requires a peer of react-responsive@^4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1476 packages from 1116 contributors and audited 31394 packages in 1002.73s
found 2 vulnerabilities (1 low, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
AubarinoEmpire
Scratcher
18 posts

Guide to Modding Scratch 3.0

could someone make a hacked / edited key mapping block for me.
the only thing i do not like about 3.0 is that the hacked keys for “enter” and “tab” i am using are not working.
if someone can make some adv blocks for me i will really love it.

i am making a game named scp liberation that i am converting from a sb2 - soon sb3? to a swf and then exe + some custom things added to the package via some resource hacking programs.

i am making a real indie game for game-jolt with scratch and pushing the limits of it at the same time.
the game has 2 hours of content when speed running to the end so far and i will add more. i have 2/3 parts of the game done and all the AI and tracking is working well. i picked scratch for its easy coding layout and my skill in it. other programs like “unity 2D” and “game maker” allow more but the coding takes time. with this i can just clip some blocks together and boom i got like 10 mins of typing and debugging done.

its not the best idea to use scratch for this but…
its better then other options. + i have alot of skill in it. over 4 accounts on this site.

if someone can make me some custom blocks and remade content i will add a easter egg of you in my game.

oh and if you can please tell the scratch devs about my post so thay can think about ADDING MORE KEY ABILITYS AND A KEY SENCOR SO IT CAN TELL YOU THE ID OF A KEY THAT IS TYPED!

xoxoxoxo pro / vet scratcher from 2013.

i joined when i was 9 and i am now nearly 15. at the time of this post.
MabonBaladevaKain
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Request to Smart People: Mod Scratch 3.0 to save the Scratch projects as .apk files please.

I went all the way through the Codecademy Java course and learned only the very basic commands and syntax so far …
Anyone know a good place for me to learn the rest of the Java syntax?

I need to get my game made and on an app store asap. All the non-essential stuff I can learn afterwards.
What is the best way to get a native android game created and put in an app store such as Google Play?
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

MabonBaladevaKain wrote:

Request to Smart People: Mod Scratch 3.0 to save the Scratch projects as .apk files please.

I went all the way through the Codecademy Java course and learned only the very basic commands and syntax so far …
Anyone know a good place for me to learn the rest of the Java syntax?

I need to get my game made and on an app store asap. All the non-essential stuff I can learn afterwards.
What is the best way to get a native android game created and put in an app store such as Google Play?
This is possible. I think what you should do is:
Step 1: Upload a project to your device
Step 2: Find a way to make the file into a .zip file(probably by renaming it)
Step 3: Find a .zip to .apk converter online
Step 4: Save the converted file to your device
But I haven't tried doing this myself.
JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

AubarinoEmpire wrote:

could someone make a hacked / edited key mapping block for me…

MabonBaladevaKain wrote:

Request to Smart People…

This thread is for learning to make Scratch 3 Mods, asking questions are sharing information about making Scratch 3 Mods. If you would like to make a request for a mod, please make a new thread in this forum or the collaboration forum. If you would like to learn how to make your mods, please phrase your question as a question of how to do something, rather than asking someone else to do something. Thanks!

LuckyLucky7 wrote:

This is possible. I think what you should do is:
  • Step 1: Upload a project to your device
  • Step 2: Find a way to make the file into a .zip file(probably by renaming it)
  • Step 3: Find a .zip to .apk converter online
  • Step 4: Save the converted file to your device
But I haven't tried doing this myself.
That won't work, because Android doesn't understand Scratch's project.json. Even though they use a similar systems of having an archive of files that get loaded to make the app, they are not the same files inside. It is still very possible, though, using Android's WebView, and I'm looking into it.
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Apparently, I've been waiting over 30 minutes for the “npm start” command to run. This is where it stops loading:
tension-support/extension-worker.js 3.5 KiB {main} [built]
[./node_modules/minilog/lib/common/filter.js] 1.36 KiB {main} [built]
[./node_modules/minilog/lib/common/minilog.js] 1.55 KiB {main} [built]
[./node_modules/minilog/lib/web/array.js] 319 bytes {main} [built]
[./node_modules/minilog/lib/web/console.js] 925 bytes {main} [built]
[./node_modules/minilog/lib/web/index.js] 1.28 KiB {main} [built]
[./node_modules/minilog/lib/web/jquery_simple.js] 2.16 KiB {main} [built]
[./node_modules/minilog/lib/web/localstorage.js] 530 bytes {main} [built]
[./node_modules/scratch-vm/src/dispatch/shared-dispatch.js] 13.8 KiB {main} [built]
[./node_modules/scratch-vm/src/dispatch/worker-dispatch.js] 6.69 KiB {main} [built]
[./node_modules/scratch-vm/src/extension-support/argument-type.js] 605 bytes {main} [built]
[./node_modules/scratch-vm/src/extension-support/block-type.js] 929 bytes {main} [built]
[./node_modules/scratch-vm/src/extension-support/target-type.js] 308 bytes {main} [built]
[./node_modules/scratch-vm/src/util/log.js] 84 bytes {main} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
+ 5 hidden modules
i 「wdm」: Compiled with warnings.
Besides getting better internet connection, is there a solution for this? What is the “npm start” command supposed to do when it loads completely?
Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

The `npm start` doesn't stop until you do ctrl+C to make it stop. While it's running, go to http://localhost:8601/ in your browser. I don't think you even need an internet connection at this point.

AubarinoEmpire wrote:

could someone make a hacked / edited key mapping block for me.
the only thing i do not like about 3.0 is that the hacked keys for “enter” and “tab” i am using are not working.
As of now, Scratch 3.0 explicitly ignores those special keys when pressed. Even though the key pressed block supports ASCII, it only allows a certain range of characters

Last edited by Sheep_maker (Jan. 6, 2019 23:53:07)

LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Sheep_maker wrote:

The `npm start` doesn't stop until you do ctrl+C to make it stop. While it's running, go to http://localhost:8601/ in your browser. I don't think you even need an internet connection at this point.
When I went to the local host website, I saw that the images are missing. Is this supposed to happen?
oklok
Scratcher
2 posts

Guide to Modding Scratch 3.0

Hi, I have a project, where I have list, but the list is too big(width and height) and I can't make it smaller(I can either hide or show the list, but I can't do anything else with it. It covers the entire project page), and also when I add too long sentence or more sentences to one item in the list, it just says … at the end of the line, but before in Scratch 2.0 it went across all the lines that were visible. Help me.
The project:
https://scratch.mit.edu/projects/246153580/editor/
Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

oklok wrote:

Hi, I have a project, where I have list, but the list is too big(width and height) and I can't make it smaller(I can either hide or show the list, but I can't do anything else with it. It covers the entire project page), and also when I add too long sentence or more sentences to one item in the list, it just says … at the end of the line, but before in Scratch 2.0 it went across all the lines that were visible. Help me.
The project:
https://scratch.mit.edu/projects/246153580/editor/
Delete Essay and recreate it (assuming you aren't storing any important data in it). That'll reset its size

List items are inputs (because they don't support newline characters), and input elements don't wrap, so one could consider this a technical limitation
JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Sheep_maker wrote:

The `npm start` doesn't stop until you do ctrl+C to make it stop. While it's running, go to http://localhost:8601/ in your browser. I don't think you even need an internet connection at this point.
When I went to the local host website, I saw that the images are missing. Is this supposed to happen?
Is npm start still running in your command line? It should keep going the whole time you're testing. Otherwise, there was an issue with the build, and you might want to try the command again.
jokebookservice1
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Sheep_maker wrote:

The `npm start` doesn't stop until you do ctrl+C to make it stop. While it's running, go to http://localhost:8601/ in your browser. I don't think you even need an internet connection at this point.
When I went to the local host website, I saw that the images are missing. Is this supposed to happen?
Instead of `npm start`, try `FALLBACK="https://scratch.mit.edu" npm start`
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

jokebookservice1 wrote:

LuckyLucky7 wrote:

Sheep_maker wrote:

The `npm start` doesn't stop until you do ctrl+C to make it stop. While it's running, go to http://localhost:8601/ in your browser. I don't think you even need an internet connection at this point.
When I went to the local host website, I saw that the images are missing. Is this supposed to happen?
Instead of `npm start`, try `FALLBACK="https://scratch.mit.edu" npm start`
Now the images are back. Thanks for the help!
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I have some questions: How do you enable the account menu and what file do I edit to change the editor's navigation bar?
Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

I have some questions: How do you enable the account menu and what file do I edit to change the editor's navigation bar?
Not sure about the account menu, but the files for the navigation bar are in /src/components/menu-bar
JGames101
Scratcher
100+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

I have some questions: How do you enable the account menu and what file do I edit to change the editor's navigation bar?
I don't think you can enable the account menu. I think, like cloud variables, the Scratch Team didn't implement it into the Open Source version of the editor, only the one on the actual website.
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

JGames101 wrote:

LuckyLucky7 wrote:

I have some questions: How do you enable the account menu and what file do I edit to change the editor's navigation bar?
I don't think you can enable the account menu. I think, like cloud variables, the Scratch Team didn't implement it into the Open Source version of the editor, only the one on the actual website.
That's kind of sad, but understandable. If anyone was able to log into their accounts into any Scratch 3 mod(including mine), the only useful thing it would do is load in everything the user has in their backpack.
LuckyLucky7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Also, how do I remove buttons from the navigation bar? I tried removing the code for the “See project page” button but then it crashed Scratch, probably because removing the code creates errors.
hvhpc456
Scratcher
14 posts

Guide to Modding Scratch 3.0

i thought this came from the scratch team.
Sheep_maker
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

LuckyLucky7 wrote:

Also, how do I remove buttons from the navigation bar? I tried removing the code for the “See project page” button but then it crashed Scratch, probably because removing the code creates errors.
You'd also have to delete the references to it; I think here is the only reference to the see project page button, so you should delete that line as well

Powered by DjangoBB