Discuss Scratch

OnMax
Scratcher
14 posts

Creating extensions for Scratch 3.0

PullJosh wrote:

OnMax wrote:

Do you mean, I can just use self instead of window?
Haven't tested myself, but it looks like yes.

It doesn't works. It just still doesn't works…

link - js file

when I start as a clone
forever
if <not <<key [space v] pressed>=(1)>> then
say (round ([sin v] of (☁ data))) for (((☁ data) * (33.33)) mod (0)) secs
end
change [☁ data v] by <key [space v] pressed?>
end

Who understand this?
SimpleScratch
Scratcher
100+ posts

Creating extensions for Scratch 3.0

@Sheep_maker

Thanks for your Scratch3 mod with your external extension loader

One “small” issue I'm having with it is that I can't seem to re-load projects that use your utilities extension
(Its just sits there giving an endless series of messages about loading the file/sprites/extensions etc)

Is this just happening to me or is it a general issue?

Simon


Sheep_maker
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

SimpleScratch wrote:

@Sheep_maker

Thanks for your Scratch3 mod with your external extension loader

One “small” issue I'm having with it is that I can't seem to re-load projects that use your utilities extension
(Its just sits there giving an endless series of messages about loading the file/sprites/extensions etc)

Is this just happening to me or is it a general issue?

Simon


Yes, it's happening to me too. Based on my observations, perhaps Scratch 3.0 uses the extension ID as the URL of the extension, which makes sense since internally they're the same thing. I will look into this.

Last edited by Sheep_maker (Aug. 8, 2018 16:31:21)


- Sheep_maker This is a kumquat-free signature. :P
Scratch 3.0 blocks but less fat
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
Sheep_maker
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

I've updated my mod; it should now have the latest Beta features, and I also fixed two issues:
  • clicking on extension reporters was very buggy
  • can't upload extension-using projects
I've fixed the second problem by slightly modifying the SB3 format to include the extension URLs. With this, I've also changed the file extension to .sb3x

- Sheep_maker This is a kumquat-free signature. :P
Scratch 3.0 blocks but less fat
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
OnMax
Scratcher
14 posts

Creating extensions for Scratch 3.0

Sheep_maker wrote:

I've updated my mod; it should now have the latest Beta features, and I also fixed two issues:
  • clicking on extension reporters was very buggy
  • can't upload extension-using projects
I've fixed the second problem by slightly modifying the SB3 format to include the extension URLs. With this, I've also changed the file extension to .sb3x

Yay great

when I start as a clone
forever
if <not <<key [space v] pressed>=(1)>> then
say (round ([sin v] of (☁ data))) for (((☁ data) * (33.33)) mod (0)) secs
end
change [☁ data v] by <key [space v] pressed?>
end

Who understand this?
dalelane
Scratcher
3 posts

Creating extensions for Scratch 3.0

Sheep_maker wrote:

Because of how extensions are registered, external extensions don't have access to the magical “runtime” thing which means you can't do much with the default Scratch unlike the currently provided extensions. Maybe I'll find a way to change that.

Have you made any progress with this? Do you know if it's a permanent restriction for extensions in Scratch 3, or just something they probably haven't gotten to yet?
Sheep_maker
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

dalelane wrote:

Sheep_maker wrote:

Because of how extensions are registered, external extensions don't have access to the magical “runtime” thing which means you can't do much with the default Scratch unlike the currently provided extensions. Maybe I'll find a way to change that.

Have you made any progress with this? Do you know if it's a permanent restriction for extensions in Scratch 3, or just something they probably haven't gotten to yet?
They haven't gotten to it yet; I am not working on giving extensions access to the runtime because it will likely be different than what the ST will do.

- Sheep_maker This is a kumquat-free signature. :P
Scratch 3.0 blocks but less fat
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }

Powered by DjangoBB

Standard | Mobile