Discuss Scratch

FormulaFanboyYT
Scratcher
51 posts

Can someone help make this 2.0 extension work in 3.0?

Hello. I am trying to make this extension work in Scratch 3.0, using a link that loads Scratch 3 with custom extensions. That being said, the problem is that this is a 2.0 extension, but it needs to be 3.0. The only thing I could find online was a converter, which sadly didn't work for me. Any and all help is appreciated!
Sheep_maker
Scratcher
1000+ posts

Can someone help make this 2.0 extension work in 3.0?

Since the Scratch extensions specification hasn't been finalized yet, there are two types of extensions in Scratch.

All the extensions in vanilla Scratch are “team” extensions, so they don't run in a worker and thus have access to localStorage. However, it requires modding.

Scratch also has “unofficial” extensions that run in a web worker; extensions loaded in my mod are unofficial extensions, so because they're in a web worker, they don't get access to some APIs like localStorage. However, they do have access to IndexedDB, and localForage, a library which uses IndexedDB, has a simplified localStorage-like API, and it's possible you could `importScripts` it

Nonetheless

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
FormulaFanboyYT
Scratcher
51 posts

Can someone help make this 2.0 extension work in 3.0?

Sheep_maker wrote:

Since the Scratch extensions specification hasn't been finalized yet, there are two types of extensions in Scratch.

All the extensions in vanilla Scratch are “team” extensions, so they don't run in a worker and thus have access to localStorage. However, it requires modding.

Scratch also has “unofficial” extensions that run in a web worker; extensions loaded in my mod are unofficial extensions, so because they're in a web worker, they don't get access to some APIs like localStorage. However, they do have access to IndexedDB, and localForage, a library which uses IndexedDB, has a simplified localStorage-like API, and it's possible you could `importScripts` it

Nonetheless

Interesting.

So, if I understand correctly, it IS possible to get the localStorage to work, but I'd have to mod it… I'm fine doing that, but the problem is that I have a Windows PC, and that page looked very much like a Linux tutorial. So how should I go about getting a modded version of Scratch 3 that loads your *helpfully provided* version of the localStorage extension on Windows?

Speaking of which, thanks so much!
FormulaFanboyYT
Scratcher
51 posts

Can someone help make this 2.0 extension work in 3.0?

Actually, potential fix– if I was loading the extension via your HTML tool, would that work?
Jeffalo
Scratcher
1000+ posts

Can someone help make this 2.0 extension work in 3.0?

sheep maker left a link to their mod equites that supports having mods like this

here is your mod in there

disclaimer: sometimes my posts are pretty critical of the scratch team (especially my older ones), but i really do scratch & scratch team. jvvg made a short essay thing about the scratch team, which is a pretty good read, if you want a different perspective for the scratch team's actions.

my website: jeffalo.net | ocular: scratch forum search













FormulaFanboyYT
Scratcher
51 posts

Can someone help make this 2.0 extension work in 3.0?

Hello
First off, thank you all for the help! I have now been able to achieve my goal thanks to you lovely folks!

I now have another goal for the same project, I posted about it here https://scratch.mit.edu/discuss/topic/404372/?page=1#post-4017535

I would appreciate any help with that topic. Thanks in advance!
DontClickThisPlease
Scratcher
8 posts

Can someone help make this 2.0 extension work in 3.0?

Sheep_maker wrote:

Since the Scratch extensions specification hasn't been finalized yet, there are two types of extensions in Scratch.

All the extensions in vanilla Scratch are “team” extensions, so they don't run in a worker and thus have access to localStorage. However, it requires modding.

Scratch also has “unofficial” extensions that run in a web worker; extensions loaded in my mod are unofficial extensions, so because they're in a web worker, they don't get access to some APIs like localStorage. However, they do have access to IndexedDB, and localForage, a library which uses IndexedDB, has a simplified localStorage-like API, and it's possible you could `importScripts` it

Nonetheless
I'm afraid you have made a grave mistake. See https://ipfs.io/ipfs/Qmbdm26X1z1WsyTYry9bvKP988LekkugfkjLBPheT9rhZ6/2020-05-15_14-01-53.gif
FormulaFanboyYT
Scratcher
51 posts

Can someone help make this 2.0 extension work in 3.0?

@Sheep_maker Okay, completely unrelated, but I have a new question: would it be possible to have a mod just like the localStorage one, except the variables are online and hosted to a server?
Sheep_maker
Scratcher
1000+ posts

Can someone help make this 2.0 extension work in 3.0?

FormulaFanboyYT wrote:

@Sheep_maker Okay, completely unrelated, but I have a new question: would it be possible to have a mod just like the localStorage one, except the variables are online and hosted to a server?
Cloud variables?

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }

Powered by DjangoBB