Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ~tosh~ public beta
- blob8108
- Scratcher
1000+ posts
~tosh~ public beta
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 penYou're right. Thanks for reporting! According to the
http://tosh.tjvr.org/help/guide/ refers to ( ) as “brackets” but that typically means [ and ] characters right?Brian just complained about the same thing, over on the Snap! thread:
I've always heard them called (parenthesis), [brackets], and {braces} myself
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.
- blob8108
- Scratcher
1000+ posts
~tosh~ public beta
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!I didn't even realize they weren't images until now. Awesome! I see you're using the new scratchblocks on the guide page. They're…sooo..beautiful…
Connor suggested this tosh actually changes the numeric ‘set pen color to’ block to ‘set pen hue to’.
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…
- 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:
Not sure if that's your fault or nxiii's though.
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
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
Yes. Oops. I didn't document that, did I… this script freezes tosh
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.
- blob8108
- Scratcher
1000+ posts
~tosh~ public beta
Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks A script preview toggle so I can look, read-only, at the graphical representation of the program.
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 grammarsOoh, did you find an ambiguous input? Tell me!
- bobbybee
- Scratcher
1000+ posts
~tosh~ public beta
Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks A script preview toggle so I can look, read-only, at the graphical representation of the program.
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 grammarsOoh, 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
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. 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?
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 hypeI'm so glad
- scratchisthebest
- Scratcher
1000+ posts
~tosh~ public beta
Is there a way to at least make it not freeze the whole tab, though?Yes. Oops. I didn't document that, did I… this script freezes tosh
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.
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
I agree I just don't know phosphorus well enough. I'll figure out a fix eventually. 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
- liam48D
- Scratcher
1000+ posts
~tosh~ public beta
This promise is going to haunt you for the rest of your days.. (just kidding) I'll figure out a fix eventually.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- comp09
- Scratcher
1000+ posts
~tosh~ public beta
Some ideas:I agree I just don't know phosphorus well enough. I'll figure out a fix eventually. 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
- 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
- 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.
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)
- Jonathan50
- Scratcher
1000+ posts
~tosh~ public beta
use when flag clicked. 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.
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
~tosh~ public beta
ftfyUS 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.2. Here in the
Not yet a Knight of the Mu Calculus.
- scratchisthebest
- Scratcher
1000+ posts
~tosh~ public beta
It's about the “when gf clicked” syntax in scratchblocks:use when flag clicked. 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.
when gf clicked
makes
when gf clicked
I am a Lava Expert
- Jonathan50
- Scratcher
1000+ posts
~tosh~ public beta
I know. I'm saying to use ‘when flag clicked’ instead.It's about the “when gf clicked” syntax in scratchblocks:use when flag clicked. 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.
-snip-
Not yet a Knight of the Mu Calculus.
- Discussion Forums
- » Advanced Topics
- » ~tosh~ public beta