wc3-ts-template icon indicating copy to clipboard operation
wc3-ts-template copied to clipboard

The game cannot load the generated folder

Open symil opened this issue 1 year ago • 4 comments

~I have tried running this template without touching anything (except for the game path). It correctly generates a map.w3x folder, but the game is not able to run the map (both by running npm run test and by manually opening it from the game). The game sees the folder, but doesn't recognize it as a map. It seems like it expects a file and not a folder.~

I just realized that I should load the file generated in dist/bin, my bad. That being said, when I do that, I have a message saying There was an error trying to load the selected map. The map is unavailable or corrupted. Screenshot here. I have also tried to use a new map, same result.

Is it something that changed recently? Or did I miss something?

My game version is 1.36.1

symil avatar Nov 28 '23 21:11 symil

open your map with ladiq's mpq editor and see if the listfile is present in the built map.

bertman12 avatar Dec 01 '23 22:12 bertman12

It doesn't seem to be there. Screenshot

symil avatar Dec 04 '23 15:12 symil

Then what you need to do now is to save your map from the world editor and open that map in Ladiq's. Then copy the contents of the listfile that will be there and put that into a new file called listfile.txt . Then put that in your map folder in the typescript projcet you have. project-name/maps/my-map-name/listfile.txt <- the list file you need to put here

Then you should be able to rebuild the map and open the built map in ladiqs and see if the listfile is there

bertman12 avatar Dec 04 '23 16:12 bertman12

It didn't solve the problem :( I can now see the (listfile) file in the built map, but I still have a mesage saying it's corrupt. I saw that the archive is also missing the (attributes) file so I tried adding it as well but it didn't work.

symil avatar Dec 06 '23 21:12 symil