Discuss Scratch

indream
New Scratcher
8 posts

Extension Discussion Thread

dear admin,could the offline editor support custom ip?the config code like below.thanks.
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,

]
}
blob8108
Scratcher
1000+ posts

Extension Discussion Thread

indream wrote:

could the offline editor support custom ip?
I'm pretty sure the ST aren't going to support that, for reasons discussed earlier in the thread.
SamDecrock
New Scratcher
2 posts

Extension Discussion Thread

indream wrote:

dear admin,could the offline editor support custom ip?the config code like below.thanks.
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,

]
}

You CAN do this, just use “host”, like this:

{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}

Magnie
Scratcher
100+ posts

Extension Discussion Thread

SamDecrock wrote:

indream wrote:

dear admin,could the offline editor support custom ip?the config code like below.thanks.
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,

]
}

You CAN do this, just use “host”, like this:

{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}

Has “host” been tested?
wizzwizz4
Scratcher
92 posts

Extension Discussion Thread

indream wrote:

dear admin,could the offline editor support custom ip?the config code like below.thanks.
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,

]
}

SamDecrock wrote:

You CAN do this, just use “host”, like this:

{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}

Magnie wrote:

Has “host” been tested?
Yes, but I'm not sure the port is correct. I'm no expert, but shouldn't it be 80 http (or 443 https maybe)?
EDIT: OK, so 80 and 443 are wrong, but I still don't think 3000 should be used.

Last edited by wizzwizz4 (Aug. 16, 2014 08:18:00)

goldfish678
Scratcher
1000+ posts

Extension Discussion Thread

Import experimental extension doesn't work anymore…
technoboy10
Scratcher
1000+ posts

Extension Discussion Thread

goldfish678 wrote:

Import experimental extension doesn't work anymore…
That only works offline now.

You also have to be part of the Scratch dev group to import your own JS extensions as well (although you *can* distribute an sb2 with the extension blocks loaded).
Magnie
Scratcher
100+ posts

Extension Discussion Thread

wizzwizz4 wrote:

indream wrote:

dear admin,could the offline editor support custom ip?the config code like below.thanks.
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,

]
}

SamDecrock wrote:

You CAN do this, just use “host”, like this:

{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}

Magnie wrote:

Has “host” been tested?
Yes, but I'm not sure the port is correct. I'm no expert, but shouldn't it be 80 http (or 443 https maybe)?
EDIT: OK, so 80 and 443 are wrong, but I still don't think 3000 should be used.
It can technically be any port. You just have to be hosting a server ready to receive on that port that is meant to receive Scratch Extensions data.
wizzwizz4
Scratcher
92 posts

Extension Discussion Thread

Here's my extension for technoboy10 to test. I couldn't think of anywhere else to put it.
(function (ext) {
// Cleanup function when the extension is unloaded
ext._shutdown = function () { };

// Status reporting code
// Use this to report missing hardware, plugin or unsupported browser
ext._getStatus = function () {
return { status: 2, msg: 'Should be working!' };
};

//=====My blocks=====
ext.when_true_hat = function (boolean) {
return boolean;
}
// Block and block menu descriptions
var descriptor = {
blocks: [
['h', 'when %b', 'when_true_hat']
]
};

// Register the extension
ScratchExtensions.register("wizzwizz4's Extra Blocks for Scratch!", descriptor, ext);
})({});

Last edited by wizzwizz4 (Aug. 26, 2014 09:22:08)

-muffin-
Scratcher
1 post

Extension Discussion Thread

How do you guys get on the scratch extension dev team? I really want to join!
Lon42
New Scratcher
1 post

Extension Discussion Thread

Dear Scratchers,

I want to connect my Philips Hue lights to Scratch so I can use them while teaching kids at school how to program.
They could then, for instance, reflect ‘health’ of their game-character as a color of their lamp.

I'm quite an expert at JavaScript, that should not be a problem.
I'm new to Scratch, but I guess that shouldn't be a problem as well.

So my problem now is: how do I become a Scratch Extension Developer?


Friendly greetings
Lon Boonen
technoboy10
Scratcher
1000+ posts

Extension Discussion Thread

Lon42 wrote:

Dear Scratchers,

I want to connect my Philips Hue lights to Scratch so I can use them while teaching kids at school how to program.
They could then, for instance, reflect ‘health’ of their game-character as a color of their lamp.

I'm quite an expert at JavaScript, that should not be a problem.
I'm new to Scratch, but I guess that shouldn't be a problem as well.

So my problem now is: how do I become a Scratch Extension Developer?


Friendly greetings
Lon Boonen
Hi Lon,

Unfortunately, it's not easy to get into the extension developer group at the moment, as the Scratch Team hasn't been responding to join requests. However, GrannyCookies has developed a method to load extensions without needing to be in the dev group. Best of luck!

Powered by DjangoBB