Discuss Scratch

blob8108
Scratcher
1000+ posts

~tosh~ public beta

scratchisthebest wrote:

According to the grammar it supports “red orange yellow green blue purple black white pink brown,” under c0 which I guess stands in for a color input. That doesn't seem to be functional though and I also just get a black pen
You're right. Thanks for reporting!
http://tosh.tjvr.org/help/guide/ refers to ( ) as “brackets” but that typically means [ and ] characters right?

I've always heard them called (parenthesis), [brackets], and {braces} myself
Brian just complained about the same thing, over on the Snap! thread:

bharvey wrote:

2. Here in the US these things ()()()()() are called parentheses. “Brackets” are the square ones, which I'm not going to demo because it's such a pain in the forum. Not that you're not entitled to speak your native language, but maybe a note about this the first time you say “brackets” would be good.

tosh · slowly becoming a grown-up adult and very confused about it
blob8108
Scratcher
1000+ posts

~tosh~ public beta

MathWizz wrote:

comp09 wrote:

I see you're using the new scratchblocks on the guide page. They're…sooo..beautiful…
I didn't even realize they weren't images until now. Awesome!
Thanks mw I was worrying about whether the renderer was pixel-perfect enough (there are still minor ~1px layout differences), but I think your comment indicates that I should stop worrying about that!

technoboy10 wrote:

tosh actually changes the numeric ‘set pen color to’ block to ‘set pen hue to’.
Connor suggested this

It's not actually documented anywhere. I wonder if it should be… It comes up in auto-complete, but so does “define-atomic”, and both of you apparently missed that…

tosh · slowly becoming a grown-up adult and very confused about it
scratchisthebest
Scratcher
1000+ posts

~tosh~ public beta

Well, here's an annoying bug: if your project causes an infinite loop (at least in an atomic block), tosh freezes entirely (& you better hope you saved your work!)

More specifically, this script freezes tosh:
when flag clicked
crash

define-atomic crash
set i to 0
repeat until i=1
end

Not sure if that's your fault or nxiii's though.

Last edited by scratchisthebest (April 9, 2016 01:52:40)


I am a Lava Expert
bobbybee
Scratcher
1000+ posts

~tosh~ public beta

scratchisthebest wrote:

Well, here's an annoying bug: if your project causes an infinite loop (at least in an atomic block), tosh freezes entirely (& you better hope you saved your work!)

More specifically, this script freezes tosh:
when flag clicked
crash

define-atomic crash
set i to 0
repeat until i=1
end

Not sure if that's your fault or nxiii's though.

“When in doubt, it's not my fault!” ~every dev ever.

Also, feature request that shouldn't be too hard (and might be there already, didn't look closely enough): A script preview toggle so I can look, read-only, at the graphical representation of the program. Nice for eye candy – I mean, debugging possibly ambiguous grammars :-)

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
blob8108
Scratcher
1000+ posts

~tosh~ public beta

scratchisthebest wrote:

this script freezes tosh
Yes. Oops. I didn't document that, did I…

Phosphorus doesn't force-yield every 500ms inside atomic blocks, the way Scratch does. I don't think Nathan's going to implement it. I tried to write a patch for this, but it was a bit iffy, and any way you do it it's going to make phosphorus slower.

tosh · slowly becoming a grown-up adult and very confused about it
blob8108
Scratcher
1000+ posts

~tosh~ public beta

bobbybee wrote:

A script preview toggle so I can look, read-only, at the graphical representation of the program.
Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks

My thought was (going back to something I did in a previous version) to have scratchblocks in the auto-complete thing. But I need to rewrite completion anyway…
debugging possibly ambiguous grammars
Ooh, did you find an ambiguous input? Tell me!

tosh · slowly becoming a grown-up adult and very confused about it
bobbybee
Scratcher
1000+ posts

~tosh~ public beta

blob8108 wrote:

bobbybee wrote:

A script preview toggle so I can look, read-only, at the graphical representation of the program.
Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks

My thought was (going back to something I did in a previous version) to have scratchblocks in the auto-complete thing. But I need to rewrite completion anyway…
debugging possibly ambiguous grammars
Ooh, did you find an ambiguous input? Tell me!

Unclear. But I had a bug in a math expression, and I don't know what's to blame, tosh or my Wikipedia mathematics degree.

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
blob8108
Scratcher
1000+ posts

~tosh~ public beta

bobbybee wrote:

Just something the font nerd in me can't surpress:

