wurstscript / WurstScript

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

Only 1 modified default object is built #984

Closed jmrico01 closed 3 years ago

jmrico01 commented 3 years ago

Describe the bug My main Windows PC has Installed Compiler Build: 1259, and my Windows laptop has Installed Compiler Build: 1262, which is the latest version. 1259 builds the map as expected - all the custom objects and modified defaults are added to the map, and I can see them in the objectEditingOutput/WurstExportedObjects_w*a.wurst.txt files. For the exact same project, 1262 builds the custom objects just fine, but only includes 1 modified default object for all object categories. This is reflected both in the war3map.w3* binaries in the map MPQ and in the objectEditingOutput/WurstExportedObjects_w*a.wurst.txt files.

I'm attaching the built map and objectEditingOutput for each version, as well as the compiler.log file. languageServer.log was empty for both compiler versions.

If the issue isn't too obvious and you need to actually reproduce the build, I can give you access to the project. Just don't have too much time atm. Here's the base map I'm using, for good measure: base.zip

EDIT: I tested a build with 1262 using only the base.w3x and a very vanilla war3map.j, no custom objects at all, and the issue still happens. Should be easy to reproduce on your end.

Frotty commented 3 years ago

probably aadcf2905d4fab61ee6c05a010a3393cb29fc86c is the cause then, but I don't see exactly why.

jmrico01 commented 3 years ago

maybe this? idk! https://github.com/wurstscript/WurstScript/commit/aadcf2905d4fab61ee6c05a010a3393cb29fc86c#diff-a431aa1b9398e51369f3b3d4418b9f3c1804c503269b3a3f6f6e8f936e57bf67L18