wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
226 stars 28 forks source link

VSCode `buildMap` command produces different output than `grill build` #986

Open jlfarris91 opened 3 years ago

jlfarris91 commented 3 years ago

It appears to me that when I run the buildMap command in vscode that the output map file is (literally) half the size of the map file built when using grill build. I am using the same terrain map and command line arguments. When I open the larger map in Ladik's MPQ Editor and use the Compact Archive feature the resulting map ends up being half the size - the same as the map built via buildMap in vscode.

It's very strange that the smaller output file is literally half the bytes of the larger file. When I open them both in Ladik's MPQ Editor I don't see doubles of each file or anything like that so I'm guessing some very good compression is occurring and it's just a coincidence that it's half the size.

Any ideas why this is happening?

grill build in powershell - 97,317KB

buildMap in vscode (languageserver log) - 48,657KB

Frotty commented 3 years ago

duplicate of https://github.com/wurstscript/WurstScript/issues/978 ?