The top bar seems so off. I don't know. It's a nice bar, and it's a nice editor, but they don't seem to… fit.

Maybe try something sans?
Interesting! On OS X Safari I do actually use a different font (San Fransisco). I might try a sans font for the other browsers too.

Is it just the font that bothers you? I used to have a horrible yellow menu bar, it was much more jarring
Overall though: 10/10 was worth the hype
I'm so glad

tosh · slowly becoming a grown-up adult and very confused about it
scratchisthebest
Scratcher
1000+ posts

~tosh~ public beta

blob8108 wrote:

scratchisthebest wrote:

this script freezes tosh
Yes. Oops. I didn't document that, did I…

Phosphorus doesn't force-yield every 500ms inside atomic blocks, the way Scratch does. I don't think Nathan's going to implement it. I tried to write a patch for this, but it was a bit iffy, and any way you do it it's going to make phosphorus slower.
Is there a way to at least make it not freeze the whole tab, though?

Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loop

I am a Lava Expert
blob8108
Scratcher
1000+ posts

~tosh~ public beta

scratchisthebest wrote:

Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loop
I agree I just don't know phosphorus well enough. I'll figure out a fix eventually.

tosh · slowly becoming a grown-up adult and very confused about it
liam48D
Scratcher
1000+ posts

~tosh~ public beta

blob8108 wrote:

I'll figure out a fix eventually.
This promise is going to haunt you for the rest of your days.. (just kidding)

202e-202e-202e-202e-202e UNI-CODE~~~~~
comp09
Scratcher
1000+ posts

~tosh~ public beta

blob8108 wrote:

scratchisthebest wrote:

Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loop
I agree I just don't know phosphorus well enough. I'll figure out a fix eventually.
Some ideas:
  • Run phosphorus in a sandboxed iframe (probably not very effective)
  • Run phosphorus in a separate thread using Web Workers, and “polyfill” the necessary canvas/DOM functions to modify the outside page
  • Forget about performance and modify phosphorus


Visit the website of Andrew Sun!


NoMod-Programming
Scratcher
1000+ posts

~tosh~ public beta

YAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
-Io-
Scratcher
1000+ posts

~tosh~ public beta

Oh. My. Gosh! (tm pls no steel future mod name ( ͡° ͜ʖ ͡°))

Just tried it. It doesn't seem to replace invalid characters on load for variable names and stuff though
Just FYI the chars that were troubling me were _, @, and spaces.
EDIT: Oh wait! Spaces do work, it's just _ and @ then or a problem with the project itself being to crazeh, because every other project i've tried works fine, except for some stuff like backdrops not loading or costumes cutting in half.

Last edited by -Io- (April 9, 2016 03:35:32)


Thepuzzlegame
Scratcher
1000+ posts

~tosh~ public beta

Love the autocomplete

hi!
Jonathan50
Scratcher
1000+ posts

~tosh~ public beta

Chibi-Matoran wrote:

This is my first Tosh program!
when green flag clicked
say "Hello World!"

Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
use when flag clicked.

Not yet a Knight of the Mu Calculus.
Jonathan50
Scratcher
1000+ posts

~tosh~ public beta

blob8108 wrote:

bharvey wrote:

2. Here in the US every english speaking place in the world these things ()()()()() are called parentheses. “Brackets” are the square ones, which I'm not going to demo because it's such a pain in the forum. Not that you're not entitled to speak your native language, but maybe a note about this the first time you say “brackets” would be good.
ftfy

Not yet a Knight of the Mu Calculus.
Jonathan50
Scratcher
1000+ posts

~tosh~ public beta

Emacs/Vim?

Not yet a Knight of the Mu Calculus.
scratchisthebest
Scratcher
1000+ posts

~tosh~ public beta

Jonathan50 wrote:

Chibi-Matoran wrote:

This is my first Tosh program!
when green flag clicked
say "Hello World!"

Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
use when flag clicked.
It's about the “when gf clicked” syntax in scratchblocks:

when gf clicked

makes

when gf clicked

I am a Lava Expert
Jonathan50
Scratcher
1000+ posts

~tosh~ public beta

scratchisthebest wrote:

Jonathan50 wrote:

Chibi-Matoran wrote:

This is my first Tosh program!
when green flag clicked
say "Hello World!"

Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
use when flag clicked.
It's about the “when gf clicked” syntax in scratchblocks:

-snip-
I know. I'm saying to use ‘when flag clicked’ instead.

Not yet a Knight of the Mu Calculus.

Powered by DjangoBB