Discuss Scratch

MagicCrayon9342
Scratcher
1000+ posts

a failed project...

Following the documentation to link mocha-gui and mocha-vm
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

CST1229
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

Where is scratch-gui loading the blocks from, and where can I modify that module.
scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

CST1229 wrote:

MagicCrayon9342 wrote:

Where is scratch-gui loading the blocks from, and where can I modify that module.
scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
So, what's some base code and knowledge I need to write a block.
NFlex23
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

(#24)

CST1229 wrote:

MagicCrayon9342 wrote:

Where is scratch-gui loading the blocks from, and where can I modify that module.
scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
So, what's some base code and knowledge I need to write a block.
https://scratch.mit.edu/discuss/topic/289503/
CST1229
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

CST1229 wrote:

MagicCrayon9342 wrote:

Where is scratch-gui loading the blocks from, and where can I modify that module.
scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
So, what's some base code and knowledge I need to write a block.
Use existing blocks as a base.
Blockly.Msg.* values are from scratch-blocks/msg/messages.js iirc.
The actual block palette is in scratch-gui/src/lib/make-toolbox-xml.js (scratch-blocks/blocks_vertical/default-toolbox.js is only for the scratch-blocks playground).
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

If I wanted to download the source of, and use existing custom extensions for Scratch. Where can I find some extensions, the source, and where to put the files.
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

I have discovered the correlation between scratch-vm, scratch-blocks, and scratch-gui in terms of creating blocks.
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

First block!
Not in the intended way though.
dhuls
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

(#27)
If I wanted to download the source of, and use existing custom extensions for Scratch. Where can I find some extensions, the source, and where to put the files.
A few custom extensions
Their source (bitwise.js and fetch.js)
PoIygon
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

First block!
Not in the intended way though.
Why do you make topics for things that haven’t been finished or in a working state?
Why are you the way you are?
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

PoIygon wrote:

MagicCrayon9342 wrote:

First block!
Not in the intended way though.
Why do you make topics for things that haven’t been finished or in a working state?
Why are you the way you are?
This is for help making it work lmao.
PoIygon
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

PoIygon wrote:

MagicCrayon9342 wrote:

First block!
Not in the intended way though.
Why do you make topics for things that haven’t been finished or in a working state?
Why are you the way you are?
This is for help making it work lmao.
You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of software
(and optionally a website for it)

Last edited by PoIygon (April 24, 2022 20:51:49)

MagicCrayon9342
Scratcher
1000+ posts

a failed project...

PoIygon wrote:

MagicCrayon9342 wrote:

PoIygon wrote:

MagicCrayon9342 wrote:

First block!
Not in the intended way though.
Why do you make topics for things that haven’t been finished or in a working state?
Why are you the way you are?
This is for help making it work lmao.
You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of software
What do you.. think I did..
PoIygon
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

PoIygon wrote:

MagicCrayon9342 wrote:

PoIygon wrote:

MagicCrayon9342 wrote:

First block!
Not in the intended way though.
Why do you make topics for things that haven’t been finished or in a working state?
Why are you the way you are?
This is for help making it work lmao.
You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of software
What do you.. think I did..
That was for the GUI flipping if it was a different language
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

The changes have been added to all 3 repositories under commit “Attempting to add a block”
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.

Last edited by MagicCrayon9342 (April 24, 2022 20:58:05)

CST1229
Scratcher
1000+ posts

a failed project...

MagicCrayon9342 wrote:

The changes have been added to all 3 repositories under commit “Attempting to add a block”
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.
The block ID is motion_alertTest, but in the palette it's motion_alertText.
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

CST1229 wrote:

MagicCrayon9342 wrote:

The changes have been added to all 3 repositories under commit “Attempting to add a block”
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.
The block ID is motion_alertTest, but in the palette it's motion_alertText.
Why are all my code issues spelling mistakes, it happens in every project.
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

How would I add another Category that'll be named “Javascript”
MagicCrayon9342
Scratcher
1000+ posts

a failed project...

CST1229 wrote:

MagicCrayon9342 wrote:

The changes have been added to all 3 repositories under commit “Attempting to add a block”
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.
The block ID is motion_alertTest, but in the palette it's motion_alertText.
After fixing it its still a red block.
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'

Last edited by MagicCrayon9342 (April 24, 2022 21:50:10)

Powered by DjangoBB