Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » a failed project...
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
To fix some issues, mocha-blocks is now served as an NPM module.
Due to how not designed for this change scratch and its open source modules are. I have to rename the installed modules directory from mocha-blocks to scratch-blocks.
Due to how not designed for this change scratch and its open source modules are. I have to rename the installed modules directory from mocha-blocks to scratch-blocks.
Last edited by MagicCrayon9342 (April 24, 2022 22:16:31)
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
now that we know for sure its using the right scratch-blocks. there's an error
In the compiled web version. This is aclue.
this is the line of concern (compiled web version)

In the compiled web version. This is aclue.
this is the line of concern (compiled web version)

Last edited by MagicCrayon9342 (April 24, 2022 22:18:59)
- kccuber
-
Scratcher
1000+ posts
a failed project...
Did you run “npm run translate” in scratch-blocks?
- CST1229
-
Scratcher
1000+ posts
a failed project...
(#40)Might be a linking issue.After fixing it its still a red block.The changes have been added to all 3 repositories under commit “Attempting to add a block”The block ID is motion_alertTest, but in the palette it's motion_alertText.
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
Update: Forgot to run prepublish in mocha-blocks
Update 2: ran prepublish on the blocks still doesn't work.
Update 3: Found another error in the source, prepublishing again
Update 4: Still nothin'
For my mod, I had to completely stop and restart the scratch-gui server for scratch-blocks changes to take effect, assuming you modified that.
- god286
-
Scratcher
1000+ posts
a failed project...
I like the colour. It reminds me of TurboWarp. The logo reminds me of Java.
What kind of blocks will you add? Any major VM changes?
What kind of blocks will you add? Any major VM changes?
Last edited by god286 (April 25, 2022 04:45:48)
- yes-i-am-lanky
-
Scratcher
100+ posts
a failed project...
The Scratch source has a bug where if you scroll down while its loading there is a little gap that shows the content beneath. MochaBlocks has the same issue. Hope it gets fixed.fix it then?
how come you didn't know it was react alreadyyes! I'm more of a hands on learner and the documentation is easy to understand. I'm working on the GUI right now, dark mode. A core and important function of every single application.let me get this straightjust gotta figure out how to add blocks and extensionsRocking the new color schemeNice!
you make a mod not knowing how to make a mod?
From further inspection of the source it appears to be a react project. And for modifying the GUI its just a case of modifying colors.css and the css files corresponding to the components. colors.css has all the color definitions.
https://scratch.mit.edu/discuss/topic/289503/
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
I reverted my local commits to the ones on GitHub right now. I might have to take a different approach to this.
I used ‘npm run watch’ in the scratch-gui and scratch-vm directory which I might of not been supposed to do. But it was also likely a linking issue although I tried to fix the linking issue several times. I might just be able to do UI changes. I'll figure out adding extensions too.
I used ‘npm run watch’ in the scratch-gui and scratch-vm directory which I might of not been supposed to do. But it was also likely a linking issue although I tried to fix the linking issue several times. I might just be able to do UI changes. I'll figure out adding extensions too.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
Did you run “npm run translate” in scratch-blocks?was I supposed to? wasn't in the docs.
- Discussion Forums
- » Advanced Topics
-
» a failed project...





