@Gladry said in AI-Uveso (v91) - AI mod for FAForever:
@Uveso
Hi Uveso,Yes, fixing whatever unit would be great if the error message mentioned what unit caused the error.
Next AI version has a new error message like:
WARNING: Unit [uel0001] has no BuildCostEnergy in enhancement [HeavyAntiMatterCannon] - "Unknown name" - "<LOC uel0001_desc>Armored Command Unit"
So you can see what unit is causing the error.
if you whant to test it on your own use this:
if not bp.BuildCostEnergy then
WARN('Unit ['..self.UnitId..'] has no BuildCostEnergy in enhancement ['..enhancement..'] - '..repr( self:GetBlueprint().General.UnitName or "Unknown name" )..' - '..repr( LOC(self:GetBlueprint().Description or "Unknown description" ))..' ')
end