nvs / gem

Gem TD+: A Warcraft III Tower Defense
https://discord.gg/PxNNp77
26 stars 2 forks source link

Saving the map in the 1.31 WE replaces the `war3map.j` #457

Open nvs opened 4 years ago

nvs commented 4 years ago

It should be stated that a goal of this project is to allow the map to be opened in the WE and saved. For example, to let people to tinker and adjust values in the Object Editor.

Before the 1.31 patch, Gem could be opened and saved in the WE in a fashion that produced a workable map. In 1.31, however, this is not the case. The war3map.j is replaced by an empty version, and the map no longer functions as intended after saving.

I'm not sure that this issue can be remedied for 1.31. At least, not without more time than I can devote to enabling this minor feature right now. A simple work around is using an MPQ editor to export the Jass file, save changes in the WE, then import it back. And, even then, there could be tooltip damage due to an issue in 1.31.

nvs commented 4 years ago

Probably some sort of Trigger Editor behavior that would allow wrapping the war3map.j. The difficulty would be correctly handling the config and main functions. Now, this would probably work for Jass. Would need to figure out how to do the same for Lua, if any attempt to resolve this issue was to be made.