Discuss Scratch

kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Marc92020 wrote:

the only version closest to python 2.7 that isnt in python 3x was python 2.5.4
no, remove that one and get python 2.7.18 from the python website


Made using Nord Theme & Inkscape
Marc92020
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

Marc92020 wrote:

the only version closest to python 2.7 that isnt in python 3x was python 2.5.4
no, remove that one and get python 2.7.18 from the python website
i got it

Marc92020
i do stuff

image updates whenever i check
SDFTDusername
Scratcher
42 posts

Guide to Modding Scratch 3.0

Marc92020 wrote:

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:
        [./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.
(with this part i cant run anymore commands)
first problem: if you're running in wsl then install python2 as python if windows then install python 2
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.
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');
^
I successfully built scratch-blocks with WSL after adding
goog.require('goog.debug.ErrorHandler');
goog.require('goog.events.EventLike');
goog.require('goog.events.EventWrapper');
to /core/blockly.js.

Last edited by samq64 (Jan. 8, 2022 22:55:11)

kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

samq64 wrote:

I tried installing scratch-blocks with WSL and it still didn't work.
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');
^
I successfully built scratch-blocks with WSL after adding
goog.require('goog.debug.ErrorHandler');
goog.require('goog.events.EventLike');
goog.require('goog.events.EventWrapper');
to /core/blockly.js.
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)


Made using Nord Theme & Inkscape
samq64
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

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)
Now it's broken again…
kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

samq64 wrote:

kccuber wrote:

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)
Now it's broken again…
whut
ok did you remember to npm/yarn link


Made using Nord Theme & Inkscape
samq64
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

samq64 wrote:

kccuber wrote:

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)
Now it's broken again…
whut
ok did you remember to npm/yarn link
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 is
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!

'_'
-ElectronicArts-
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

HelloLanguage wrote:

It is not working.
what

kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

samq64 wrote:

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
Uhh…. Delete the whole thing, try again, using these links for git cloning:
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)



Made using Nord Theme & Inkscape
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)

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

s_federici wrote:

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?
yes, but you will also need to clone the scratch-gui itself:
git clone --depth=1 https://github.com/LLK/scratch-gui.git


Made using Nord Theme & Inkscape
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

s_federici wrote:

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?
yes, but you will also need to clone the scratch-gui itself:
git clone --depth=1 https://github.com/LLK/scratch-gui.git

Excellent, thanks. I really hoped that.
jjbui
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Can I edit the source code like a wiki?
kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Off to try modding scratch for the 3rd time.


Made using Nord Theme & Inkscape
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
s_federici
Scratcher
500+ posts

Guide to Modding Scratch 3.0

JGames101 wrote:

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?

Powered by DjangoBB