Makecode Removing all SpriteKinds and varibles

Im working on yet a project and every 10-20 minutes all of the variables and Sprite Kinds Disappear from the editor
The variables are “fine” as they don’t all delete themselves but the sprite kinds just crash my everything so i have to manually type them back in

Im unsure of what causes this but i don’t like how often its happen

Also when a collapsed block has a error in it the warning doesn’t get removed once you fix it.

7 Likes

Yeah I had the same problem but without the variable removal

1 Like

@ADM_F @_Astronomer I haven’t seen that issue, next time it happens can you try opening the browser console and seeing if there are any errors there? also, can you share the projects this is happening in?

3 Likes

here is the game its happening in

1 Like

I use the makecode app so im not sure how to open the console.
should i try loading it in chrome?

I name my sprites with no overlaps null
but its not under the list any more

And i also got this fella


its from a variable error but it just wont go away its not inside any collapsed block its just there

I also noticed that every time the game saves it removes both variables and Sprite Kinds.

It might be a Mini-Menu Issue as the spritekind “MiniMenu” never gets removed
but other then that i got absolutely no clue

ever single Project i open even in chrome gets corrupted as every value is set to its “base”

data types that get reset
Spritekind = Player
Numbers = 0
Arrays are empty but the variables always get reset to list
Text = " "
Tiles = the empty 16x16 (i use 8x8 tilemaps via tile utils)
and of course all assets gone

i’ve lost about 5 large projects and i’m certainly not going to open another
shinji sitting in chair Poster

1 Like

This can happen sometimes when you “duplicate” images or tilemaps. (Like if you drag an image out of sorting else) This copying of data can sometimes lead to glitches like this in the editor. Things you can do:

1.Name all of your assets
2.Delete unused assets or duplicates of assets. Replace these duplicates with one central named version.
3.Don’t “duplicate” as frequently. Especially with tilemaps or longer animations. Instead you can go into an asset and use the box selector tool to select something you want to duplicate. Then use your copy shortcut to translate the image into text. You can then paste this where you want to copy it without fear of glitches/corruption.

This is one of makecodes most frustrating glitches. It can also lead to the seeming deletion of images. If it’s too horrible for you or you can’t fix it I recommend switching to JavaScript as I’ve never seen this happen there. Good Luck!

1 Like

@ADM_F is it corrupting the projects permanently or does refreshing the page fix it?

also, i would always recommend using the website over the app; the app is really just for people who need to use makecode completely offline like in areas without reliable internet access. e.g., you can put it on a thumb drive and install it on computers that are never connected to the internet.

when you first load the new arcade update in the browser, all of your projects should be copied into a new DB where they are stored separate from the versions before the new update. luckily, that means we should be able to recover those projects relatively easily in the browser; though i’m not sure about the offline app. are you using the offline app from the windows store or the offline app from our website? if it’s the one from the windows store, we might be able to save things…

2 Likes

@ADM_F also if you can reproduce the issue in chrome and give me a screenshot of the console, that would be perfect. i can’t seem to get it to happen locally, so any more details about what sorts of edits you were making at the time would be very helpful

My projects are also getting corrupted but for different reasons. Whenever I click on an 8 by 8 tile map block, my cursor sticks to it. It then corrupts my project, as I cannot move any blocks.

@BotWarrior please share a link to the project

also, to recover projects from the old version of makecode:

  1. close all open makecode tabs/windows in your browser
  2. go to https://arcade.makecode.com/v1
  3. click “view all” next to “My Projects”
  4. select the projects you want to download by clicking the circle in the top-right
  5. click “download zip” (you must have at least two projects selected to be able to download a zip)

I have been sharing it here. I have basically given up on my project which I was working on for weeks :frowning: :slightly_frowning_face:

I never duplicate my images i name all of them and i dont even have iterations as i use code to flip rotate or recolor them

2 Likes

That is good to do! But still be super careful because it can happen even if you do it once or twice.

Here is a couple duplicates :

My students have been running into the same issue of custom SpriteKinds disappearing. My workaround is to move the kind declaration into a new file in the JavaScript.

For example I will create a “spritekinds.g.ts” with
namespace SpriteKind {
//% isKind
export const playerFire = SpriteKind.create()
}

2 Likes

I also just got the issue as well. I do also have the console up so I can send the errors over.



Hopefully that helps.
Heres the project too

1 Like

