Discuss Scratch

robotixdev
New to Scratch
2 posts

Scratch Extension Protocol Discussion [New]

Sir,
I have created js file extension for scratch 2.0. But, I can't able to import .js file in Scratch 2 offline editor. I kindly request you to send me how to import .js file in Scratch 2 offline.
Regards,
Robotics
Thepuzzlegame
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

robotixdev wrote:

Sir,
I have created js file extension for scratch 2.0. But, I can't able to import .js file in Scratch 2 offline editor. I kindly request you to send me how to import .js file in Scratch 2 offline.
Regards,
Robotics
Open up the browser console while in the editor and paste in the extension code to load the extension.

hi!
theonlygusti
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

The extension name should be an alphanumeric string in CamelCase, e.g., SensorBoard.

That's not camel case. Camel case starts with a lower letter, you were using Pascal Case.

theonlygusti
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

robotixdev wrote:

Sir,
I have created js file extension for scratch 2.0. But, I can't able to import .js file in Scratch 2 offline editor. I kindly request you to send me how to import .js file in Scratch 2 offline.
Regards,
Robotics

You can't.

robotixdev
New to Scratch
2 posts

Scratch Extension Protocol Discussion [New]

Sir,
Thanks for your kind reply. I tried that solution. It's work on online Scratch 2.0. Then “File>Menu>Download to your Computer”, saved my project to my local disk. Then I opened the scratch file in Scrtch 2.0 Offline. But,It did not display my extension . Kindly please help me to go further step..
Thanks Sir,
Robotics
MegaApuTurkUltra
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

robotixdev wrote:

Sir,
Thanks for your kind reply. I tried that solution. It's work on online Scratch 2.0. Then “File>Menu>Download to your Computer”, saved my project to my local disk. Then I opened the scratch file in Scrtch 2.0 Offline. But,It did not display my extension . Kindly please help me to go further step..
Thanks Sir,
Robotics
The offline editor doesn't support js extensions

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
Thepuzzlegame
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

robotixdev wrote:

Sir,
Thanks for your kind reply. I tried that solution. It's work on online Scratch 2.0. Then “File>Menu>Download to your Computer”, saved my project to my local disk. Then I opened the scratch file in Scrtch 2.0 Offline. But,It did not display my extension . Kindly please help me to go further step..
Thanks Sir,
Robotics
I'm afraid as MegaApuTurkUltra said the offline editor doesn't support js extensions. Why exactly do you need to use extensions in the offline editor as opposed to the online editor?

hi!
technoboy10
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

Thepuzzlegame wrote:

robotixdev wrote:

Sir,
Thanks for your kind reply. I tried that solution. It's work on online Scratch 2.0. Then “File>Menu>Download to your Computer”, saved my project to my local disk. Then I opened the scratch file in Scrtch 2.0 Offline. But,It did not display my extension . Kindly please help me to go further step..
Thanks Sir,
Robotics
I'm afraid as MegaApuTurkUltra said the offline editor doesn't support js extensions. Why exactly do you need to use extensions in the offline editor as opposed to the online editor?
Offline extensions allow you to write extensions in whatever programming language you prefer, rather than being forced to use JS.

trans rights are human rights
itchy20
Scratcher
100+ posts

Scratch Extension Protocol Discussion [New]

@technoboy10 That is “sort of true”. If you use websockets, you can also use any language you wish if you want to run a “server” instead of everything being contained in the browser. Since the JS extensions do not support Linux, there is no other way currently to do this for Linux. It also means you can address any device you like via IP address. See xi for an example.
technoboy10
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

itchy20 wrote:

@technoboy10 That is “sort of true”. If you use websockets, you can also use any language you wish if you want to run a “server” instead of everything being contained in the browser. Since the JS extensions do not support Linux, there is no other way currently to do this for Linux. It also means you can address any device you like via IP address. See xi for an example.
Ah, that's true. I forgot about websockets!

trans rights are human rights
comp09
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

itchy20 wrote:

@technoboy10 That is “sort of true”. If you use websockets, you can also use any language you wish if you want to run a “server” instead of everything being contained in the browser. Since the JS extensions do not support Linux, there is no other way currently to do this for Linux. It also means you can address any device you like via IP address. See xi for an example.
Check out this awesome websocketifier: http://websocketd.com/


Visit the website of Andrew Sun!


itchy20
Scratcher
100+ posts

Scratch Extension Protocol Discussion [New]

@comp09
websocketd.com looks cool. Here is something you should checkout: http://crossbar.io/. I am hoping to make this the basis for my next Scratch extension.
Behrens70
New to Scratch
1 post

Scratch Extension Protocol Discussion [New]

Hi there.

I'm a newbie to Scratsch and WeDo but a Pro into LEGO building.

Wonder if you can help me with my LEGO Wedo hub problem?

I would like to connect this Touch sensor http://alpha.bricklink.com/pages/clone/catalogitem.page?P=879#T=C
from LEGO to the hub,via this extension cable from LEGO. http://alpha.bricklink.com/pages/clone/catalogitem.page?P=60656#T=C

But how on earth do I get Scratsch to read the touch sensor wenn it is pushed?

Can anyone please help me?


Last edited by Behrens70 (Jan. 20, 2016 15:20:53)

ChangmingTian
New to Scratch
3 posts

Scratch Extension Protocol Discussion [New]

Hi
I'm a newbie to Scratch
I want make a LAN chat tool by Scratch
I found Scratch is too weak for some work
Even with the HTTP extension I can not finish my chat tool
Is there a document explain how to make extension?
Jonathan50
Scratcher
1000+ posts

Scratch Extension Protocol Discussion [New]

ChangmingTian wrote:

Hi
I'm a newbie to Scratch
I want make a LAN chat tool by Scratch
I found Scratch is too weak for some work
Even with the HTTP extension I can not finish my chat tool
Is there a document explain how to make extension?
Yes, if you'd like to make a Scratch 3 extension see here.

Not yet a Knight of the Mu Calculus.

Powered by DjangoBB