Hello with the newest feature to World Editor LUA language is it possible that old maps can get trigger conversion from MUI/GUI/JASS/vJASS/ to LUA? I tried to test this but the option in Scenario>Script Language was locked when I opened an old map using GUI/JASS triggers. Therefore conversion from MUI/GUI/JASS/vJASS to LUA. is not possible
We see that old trigger options is slowly being replaced by LUA however there are maps in the past that was made by these trigger options. What will happen when reforged is live?
The biggest challenge will be to rebuild the old maps and their triggers with LUA and keep playing old maps instead of building maps from scratch.
There are a few bugs with JASS2Lua. The developers have been made aware of them so hopefully by the release version of 1.31 most will be fixed.
There might be some sort of limitation for this to be locked. Maybe the triggers used a feature which is not supported by JASS2Lua.
Try importing the triggers into a new map which is explicitly specified as Lua and saving with JassHelper enabled. Feed back any errors produced.
Old maps will use the JASS2 virtual machine, the same one they have always used. New/updated maps have the option to use the new Lua virtual machine. GUI, JASS and vJASS triggers automatically transpile to Lua in this mode.
Currently on the 1.31 PTR there is a bug that prevents one using Lua with JassHelper enabled since JassHelper is not ignoring the Lua during vJASS transpile stage. This should hopefully be fixed in the future allowing one to select if custom script is JASS/vJASS or Lua.
To make it clear, the map build process for Lua is as follows…
GUI → JASS2 map script -[JASS2Lua]-> Lua map script
With JassHelper enabled it should be as follows…
GUI → vJASS map script -[JassHelper]-> JASS2 map script -[JASS2Lua]-> Lua map script
Sorry to ask lets say we have an old map with old vJASS/JASS/GUI/MUI and you want to update your map. Do you have to touch the old triggers and rebuild them with LUA and if you want to make new triggers using LUA. WIll this somehow cause errors?
Sorry maybe I wasn’t able to explain since ENGLISH is not my native. Point is this: If you want to update your old map and put new triggers using LUA to your map but you have triggers already in the past like GUI/JASS/vJASS/MUI do you have to rebuild them using LUA? Will this cause issues if you keep both GUI/JASS/vJASS/MUI and LUA at the same time?
You will need to explicitly set the map to use Lua instead of JASS. However after you have done that you can add new Lua triggers or rewrite existing ones to use Lua. All other triggers will be compiled to JASS first and then that resulting JASS transpiled to Lua as part of the main map script during map save.
This process is currently not fully implemented. Specifically one cannot mix vJASS and Lua in the standard editor as the Lua is not being formatted to pass through JassHelper or to be included later after the JASS2Lua transpile is finished. This should be fixed later. One can currently mix GUI, normal JASS and Lua perfectly minus a few transpiler bugs which should be fixed soon.