When i try to fix it by adding another file named: main.blocks. but it turns it into: main.blocks.ts.
Is there a fix?
When i try to fix it by adding another file named: main.blocks. but it turns it into: main.blocks.ts.
Is there a fix?
Can you share the project?
I hope you get your code back!
Ah, I meant the game in which you want to have it fixed, not just a project without the file; I can mess around with it and manually fix it for this case, assuming you give me a project that has the ts / assets in it, but thereâs no easy way right away in the editor. I filed https://github.com/microsoft/pxt-arcade/issues/5855 for a âgeneralâ fix / easier path
Here is the game:
I tried to delete file i had misspelled and missclicked.
Here you go https://makecode.com/_PLoR7Kfi8hoK will generate the .blocks file back when you click into blocks
That said, this doesnât look like a project that you would particularly want to go to blocks in, as itâs nicely formatted in text / swapping back and forth wonât look as pretty. One thing to note is that I did change this line:
as tiles.setTilemap is the old, deprecated version that doesnât support variables in blocks (that is, it can only be set with a literal value like tiles.setTilemap(`asdf`)
in blocks, so if you put a variable in it will get replaced with a new, empty tilemap)