SMUnlimited / AMAI

Advanced Melee Artificial Intelligence Mod For Warcraft 3
Other
192 stars 31 forks source link

Lua Map Support #207

Open SMUnlimited opened 7 months ago

SMUnlimited commented 7 months ago

Something to consider feasibility of one day so you don't have to switch to Jass first ... would have to buy reforged first :P

jzy-chitong56 commented 7 months ago

In China, map authors mostly rely on third-party editors, which inherit many convenient interfaces(Including real-time networking interaction interface and paid unlocking interface), some of which are implemented through built-in custom libraries. This also means that game ontologies that do not include runtime libraries cannot run these maps, which leads to the inability of Chinese maps to support recast versions. However, Lua can be built into these custom libraries

Additionally, I understand that AI itself does not require Lua, only BJ needs to be converted, but I suspect that the converter may not be able to effectively transpose the BJ of AMAI,Referring to the ready-made Lua file on the w3c map, the declared AI in it is also Jass, so it should be run after compiling and adjusting the transcoder, which may be feasible

jzy-chitong56 commented 7 months ago

https://github.com/uniqss/jasslua https://github.com/actboy168/jass2lua

Not supporting new interfaces, but you can borrow them

jzy-chitong56 commented 7 months ago

There is one more question

Do you still remember my ITEM ICON? I also put a lot of effort into importing it, but eventually found out that AMAI did not import the list file war3map.imp and war3map.w3t during installation

imp file allows the editor to know which files are imported externally, so that they will still be retained when saving the map

Without this file, AMAI will not destroy the original imported file of the map during import, allowing its original model , sound and effects to function properly. However, AMAI's script will also be lost when saving the map as a result

This causes the AMAI map to lose being change to lua by the editor ,if editor can change ai script

FreeTymeKiyan commented 4 months ago

Wonder if LLM's like ChatGPT can help convert jass to lua more easily I really like AMAI. But the thing is it's less attractive to people if it can't run on the latest ladder maps.