I am having this issue too. I thought it had to do with my extensions, but it doesn’t seem that way. luckilly my project is using github so i can just revert changes.
It happens at different times for me, but it seems to be around the time I make a new variable. This time I made a new array and then it crashed.

Console text

Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: mushroom
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: fire
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: koopaGreen
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: enemy_killer_sprite
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: utility
doClassValidation_ @ main.js:7
3 Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: koopaGreen
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: firebar
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: enemy_killer_sprite
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: SMW_Goomba
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: flippedSMWgoomba
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: SMW_Goomba
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: OffScreenEnemy
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: offScreenKoopaGreen
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: koopaGreen
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: bullet_off_screen
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: bullet
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: offscreenSMWgoomba
doClassValidation_ @ main.js:7
Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: SMW_Goomba
doClassValidation_ @ main.js:7
2 Cannot set the dropdown’s value to an unavailable option. Block type: spritekind, Field name: MEMBER, Value: utility
ignoring built in block: lists_length
error: main.ts(1,48): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(175,49): error TS2339: Property ‘boss’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(365,27): error TS2339: Property ‘OffScreenEnemy’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(469,27): error TS2339: Property ‘offScreenKoopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(701,27): error TS2339: Property ‘firebar’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(730,27): error TS2339: Property ‘lavabubble’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(735,71): error TS2339: Property ‘boss’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(743,49): error TS2339: Property ‘SMW_Goomba’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(766,30): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(766,53): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1003,30): error TS2339: Property ‘SMW_Block’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1012,32): error TS2339: Property ‘display’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1282,32): error TS2339: Property ‘lavabubble’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1547,49): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1613,32): error TS2339: Property ‘display’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1616,28): error TS2339: Property ‘bullet’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1640,30): error TS2339: Property ‘enemy_killer_sprite’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1643,30): error TS2339: Property ‘enemy_killer_sprite’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1643,62): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1672,49): error TS2339: Property ‘fire’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1714,31): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1745,31): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1772,31): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1799,31): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1815,53): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1827,32): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1839,52): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1860,27): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1870,72): error TS2339: Property ‘bullet_off_screen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1874,72): error TS2339: Property ‘offscreenSMWgoomba’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1885,30): error TS2339: Property ‘enemy_killer_sprite’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1885,62): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1889,53): error TS2339: Property ‘OffScreenEnemy’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1895,53): error TS2339: Property ‘offScreenKoopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1898,39): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1901,53): error TS2339: Property ‘bullet_off_screen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1904,39): error TS2339: Property ‘bullet’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1907,53): error TS2339: Property ‘offscreenSMWgoomba’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1910,39): error TS2339: Property ‘SMW_Goomba’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(1914,32): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2143,49): error TS2339: Property ‘lavabubble’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2267,23): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2292,27): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2319,27): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2330,56): error TS2339: Property ‘boss’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2342,49): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2358,32): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2425,27): error TS2339: Property ‘OffScreenEnemy’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2529,27): error TS2339: Property ‘offScreenKoopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2907,32): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2934,23): error TS2339: Property ‘enemy_killer_sprite’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2943,32): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2962,52): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2968,52): error TS2339: Property ‘offScreenKoopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2971,52): error TS2339: Property ‘OffScreenEnemy’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2974,52): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2977,52): error TS2339: Property ‘firebar’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2980,52): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2983,52): error TS2339: Property ‘boss’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2986,52): error TS2339: Property ‘lavabubble’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2989,52): error TS2339: Property ‘fire’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(2997,49): error TS2339: Property ‘firebar’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3003,32): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3198,27): error TS2339: Property ‘OffScreenEnemy’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3302,27): error TS2339: Property ‘offScreenKoopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3682,27): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3745,27): error TS2339: Property ‘utility’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3757,32): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3760,32): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3868,19): error TS2339: Property ‘display’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3908,75): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3913,60): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3941,79): error TS2339: Property ‘mushroom’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3968,35): error TS2339: Property ‘SMW_Block’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3985,56): error TS2339: Property ‘koopaGreen’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3991,56): error TS2339: Property ‘SMW_Goomba’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(3994,56): error TS2339: Property ‘firebar’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(4001,52): error TS2339: Property ‘lavabubble’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(4011,52): error TS2339: Property ‘boss’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(4021,27): error TS2339: Property ‘fire’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(4034,75): error TS2339: Property ‘bullet’ does not exist on type ‘typeof SpriteKind’.
error: main.ts(4055,31): error TS2339: Property ‘bullet’ does not exist on type ‘typeof SpriteKind’.