Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch 3.0 Technical Discussion
- infinitytec
-
1000+ posts
Scratch 3.0 Technical Discussion
I don't know–security?What's the point of updating Firefox if the only added compatibility is for broken projects?Looks like you should update Firefox so you can run the project that breaks the player.I was having a look a the structure of the new project.json file. It has a really interesting structure, with blocks “flattened” into a single map. What are the technical reasons behind this design, as opposed to the 2.0 version, where the block json had a more hierarchical on-file structure?
You can create scripts where the script definition itself is infinite. This crashes the interpreter… https://scratch.mit.edu/projects/302592991/
#1322May 1, 2019 19:14:26
- MrMeowington
-
100+ posts
Scratch 3.0 Technical Discussion
This happens in my browser as well, and presumably many (or all) others; this seems to be the result of making infinite script definitions.Looks like you should update Firefox so you can run the project that breaks the player.I was having a look a the structure of the new project.json file. It has a really interesting structure, with blocks “flattened” into a single map. What are the technical reasons behind this design, as opposed to the 2.0 version, where the block json had a more hierarchical on-file structure?
You can create scripts where the script definition itself is infinite. This crashes the interpreter… https://scratch.mit.edu/projects/302592991/
My browser / operating system: Windows 7, Opera 60.0.3255.70, No Flash version detected
#1323May 2, 2019 17:22:53
- Sega_Cat
-
100+ posts
Scratch 3.0 Technical Discussion
Note, Scratch 2.0 projects that have hacked blocks in them wont work in 3.0! maybe 3.0 can have hacked blocks
#1324May 2, 2019 20:02:34
- infinitytec
-
1000+ posts
Scratch 3.0 Technical Discussion
Yep. This is well known. Note, Scratch 2.0 projects that have hacked blocks in them wont work in 3.0! maybe 3.0 can have hacked blocks
A way to get around this may be to make an extension.
perhaps there will be a way to load extensions from another source than the Scratch extension library
- WilyGravy57
-
39 posts
Scratch 3.0 Technical Discussion
snipActually, HTML is completely different than Javascript. HTML5 is simply the latest version of HTML, and they are quite similar. Javascript is where the actual coding is. Although many things are made in Javascript, they are referred to as HTML or HTML5, which is appropriate as there is strong interactions between them and they are natively supported in browsers.
It is written in HTML5, but that's not the same thing as HTML. It's actually written mainly in JavaScript which is part of HTML5. HTML5 sort of means the tools supported by a modern web browser.
The project json is the file which holds the blocks and stuff. It's not written like a programing language, eg. move(10); think(“Hello”). It is written in JSON which serves a similar purpose to XML if you've heard of that.
I didn't mean to say JavaScript was HTML, I meant it is often considered part of HTML5. Like you said but more clearly than I did.
But, what about 'HACKED BLOCKS'?
Sorry, the term ‘signature’ is not found here… :/
- WilyGravy57
-
39 posts
Scratch 3.0 Technical Discussion
Some needs to talk about hacked blocks too…
- infinitytec
-
1000+ posts
Scratch 3.0 Technical Discussion
The ST has no obligation to support them. Some needs to talk about hacked blocks too…
Perhaps an extension could be made.
- PolySaken
-
4 posts
Scratch 3.0 Technical Discussion
I prefer to think that ‘hacked blocks’ are something to be discovered, like an easter egg.The ST has no obligation to support them. Some needs to talk about hacked blocks too…
Perhaps an extension could be made.
- s_federici
-
500+ posts
Scratch 3.0 Technical Discussion
Selecting in the sound editor
What is this for? Ah, i see. Nice
the speech to text extension
Cool! Can you select the language by using the block in the “text-to-speech” extension?
Last edited by s_federici (May 26, 2019 20:14:40)
- AmazingMech2418
-
1000+ posts
Scratch 3.0 Technical Discussion
The Speech to Text extension had some compatibility in Scratch 3.0 previously, but was later removed. I now have multiple projects that used the extension that will never load again.Selecting in the sound editor
What is this for? Ah, i see. Nicethe speech to text extension
Cool! Can you select the language by using the block in the “text-to-speech” extension?

- s_federici
-
500+ posts
Scratch 3.0 Technical Discussion
The Speech to Text extension had some compatibility in Scratch 3.0 previously, but was later removed. I now have multiple projects that used the extension that will never load again.

- OBi0330
-
2 posts
Scratch 3.0 Technical Discussion
Where did the set instrument block go??? I need it for a project!
My browser / operating system: Windows NT 10.0, Chrome 74.0.3729.169, No Flash version detected


think [where is it???!!] for (2) secs
if <I can find the block> then
I can complete it
end
- _nix
-
1000+ posts
Scratch 3.0 Technical Discussion
Click the big blue button at the bottom of the list of block categories (control, motion, etc), then pick “Music” in the popup. That should get you the blocks you're looking for back! Where did the set instrument block go??? I need it for a project!
- 0037318
-
100+ posts
Scratch 3.0 Technical Discussion
Where did the set instrument block go??? I need it for a project!My browser / operating system: Windows NT 10.0, Chrome 74.0.3729.169, No Flash version detected
think [where is it???!!] for (2) secs
if <I can find the block> then
I can complete it
end
They're in a scratch extension.
- 0037318
-
100+ posts
Scratch 3.0 Technical Discussion
With the speech to text extension, what is the purpose of the “when I hear” event block? It appears to act identically to this code:
Is this an unfinished feature?
listen and wait::pen
if <(speech::pen) = (...::grey)>
...
Is this an unfinished feature?
Last edited by 0037318 (June 11, 2019 20:10:33)
- _nix
-
1000+ posts
Scratch 3.0 Technical Discussion
The Speech to Text extension isn't finished yet, so inherently With the speech to text extension, what is the purpose of the “when I hear” event block? It appears to act identically to this code:anything in it is unfinishedlisten and wait::pen
if <(speech::pen) = (...::grey)>
...
Is this an unfinished feature?

- SimpleScratch
-
500+ posts
Scratch 3.0 Technical Discussion
I think the text to speech is not finished - I imagine Scratch team are still working out what blocks it needs to be easy to use
- AmazingMech2418
-
1000+ posts
Scratch 3.0 Technical Discussion
Unfortunately, the extension has been removed temporarily from Scratch although it worked perfectly. Now, many of my projects are broken because of that.The Speech to Text extension isn't finished yet, so inherently With the speech to text extension, what is the purpose of the “when I hear” event block? It appears to act identically to this code:anything in it is unfinishedlisten and wait::pen
if <(speech::pen) = (...::grey)>
...
Is this an unfinished feature?– But I'm guessing it's similar in purpose to the “when key pressed” or “when this sprite clicked” sprites, which can both be (approximately) imitated with their boolean forms and the “wait until” block.