I broke my MakeCode, is it possible to salvage it?

I was messing around with some images, with the Image converter, and I think I pasted something faulty into the JavaScript editor. Now, I can’t even open the tab and not get hit with an error.

Project Details:
Name: ULTRAKILL (Pre-Alpha… [I forgot]
The project is big, a few thousand lines of code. (8000-9000)

Here’s everything that happened:
I pasted a few lines of code, which converted to gray blocks in, then a corrected version in the Js editor.
I switched to blocks again, and the screen went black.
I reloaded the page, then I was hit with the error.

‘Error: Out of memory’

Can someone tell me how to fix this? (Developers, etc.)
My hands are shaking like crazy seeing all my time go to waste.
I really don’t want to lose my project.

5 Likes

@richard in only saying this since you made a link to download every protect the user had named “bird”, I’m guessing you could do the same here?

1 Like

Would it be possible to escalate this to the MakeCode team?
Maybe @richard, or anyone else.
And I found something which may be useful:


I hope this can be over with fast, because I have a lot of things to complete.

1 Like

alright i made another magic URL, but this time i’m going to message @cveredly with it directly so that i don’t get people accidentally clicking it.

9 Likes

how do you do that I want to know so I can save all my games in that link thingy

2 Likes

i’m doing it by editing the internals of makecode, but you don’t need a special link to save your games, just download them!

3 Likes

How do you download MakeCode projects?

2 Likes

At the bottom of the screen, next to the game title, there’s a save button.

Save

Click it to download your project.

3 Likes

directly below where your game is actually shown, there should be a camera:


----------------------------------^

3 Likes

I know I wanted to do it myself wothout downloads cause I’m lazy

1 Like

Sorry to bother you again, @richard, and thank you for helping me recover my project previously.

I’ve, again, run into another serious problem with my project.

The MakeCode browser editor keeps running out of memory and crashing. I’ve checked its memory usage at around 3.6–4 GB in Microsoft Edge (I have 16GB of ram on my laptop).

Some additional information:

  • The project has grown considerably since my previous problem, I think it’s at 10,000–20,000 lines of code. The project still has “ULTRAKILL” in its name though.

  • I’ve already tried closing other tabs, stopping the simulator while editing, and collapsing functions.

  • My custom ray-casting engine is a separate imported local extension, containing much of the game’s rendering functionality.

  • The game itself can compile and run, but MakeCode eventually crashes in the editor or even while editing assets. The error states that it has run out of memory?

I’ve already wasted enough time not updating the game at all, and now that I’ve got to it everything just doesn’t want to work anymore.

Is there anything else I could try to improve the editor’s memory usage or prevent these crashes? Or could this be a limitation or memory-management issue with the browser editor?

I’d really appreciate some help. Thank you again previously for helping me out too.

2 Likes

yeah, makecode has problems with truly giant games.

one thing you can do is disable version history, which i will not list the steps to do here but if you send me your project i will send you back a version with version history turned off. this isn’t necessarily guaranteed to fix anything though, but it might help a bit. obviously, you’re going to want to back up your code often if you decide to use this version of the project.

4 Likes

Using asset packs could help with perf

1 Like

That’s very low, nice. Mine is usually 8-13 GB.

1 Like

Also, don’t click on the project if you aren’t Richard, the project isn’t supposed to be seen/played yet. I mean it.

1 Like

Here’s the main project: https://arcade.makecode.com/S55274-23072-11669-28498

Here’s the separate custom ray-caster (local extension): https://arcade.makecode.com/S29661-58103-70702-87742

The main project also has about 19,000+ lines of code, the main game also includes stuff from the custom ray-caster extension. Thanks again for helping out! (sorry if I’m bothering you too much)

1 Like

Mb it’s just my hardware causing whatever happens, I don’t really know.

2 Likes

Mine is 1 gb gang my computer has 4gb of ram I could code on my phone gaster(16gb)

2 Likes

Hi Richard, just checking whether you’ve had a chance to look at the project. No rush, I just wanted to know whether there’s been any progress or whether you need anything else from me, since I’ve been unable to continue and update the game for a while now…

1 Like

Might have to mention him, since he might have forgotten.

Again:
Hi @richard, just checking whether you’ve had a chance to look at the project. No rush, I just wanted to know whether there’s been any progress or whether you need anything else from me, since I’ve been unable to continue and update the game for a while now…