Yes i´m pretty sure
![Laughing :lol:](./images/smilies/lol.gif)
i dont think that Luaerrors are listed there and you can use like 99% of old Luacode because luachanges are really rare.
If you have a Luacrash it doesnt crash like normal, instead you will have a Message ingame and find an Errormessage in the Lua.log
The error on my map is because of the Interior rules wich i added to the map.
No Airunits or ships needed in Rooms so i removed the Naval AI too, wich is maybe renamed in the yamlcode meanwhile, you can see the errormessage if you click on the red Lintcheck letters in resource center. ctrl F error
But you only need 2 Lines for your rules.yaml to add the ants:
Code: Select all
World:
LuaScript:
Scripts: Brunsbuettel.lua
and of course add the luafile to your mapfolder.
by the way the ants will not come at start but at a randomtime between 0 and 180 Seconds, you can see this in the WorldLoaded function on the bottom of the file, the things in this function happen at start.
Code: Select all
Trigger.AfterDelay(DateTime.Seconds(Utils.RandomInteger(0, 180)), function()
You can just change the 180 to 5 and then it will come between 0 and 5 Seconds.
Try
Code: Select all
ActivateAnt1()
ActivateAnt1()
ActivateAnt1()
for more ants
![Wink ;)](./images/smilies/wink.gif)