Discuss Scratch
- davidkt
-
1000+ posts
Extension Discussion Thread
It's not modding, it's just extensions. Like plugins. So there IS a way to mod 2.0!
- nathanprocks
-
1000+ posts
Extension Discussion Thread
Same… I still have no idea why it does that. Also I like the AttackScratch.php link in your sig.For me it never says connected to scratch but it still works, apart from reporters.You should see “Connected to Scratch…” in command prompt as soon as you import the extension into Scratch. Do you see any output when you run node extension.js?Github.I made a node.js framework for Scratch extensions. You can check it out on
I followed the step-by-step HelloWorl tutorial. I got the “say hello” block. When I click it I don't see “Connected to Scratch as ”HelloWorld“, port 12345 Hello, world!” in the node.js command prompt (I'm using Windows 7). Is there where I'm supposed to see the extension output?

- comp500
-
100+ posts
Extension Discussion Thread
Same… I still have no idea why it does that. Also I like the AttackScratch.php link in your sig.For me it never says connected to scratch but it still works, apart from reporters.You should see “Connected to Scratch…” in command prompt as soon as you import the extension into Scratch. Do you see any output when you run node extension.js?Github.I made a node.js framework for Scratch extensions. You can check it out on
I followed the step-by-step HelloWorl tutorial. I got the “say hello” block. When I click it I don't see “Connected to Scratch as ”HelloWorld“, port 12345 Hello, world!” in the node.js command prompt (I'm using Windows 7). Is there where I'm supposed to see the extension output?

- BigBlueBlock
-
500+ posts
Extension Discussion Thread
AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock
Thanks.
BigBlueBlock
Last edited by BigBlueBlock (July 24, 2013 14:10:23)
- nXIII
-
1000+ posts
Extension Discussion Thread
For me it never says connected to scratch but it still works, apart from reporters.
Same… I still have no idea why it does that.
Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently. AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock
- BigBlueBlock
-
500+ posts
Extension Discussion Thread
Yay! It works,thanks.For me it never says connected to scratch but it still works, apart from reporters.Same… I still have no idea why it does that.Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently. AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock

Last edited by BigBlueBlock (July 24, 2013 18:27:31)
- nathanprocks
-
1000+ posts
Extension Discussion Thread
Ok thanks. I will try it after school.For me it never says connected to scratch but it still works, apart from reporters.Same… I still have no idea why it does that.Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently. AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock

- nathanprocks
-
1000+ posts
Extension Discussion Thread
Yay it works now. Thank you so much nXIII
!



- comp500
-
100+ posts
Extension Discussion Thread
Cool! I'll try it when I get home (watch my siggy) Yay it works now. Thank you so much nXIII![]()
![]()
!
- blob8108
-
1000+ posts
Extension Discussion Thread
Just FYI: After seeing @technoboy10's demonstrations today, johnm hinted that he might try replacing Scratch 2.0's experimental extension system with something more like Snap!'s HTTP-based plugin system.
- nXIII
-
1000+ posts
Extension Discussion Thread
Oh, interesting. @johnm: what benefits do you see in switching to HTTP? I like the socket-based protocol because it allows two-way communication; e.g., it could allow custom event hat blocks, blocks that halt execution until they finish running, and reporters which perform a calculation rather than return a polled value (without long-running HTTP requests for the latter two). Just FYI: After seeing @technoboy10's demonstrations today, johnm hinted that he might try replacing Scratch 2.0's experimental extension system with something more like Snap!'s HTTP-based plugin system.
- blob8108
-
1000+ posts
Extension Discussion Thread
I don't want to misquote him – he can answer himself! – but I think just because it's so @johnm: what benefits do you see in switching to HTTP?simple.
- comp500
-
100+ posts
Extension Discussion Thread
WebSockets are faster than HTTP, and Sockets are faster than WebSockets…I don't want to misquote him – he can answer himself! – but I think just because it's so @johnm: what benefits do you see in switching to HTTP?simple.
For web apps WebSockets are the easiest…
- comp500
-
100+ posts
Extension Discussion Thread
Oh and nXIII is there a javascript API in the actual page (ASLoadProject?)
EDIT: Nvm I found it!
EDIT: It would be nice to have documentation though
EDIT: Nvm I found it!

EDIT: It would be nice to have documentation though
Last edited by comp500 (Aug. 1, 2013 08:48:29)
- BigBlueBlock
-
500+ posts
Extension Discussion Thread
What data is sent to and from the node.js program?
Last edited by BigBlueBlock (Aug. 3, 2013 07:41:38)
- davidkt
-
1000+ posts
Extension Discussion Thread
*sigh* How does it work?BBB…
So how does your node.js thing work? I want to use extensions without needing to cope with JavaScript. How do you get the blocks to work without hacking the website and modifying the scratch.swf?
- jTron
-
100+ posts
Extension Discussion Thread
I've been playing around with this for far longer than I care to admit (I could be doing so much more useful stuff, like going outside…) and this is obviously very touchy - but I finally placed all my missing commas and such and this is working more than beautifully for me. A few things I'd like to do rely on an existing variable. Is there a place that I can define it (and do anything else I want on initialization) where it can be accessed in extension.js? I've stuck it most of the places I could think of and it hasn't worked. I'd like to avoid defining it in every block definition or needing to create an block.
Thanks!
jTron
Thanks!
jTron
- djdolphin
-
1000+ posts
Extension Discussion Thread
Can I have the name of the API? Oh and nXIII is there a javascript API in the actual page (ASLoadProject?)
EDIT: Nvm I found it!
EDIT: It would be nice to have documentation though
- nXIII
-
1000+ posts
Extension Discussion Thread
A variable in Scratch, an extension reporter block, or a JS variable? A few things I'd like to do rely on an existing variable. Is there a place that I can define it (and do anything else I want on initialization) where it can be accessed in extension.js?
- comp500
-
100+ posts
Extension Discussion Thread
?Can I have the name of the API? Oh and nXIII is there a javascript API in the actual page (ASLoadProject?)
EDIT: Nvm I found it!
EDIT: It would be nice to have documentation though