Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Test: new scratchblocks plugin
- blob8108
- Scratcher
1000+ posts
Test: new scratchblocks plugin
EDIT: thanks to everyone who helped! The new plugin's already released now
—
I'm working on a new version of the scratchblocks plugin, and want to make sure that it works the same as the old one.
You can get to the new one on the secret test page, and the old one on the usual test page.
Please could you test them both, and let me know if you find any differences? I'm particularly interested in edge cases (think adding lots of spaces in weird places, or breaking scripts over lines in weird ways).
Things that are supposed to be different:
—
I'm working on a new version of the scratchblocks plugin, and want to make sure that it works the same as the old one.
You can get to the new one on the secret test page, and the old one on the usual test page.
Please could you test them both, and let me know if you find any differences? I'm particularly interested in edge cases (think adding lots of spaces in weird places, or breaking scripts over lines in weird ways).
Things that are supposed to be different:
- “defineblock” is no longer a valid “define” block.
- I've dropped the “when «Sprite1» clicked” block.
- Ellipses now look right (“…” now aliases to “…”)
- “defineblock” is still valid (d'oh)
- The “// category = ” hack should hide the comment
- Define blocks stack wrong
- Comments seem to want to go to the previous block
- Can't define a block with the same name as a pre-existing block
- Single custom arguments get ringed
- Can't have stack blocks that start with an insert
- Adding a comment on the “else” makes it show up on the original “if”.
- Cap blocks before “else” render wrong.
- Inserts with a bad category get messed up
- Fix shape hack for inserts
- Fix reporter ring styling
- Custom blocks aren't automatically recognised
- List reporters aren't automatically recognised
- Can't put comments in c-mouths
- Custom args aren't automatically recognised
- Comments inside C mouths aren't aligned correctly
- Multi-line comments?
Last edited by blob8108 (June 4, 2014 20:10:17)
- davidkt
- Scratcher
1000+ posts
Test: new scratchblocks plugin
The only block that works on the new one is
define
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- technoboy10
- Scratcher
1000+ posts
Test: new scratchblocks plugin
Secret ring syntax looks wrong for reporters.
http://blob8108.github.io/scratchblocks2/secret-test/test.html#{%28list%20%3A%3A%20list%29}
http://blob8108.github.io/scratchblocks2/secret-test/test.html#{%28list%20%3A%3A%20list%29}
trans rights are human rights
- technoboy10
- Scratcher
1000+ posts
Test: new scratchblocks plugin
Why not just have a {ring} syntax for all of the things?That's because you've made a stack-shaped ring block. It should be `((list :: list))`. Secret ring syntax looks wrong for reporters.
trans rights are human rights
- DigiTechs
- Scratcher
500+ posts
Test: new scratchblocks plugin
BUG!!11
say [Hello!] [I'm a secondary input… what?]
on the new one, of course.
say [Hello!] [I'm a secondary input… what?]
on the new one, of course.
Last edited by DigiTechs (Nov. 24, 2013 11:13:37)
I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
- ErnieParke
- Scratcher
1000+ posts
Test: new scratchblocks plugin
I've done a bit of testing, and putting in:
Creates:
A few bugs that I can see are that the define blocks are stacking on top of each other, and that comments seem to want to go to the previous block. Also, the defineblock block still works, and when you're setting the category of a block, the comment still shows. I haven't found anything past that.
Reporting,
ErnieParke
say (test :: list)
define cake
define cake
define cake
define cake
define cake
if on edge, bounce//Where this works.
. . .
move (90) st eps//Where will this appear?
defineblock
when this sprite clicked//category=looks
Creates:
A few bugs that I can see are that the define blocks are stacking on top of each other, and that comments seem to want to go to the previous block. Also, the defineblock block still works, and when you're setting the category of a block, the comment still shows. I haven't found anything past that.
Reporting,
ErnieParke
Last edited by ErnieParke (Nov. 24, 2013 23:31:53)
- blob8108
- Scratcher
1000+ posts
Test: new scratchblocks plugin
@Ernie Thanks, that's really helpful!
Thanks again! If anyone finds anything else, let me know…
the define blocks are stacking on top of each other
comments seem to want to go to the previous blockThese are style issues. I seem to have (deliberately?) broken the styling.
the defineblock block still worksWell caught, thanks!
when you're setting the category of a block, the comment still showsOoh, I would not have got that! (Because the syntax is changing.)
Thanks again! If anyone finds anything else, let me know…
- PullJosh
- Scratcher
1000+ posts
Test: new scratchblocks plugin
This causes issues:
define move (10) steps
(As does defining any other real block)
define move (10) steps
(As does defining any other real block)
Last edited by PullJosh (Nov. 25, 2013 01:17:15)
- PullJosh
- Scratcher
1000+ posts
Test: new scratchblocks plugin
Hmm… blocks inside blocks seems to be a theme…
move (move (10) steps) steps
move (move (10) steps) steps
- blob8108
- Scratcher
1000+ posts
Test: new scratchblocks plugin
Ooh, thanks. Dang, I tried to simplify the code by using the same path for both, but clearly that was a bad idea. define move (10) steps
move (move (10) steps) stepsThat's usual and expected and behaves the same as the old one, unless you're seeing something different to me.
- mathfreak231
- Scratcher
1000+ posts
Test: new scratchblocks plugin
I found another cool fix: you decided to special-case Stop ().
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- mathfreak231
- Scratcher
1000+ posts
Test: new scratchblocks plugin
if <mouse down?> then
else
delete this clone
else//fasd
else
else
else
else //erwa
- Infinite else's are possible.
- Adding a comment on the “else” makes it show up on the original “if”.
- Multiple comments can therefore be shown on the “if” block.
- The “else” puzzle gap is back.
Last edited by mathfreak231 (Nov. 26, 2013 02:02:47)
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- mathfreak231
- Scratcher
1000+ posts
Test: new scratchblocks plugin
if <mouse down?>
//do this
else
//do this
end
You can't put comments in the c-mouths anymore…
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- Discussion Forums
- » Advanced Topics
- » Test: new scratchblocks plugin