Discuss Scratch

davidkt
Scratcher
1000+ posts

Extension Discussion Thread

sccar3 wrote:

So there IS a way to mod 2.0!
It's not modding, it's just extensions. Like plugins.
nathanprocks
Scratcher
1000+ posts

Extension Discussion Thread

comp500 wrote:

nXIII wrote:

s_federici wrote:

nXIII wrote:

I made a node.js framework for Scratch extensions. You can check it out on Github.

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?
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?
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. Also I like the AttackScratch.php link in your sig.
comp500
Scratcher
100+ posts

Extension Discussion Thread

nathanprocks wrote:

comp500 wrote:

nXIII wrote:

s_federici wrote:

nXIII wrote:

I made a node.js framework for Scratch extensions. You can check it out on Github.

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?
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?
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. Also I like the AttackScratch.php link in your sig.
BigBlueBlock
Scratcher
500+ posts

Extension Discussion Thread

AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock

Last edited by BigBlueBlock (July 24, 2013 14:10:23)

nXIII
Scratcher
1000+ posts

Extension Discussion Thread

comp500 wrote:

For me it never says connected to scratch but it still works, apart from reporters.

nathanprocks wrote:

Same… I still have no idea why it does that.

BigBlueBlock wrote:

AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock
Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently.
BigBlueBlock
Scratcher
500+ posts

Extension Discussion Thread

nXIII wrote:

comp500 wrote:

For me it never says connected to scratch but it still works, apart from reporters.

nathanprocks wrote:

Same… I still have no idea why it does that.

BigBlueBlock wrote:

AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock
Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently.
Yay! It works,thanks.

Last edited by BigBlueBlock (July 24, 2013 18:27:31)

nathanprocks
Scratcher
1000+ posts

Extension Discussion Thread

nXIII wrote:

comp500 wrote:

For me it never says connected to scratch but it still works, apart from reporters.

nathanprocks wrote:

Same… I still have no idea why it does that.

BigBlueBlock wrote:

AAARGH!!! Reporter blocks don't work. Please fix this.
Thanks.
BigBlueBlock
Should be fixed. Sorry, for some reason I couldn't reproduce this one until recently.
Ok thanks. I will try it after school.
nathanprocks
Scratcher
1000+ posts

Extension Discussion Thread

Yay it works now. Thank you so much nXIII !
comp500
Scratcher
100+ posts

Extension Discussion Thread

nathanprocks wrote:

Yay it works now. Thank you so much nXIII !
Cool! I'll try it when I get home (watch my siggy)
blob8108
Scratcher
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
Scratcher
1000+ posts

Extension Discussion Thread

blob8108 wrote:

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.
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).
blob8108
Scratcher
1000+ posts

Extension Discussion Thread

nXIII wrote:

@johnm: what benefits do you see in switching to HTTP?
I don't want to misquote him – he can answer himself! – but I think just because it's so simple.
comp500
Scratcher
100+ posts

Extension Discussion Thread

blob8108 wrote:

nXIII wrote:

@johnm: what benefits do you see in switching to HTTP?
I don't want to misquote him – he can answer himself! – but I think just because it's so simple.
WebSockets are faster than HTTP, and Sockets are faster than WebSockets…
For web apps WebSockets are the easiest…
comp500
Scratcher
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

Last edited by comp500 (Aug. 1, 2013 08:48:29)

BigBlueBlock
Scratcher
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
Scratcher
1000+ posts

Extension Discussion Thread

BigBlueBlock wrote:

How does it work?
*sigh* 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
Scratcher
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
djdolphin
Scratcher
1000+ posts

Extension Discussion Thread

comp500 wrote:

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
Can I have the name of the API?
nXIII
Scratcher
1000+ posts

Extension Discussion Thread

jTron wrote:

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?
A variable in Scratch, an extension reporter block, or a JS variable?
comp500
Scratcher
100+ posts

Extension Discussion Thread

djdolphin wrote:

comp500 wrote:

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
Can I have the name of the API?
?

Powered by DjangoBB