Discuss Scratch

infinitytec
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

ihgfedcba wrote:

infinitytec wrote:

ihgfedcba wrote:

novice27b wrote:

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/
Looks like you should update Firefox so you can run the project that breaks the player.
What's the point of updating Firefox if the only added compatibility is for broken projects?
I don't know–security?
MrMeowington
Scratcher
100+ posts

Scratch 3.0 Technical Discussion

infinitytec wrote:

ihgfedcba wrote:

novice27b wrote:

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/
Looks like you should update Firefox so you can run the project that breaks the player.
This happens in my browser as well, and presumably many (or all) others; this seems to be the result of making infinite script definitions.

My browser / operating system: Windows 7, Opera 60.0.3255.70, No Flash version detected
Sega_Cat
Scratcher
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
infinitytec
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

Sega_Cat wrote:

Note, Scratch 2.0 projects that have hacked blocks in them wont work in 3.0! maybe 3.0 can have hacked blocks
Yep. This is well known.

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
Scratcher
39 posts

Scratch 3.0 Technical Discussion

imfh wrote:

infinitytec wrote:

imfh wrote:

snip

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.
Actually, 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.

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
Scratcher
39 posts

Scratch 3.0 Technical Discussion

Some needs to talk about hacked blocks too…
infinitytec
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

WilyGravy57 wrote:

Some needs to talk about hacked blocks too…
The ST has no obligation to support them.

Perhaps an extension could be made.
PolySaken
Scratcher
4 posts

Scratch 3.0 Technical Discussion

infinitytec wrote:

WilyGravy57 wrote:

Some needs to talk about hacked blocks too…
The ST has no obligation to support them.

Perhaps an extension could be made.
I prefer to think that ‘hacked blocks’ are something to be discovered, like an easter egg.
Sheep_maker
Scratcher
1000+ posts
s_federici
Scratcher
500+ posts

Scratch 3.0 Technical Discussion

Sheep_maker wrote:

Selecting in the sound editor

What is this for? Ah, i see. Nice

Sheep_maker wrote:

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)

WilyGravy57
Scratcher
39 posts

Scratch 3.0 Technical Discussion

Wow simply use inspect element.
AmazingMech2418
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

s_federici wrote:

Sheep_maker wrote:

Selecting in the sound editor

What is this for? Ah, i see. Nice

Sheep_maker wrote:

the speech to text extension

Cool! Can you select the language by using the block in the “text-to-speech” extension?
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.
s_federici
Scratcher
500+ posts

Scratch 3.0 Technical Discussion

AmazingMech2418 wrote:

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.
I had hoped it was a new experimental extension
OBi0330
Scratcher
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
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

OBi0330 wrote:

Where did the set instrument block go??? I need it for a project!
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!
0037318
Scratcher
100+ posts

Scratch 3.0 Technical Discussion

OBi0330 wrote:

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
Scratcher
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:
listen and wait::pen
if <(speech::pen) = (...::grey)>
...

Is this an unfinished feature?

Last edited by 0037318 (June 11, 2019 20:10:33)

_nix
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

0037318 wrote:

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:
listen and wait::pen
if <(speech::pen) = (...::grey)>
...

Is this an unfinished feature?
The Speech to Text extension isn't finished yet, so inherently anything in it is unfinished – 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.
SimpleScratch
Scratcher
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
Scratcher
1000+ posts

Scratch 3.0 Technical Discussion

_nix wrote:

0037318 wrote:

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:
listen and wait::pen
if <(speech::pen) = (...::grey)>
...

Is this an unfinished feature?
The Speech to Text extension isn't finished yet, so inherently anything in it is unfinished – 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.
Unfortunately, the extension has been removed temporarily from Scratch although it worked perfectly. Now, many of my projects are broken because of that.

Powered by DjangoBB