Discuss Scratch
- indream
-
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”: [
,
…
]
}
{
“extensionName”: name,
“extensionPort”: port,
“extensionIp”: ip,
“blockSpecs”: [
,
…
]
}
- blob8108
-
1000+ posts
Extension Discussion Thread
I'm pretty sure the ST aren't going to support that, for reasons discussed earlier in the thread. could the offline editor support custom ip?
- SamDecrock
-
2 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”: [
,
…
]
}
You CAN do this, just use “host”, like this:
{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}
- Magnie
-
100+ posts
Extension Discussion Thread
Has “host” been tested?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
}
- wizzwizz4
-
92 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”: [
,
…
]
}
You CAN do this, just use “host”, like this:
{
“extensionName”: “Some awesome name”,
“host” : “192.168.204.7”,
“extensionPort”: 3000
}
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)? Has “host” been tested?
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
-
1000+ posts
Extension Discussion Thread
Import experimental extension doesn't work anymore…
- technoboy10
-
1000+ posts
Extension Discussion Thread
That only works offline now. Import experimental extension doesn't work anymore…
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
-
100+ posts
Extension Discussion Thread
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.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
}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)? Has “host” been tested?
EDIT: OK, so 80 and 443 are wrong, but I still don't think 3000 should be used.

- wizzwizz4
-
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-
-
1 post
Extension Discussion Thread
How do you guys get on the scratch extension dev team? I really want to join!
- Lon42
-
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
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
-
1000+ posts
Extension Discussion Thread
Hi Lon, 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
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!