# Half of assets gone, and 2000 blocks of code BUT I can replicate it :boom:

**URL:** <https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344>\
**Category:** Help\
**Created:** [June 19, 2024, 9:30pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344 "2024-06-19T21:30:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 19, 2024, 9:30pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/1 "2024-06-19T21:30:57Z")

</div>

So when sarge updated his extension to include shuffling I tried to readd the betterarrays extension.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/19825a5b678ebd3806c12512219d9714a58fb1af.png)  
this comes up^  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/13a4b9dec0a8a53a376b49f03d9a53b721e6876a.png)  
makecode reorganises my code 😒  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c8681a735f99b546f9239535c6f521969a4e41c9.png)  
functions are removed  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/211b6ee6fedd55216e6237839fa1eb5f97974dc0.png)  
2000 blocks removed (before was abt 5200)

Some issues from the console (post was too long so i can’t show all)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/00954a7cacbbb837896cba5999dd2f13a3259e0c.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/47d4208500acf7928bfde2929eb3d72e17be7190.png)  
I initially thought that all functions/blocks where i used the betterarrays blocks got vaporised but most of these functions do not use any of them.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d5c1f657c57bf2adb280e6186abb91106a3b4ccb.png)  
my next thought is that the sprite data extension is breaking something cause the last time this happened I saw the same error with invalid upgrade rule  
here: [Where did my assets go? - #7 by Luke](https://forum.makecode.com/t/where-did-my-assets-go/21519/7)  
I have 0 expertise in this area, just hoping that since I can replicate the problem I might be able to help fix it.  
broken project V

> **[Card Delver v0-26-3 BROKEN](https://arcade.makecode.com/22415-55659-03182-89210)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

![arcade-Card-Delver-v0-26-3-ATTACK-REWORK](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/81daccdfbf481dfd559249a40fd391e01c7ec031.png)  
project before adding the extension  
for anyone wanting an early peek at Card Delver all i’m going to say is good luck opening 5000+ blocks

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/3fb729b4fd674ec7e125c6ef25cccb26f4955aa0.png)  
also this idk if it helps

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [June 20, 2024, 3:44am UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/2 "2024-06-20T03:44:38Z")

</div>

Wow this must have been terrible. I had something like this happen to me but it was with way less code. The game looks pretty cool, hope you keep working on it!

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 20, 2024, 2:48pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/3 "2024-06-20T14:48:17Z")

</div>

I have like 30 backups so don’t worry!

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [June 20, 2024, 4:27pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/4 "2024-06-20T16:27:56Z")

</div>

30 Backups!?  
Sheesh how many projects do you have?

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [June 20, 2024, 4:27pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/5 "2024-06-20T16:27:58Z")

</div>

Can you send me a link that works?

---

<div class="post-metadata">

**Author:** ![CopySprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/copysprite/32/35475_2.png) [@CopySprite](https://forum.makecode.com/u/CopySprite)\
**Post date:** [June 20, 2024, 5:06pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/6 "2024-06-20T17:06:53Z")

</div>

30 backups of this project.  
If you have a **really** big project then you’ll understand.  
(More than 1000 blocks)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 20, 2024, 6:20pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/7 "2024-06-20T18:20:09Z")

</div>

uhh actually 65 🙏 😅

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/c/aca8124eb1d50a13a1824627836530ad189c9a3c.png)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 20, 2024, 6:20pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/8 "2024-06-20T18:20:20Z")

</div>

> [@Coder king 3: legends](https://forum.makecode.com/t/coder-king-3-legends/19667/741):
>
> Finally made a name lol So yeah, definitely didn’t finish it but here’s some stuff that you should know (no time to make a tutorial melting_face) Cards and characters are random, this is just to show all the content, will be changed in the future. Controls: L and R to select cards and end turn button A to interact with stuff on screen B to view card inventory (don’t try reading the rotated text lol) OH NO I JUST REALISED ITS BROKEN Menu to view map Up and Down to move map and card i…

hella buggy and extremely incomplete, i would heavily advise you to wait for the full release (sometime maybe soon)

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 20, 2024, 7:35pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/9 "2024-06-20T19:35:46Z")

</div>

@richard what’s going on here? The extension should be fine… I think

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [June 20, 2024, 7:37pm UTC](https://forum.makecode.com/t/half-of-assets-gone-and-2000-blocks-of-code-but-i-can-replicate-it/29344/10 "2024-06-20T19:37:23Z")

</div>

@Luke thanks for the repro! I will try and take a look at this soon but i’m swamped at the moment
