@foxy_pj said in Need help with Ai to upgrade buildings.:
WARNING: *AIExecuteBuildStructure: TECH1 Unit "euebest3" is assigned to build TECH3 buildplatoon! ("EnergyStorage")
This error is caused by customunits files.
EnergyStorage = {
UEF = {'euebest3', 50},
},
The unit euebest3 is assigned to the buildingtemplate EnergyStorage.
EnergyStorage is a tech 1 buildingtemplate and will be assigned to a TECH1 engineer.
T2EnergyStorage = {
},
T2EnergyStorage is an non existing buildingtemplate. This will not work.
The custom unit tables can only add buildings to an existing buildingtemplate.
you can't create new names like T2EnergyStorage.
If you want to add new buildingtemplates then you need to hook this file:
https://github.com/FAForever/fa/blob/7542596ea1c16be28615fdc40cc9bf9c8bb5481a/lua/BuildingTemplates.lua
Have in mind the AI will not build those new buildingtemplates until you add a seperate platoonbuilder for it.
Did you read the rules for maps/mods on FAF ?
https://forum.faforever.com/topic/607/faf-mod-vault-rules-regulations
Repackaging the work of another author, or multiple authors, into one modification is not permitted unless you are the explicit owner of all content involved.