Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Guide to Modding Scratch 3.0
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
no, remove that one and the only version closest to python 2.7 that isnt in python 3x was python 2.5.4get python 2.7.18 from the python website
- Marc92020
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
i got itno, remove that one and the only version closest to python 2.7 that isnt in python 3x was python 2.5.4get python 2.7.18 from the python website
- SDFTDusername
- Scratcher
42 posts
Guide to Modding Scratch 3.0
first problem: if you're running in wsl then install python2 as python if windows then install python 2 what happens when this happens:Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
npm ERR! code 9009
npm ERR! path C:\Users\-username-\scratch-blocks
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c python build.py && webpack
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\-username-\AppData\Local\npm-cache\_logs\2022-01-02T02_14_10_189Z-debug.log]
also this happens too:(with this part i cant run anymore commands)[./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] 14.7 KiB {main} [built]
[./node_modules/scratch-vm/src/dispatch/worker-dispatch.js] 7.62 KiB {main} [built]
[./node_modules/scratch-vm/src/extension-support/argument-type.js] 686 bytes {main} [built]
[./node_modules/scratch-vm/src/extension-support/block-type.js] 1.02 KiB {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 successfully.
second problem: you can press CTRL+Z or CTRL+C to continue doing commands
Scratch mod
https://scratchmod.netlify.app/ - the Scratch mod with many blocks and stuff
soon it will change into a TurboWarp mod with even more blocks and stuff
scroll down for more info!
plans:
189 new blocks
6 new features
4 useful changes
3 new extensions
50 new extension blocks
development:
0/2 ready up the mod: setup and test (0%)
0/189 new blocks done (0%)
0/6 new features done (0%)
0/4 useful changes done (0%)
0/3 new extensions done (0%)
0/50 new extension blocks done (0%)
total: 0/250 (0%)
- samq64
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
I tried installing scratch-blocks with WSL and it still didn't work.
I successfully built scratch-blocks with WSL after adding
to /core/blockly.js.
SUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blockly_uncompressed_vertical.js
FATAL ERROR
Required namespace "goog.events.EventWrapper" never defined.
??? at line 57:
goog.requireType('goog.events.EventWrapper');
^
goog.require('goog.debug.ErrorHandler'); goog.require('goog.events.EventLike'); goog.require('goog.events.EventWrapper');
Last edited by samq64 (Jan. 8, 2022 22:55:11)
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
I tried installing scratch-blocks with WSL and it still didn't work.I had the EXACT SAME ERROR. Delete scratch-blocks and reclone from https://github.com/LLK/scratch-blocks.git (Keep the .git at the end)I successfully built scratch-blocks with WSL after addingSUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blockly_uncompressed_vertical.js
FATAL ERROR
Required namespace "goog.events.EventWrapper" never defined.
??? at line 57:
goog.requireType('goog.events.EventWrapper');
^to /core/blockly.js.goog.require('goog.debug.ErrorHandler'); goog.require('goog.events.EventLike'); goog.require('goog.events.EventWrapper');
- samq64
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
https://github.com/LLK/scratch-blocks.git (Keep the .git at the end)Now it's broken again… I had the EXACT SAME ERROR. Delete scratch-blocks and reclone from
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
whuthttps://github.com/LLK/scratch-blocks.git (Keep the .git at the end)Now it's broken again… I had the EXACT SAME ERROR. Delete scratch-blocks and reclone from
ok did you remember to npm/yarn link
- samq64
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
What I meant was that npm install was successful after I modified blockly.js, but the editor was crashing, so I cloned scratch-blocks again with .git at the end (I'm cloning TurboWarp's repos, not LLK's) and got the same error I posted above. After re-adding the blockly.js changes and running npm start, the code editor crashes with the same error I got yesterday, which iswhuthttps://github.com/LLK/scratch-blocks.git (Keep the .git at the end)Now it's broken again… I had the EXACT SAME ERROR. Delete scratch-blocks and reclone from
ok did you remember to npm/yarn link
lazy scratch-blocks: TypeError: goog.isString is not a function
Edit: I fixed that one, but now I'm getting another similar error:
lazy scratch-blocks: TypeError: goog.isFunction is not a function
Last edited by samq64 (Jan. 10, 2022 17:36:08)
- samq64
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
The errors never end!
Oops! Something went wrong.
We are so sorry, but it looks like TurboWarp has crashed. Please refresh your page to try again.
lazy scratch-blocks: Error: Field "function(a,b){this.size_=new goog.math.Size(0,0);this.class_=b;this.setValue(a)}" must have a fromJson function
- HelloLanguage
- Scratcher
47 posts
Guide to Modding Scratch 3.0
It is not working.
Rainbow Text!
How to get scratch 1.4 online (and some versions!)
Go to archive.glitch.pizza here, And click the tick!
'_'
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Uhh…. Delete the whole thing, try again, using these links for git cloning: The errors never end!Oops! Something went wrong.
We are so sorry, but it looks like TurboWarp has crashed. Please refresh your page to try again.
lazy scratch-blocks: Error: Field "function(a,b){this.size_=new goog.math.Size(0,0);this.class_=b;this.setValue(a)}" must have a fromJson function
git clone --depth=1 https://github.com/TurboWarp/scratch-gui.git
git clone https://github.com/TurboWarp/scratch-blocks.git
git clone https://github.com/TurboWarp/scratch-vm.git
Last edited by kccuber (Jan. 11, 2022 22:11:37)
- justamirror
- Scratcher
4 posts
Guide to Modding Scratch 3.0
Guess what guys! I got a version of scratch running with this tutorial: https://medium.com/@hiroyuki.osaki/how-to-develop-your-own-block-for-scratch-3-0-1b5892026421
Windows Linux subsystem is amazing (though you will have to install yarn for windows linux subsystem: see here: https://yarnpkg.com/getting-started/install)
Windows Linux subsystem is amazing (though you will have to install yarn for windows linux subsystem: see here: https://yarnpkg.com/getting-started/install)
My name says it all. I'm just a mirror, that's it lol.
- s_federici
- Scratcher
500+ posts
Guide to Modding Scratch 3.0
I have a question: modding scratch-blocks and scratch-vm is enough to get a fully functional mod of Scratch that will save and load the new blocks?
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
yes, but you will also need to clone the scratch-gui itself: I have a question: modding scratch-blocks and scratch-vm is enough to get a fully functional mod of Scratch that will save and load the new blocks?
git clone --depth=1 https://github.com/LLK/scratch-gui.git
- s_federici
- Scratcher
500+ posts
Guide to Modding Scratch 3.0
yes, but you will also need to clone the scratch-gui itself: I have a question: modding scratch-blocks and scratch-vm is enough to get a fully functional mod of Scratch that will save and load the new blocks?git clone --depth=1 https://github.com/LLK/scratch-gui.git
Excellent, thanks. I really hoped that.
- kccuber
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Off to try modding scratch for the 3rd time.
- mbrick2
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
for some reason I have scratch-paint lying around on my computer.
My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete
Banner Made By @Abcde26
Card Made By @Polygon
Card Made By @Polygon
- s_federici
- Scratcher
500+ posts
Guide to Modding Scratch 3.0
If your new blog appears red and without text in the GUI, and you have added it in the scratch-blocks folder and built scratch-blocks, try following the Build steps below. That has always fixed this issue for me, although the cause is unknown. When I find the actual cause and the solution, this post will be updated.
I did everything until the final build step (I'm using macOS BigSur). The new block is now red for me, with no name. It works (when I click it, the cat does 100 steps) but it is red, with no name on it. The build step didn't solve the problem.
So I redid everything from scratch, by checking the block look at every step. The new block stays blue -and its text is “move 100 steps”- until I run
npm link scratch-vm
After running this line, the blocks suddenly gets red.
Is there someone that can take advantage of this precise debug and understand where the problem is?