PenguinMod / PenguinMod-Home

A main dashboard page featuring community projects and featured content.
https://penguinmod.com
21 stars 45 forks source link

BUG: Deleting an extension leaves the blocks that belong to it and will corrupt projects #32

Closed BlestLace closed 8 months ago

BlestLace commented 8 months ago

I am working on some engine to fetch time via JavaScript but, the last time I saved it, when I closed my browser window, I couldn't open it anymore.

An alert appeared on my browser, saying the following:

Unable to load project: Error: Unknown extension: localstorage

Restore points don't work aswell. Is there a way to recover projects?

BlestLace commented 8 months ago

If you need the .pmp, here it is. Project.zip

BlestLace commented 8 months ago

Hey, so I found the solution. Make the ".pmp" file a ".zip" file by renaming it. Open the "project.json" file inside the zip with Visual Studio. Then, go to the end of the file and you'll see something like: "extensionData": {}, "extensions": [ "utilities", "jgJavascript", "SPtimeCalc" ], "extensionURLs": { "utilities": "https://extensions.turbowarp.org/utilities.js", "SPtimeCalc": "https://extensions.penguinmod.com/extensions/SharkPool/Time-Calculations.js" },

The problem is caused by blocks in the project that belong to the extension, and the extension being undefined.

polygoners1 commented 8 months ago

so, the project file pls?

BlestLace commented 8 months ago

Well, I fixed the problem but if you need it, I sent it above. Just in case, I'm gonna reattach it here. Project.zip

polygoners1 commented 8 months ago

Well, I fixed the problem but if you need it, I sent it above. Just in case, I'm gonna reattach it here. Project.zip

when i tried to open it, it said "Could not load project: Error: Unknown extension: localstorage".

BlestLace commented 7 months ago

exactly 💀

BlestLace commented 7 months ago

I fixed it by modifying the JSON inside

BlestLace commented 7 months ago

OHH you want the finished result, right?

polygoners1 commented 7 months ago

ye

polygoners1 commented 7 months ago

uhhhh, hello?

polygoners1 commented 7 months ago

OHH you want the finished result, right?

i do want it

BlestLace commented 7 months ago

oh sorry i forgot to check my github

BlestLace commented 7 months ago

why do you need it?

polygoners1 commented 7 months ago

why do you need it?

i just wanna see

BlestLace commented 7 months ago

alright let me see where i put it i'll give it to you tomorrow

polygoners1 commented 7 months ago

alright let me see where i put it i'll give it to you tomorrow

epic

BlestLace commented 7 months ago

sorry for the wait i can't find it 💀💀 tomorrow i promise

polygoners1 commented 7 months ago

sorry for the wait i can't find it 💀💀 tomorrow i promise

oh

RedMan13 commented 7 months ago

oh shit yeah i still need to work on this

BlestLace commented 7 months ago

It turns out i didn't even have it. I'll repair the project with the link I referenced 3 - 4 weeks ago

BlestLace commented 7 months ago

oh shit yeah i still need to work on this

Thanks 👍

polygoners1 commented 7 months ago

It turns out i didn't even have it. I'll repair the project with the link I referenced 3 - 4 weeks ago

nice

polygoners1 commented 7 months ago

where the file disintegrate disintegrate disintegrate disintegrate disintegrate

BlestLace commented 7 months ago

i forgor 💀

BlestLace commented 7 months ago

ok it's here pmp.zip

I put a phone ringtone to test it. in the stage there's a "When (getTime) received" block with my custom block associated to it: "Play sound ( ) at (hh:mm:ss) until done" If you want to test it keep the bootaudio there and choose a custom time. "bootaudio" will either wait until that specified time to play or it will automatically play at a certain second if that time has already been reached (so the sound is synchronized with the time you put) btw local storage extension is useless lmao

BlestLace commented 7 months ago

Sorry for the wait lol

BlestLace commented 7 months ago

Wait js time actually uses your local pc time FUUU-

BlestLace commented 7 months ago

Bro nvm this is broken

BlestLace commented 7 months ago

It doesn't even work 💀

polygoners1 commented 7 months ago

well, i made my own play sound custom block : here it is!

BlestLace commented 7 months ago

Whoa how'd you get that sound selector?

BlestLace commented 7 months ago

That's not what I was expecting but that's pretty cool

polygoners1 commented 7 months ago

Whoa how'd you get that sound selector?

the "all menus" extension just put this : https://extensions.penguinmod.com/extensions/Lily/AllMenus.js into the custom extension thingy

BlestLace commented 7 months ago

oh that's pretty cool