Same behavior as there : viewtopic.php?f=3&t=7814 but the bug never went away when I set myself to unassigned team.
here is the game.log
Forged Alliance Forever Forums
Moderators: FtXCommando, Stups
warning: Error running lua script: ...\maps\x1ca_coop_001_v07\x1ca_coop_001_v07_script.lua(1616): access to nonexistent global variable "exp"
stack traceback:
[C]: in function `error'
...alliance\gamedata\mohodata.scd\lua\system\config.lua(53): in function <...alliance\gamedata\mohodata.scd\lua\system\config.lua:52>
...\maps\x1ca_coop_001_v07\x1ca_coop_001_v07_script.lua(1616): in function `M3CounterAttack'
...\maps\x1ca_coop_001_v07\x1ca_coop_001_v07_script.lua(1446): in function <...\maps\x1ca_coop_001_v07\x1ca_coop_001_v07_script.lua:1378>
# sends [1, 2, 3] strat bomber groups at each hlra
if(total < quantity[Difficulty]) then
for _, player in ScenarioInfo.HumanPlayers do
local exp = ArmyBrains[player]:GetListOfUnits(categories.TECH3 * categories.ARTILLERY * categories.STRUCTURE, false)
num = table.getn(exp)
if(num > 0) then
if(num > quantity[Difficulty] - total) then
num = quantity[Difficulty] - total
end
end
end
for i = 1, num do
for j = 1, Difficulty do
units = ScenarioUtils.CreateArmyGroupAsPlatoonCoopBalancedVeteran('Order', 'M2_Main_Adapt_Bomber', 'GrowthFormation', 5)
IssueAttack(units:GetPlatoonUnits(), exp[i])
ScenarioFramework.PlatoonPatrolChain(units, 'M1_Order_E_AirAttack_1_Chain')
local guards = ScenarioUtils.CreateArmyGroup('Order', 'M2_Main_Adapt_StratGuards')
IssueGuard(guards, units:GetPlatoonUnits()[1])
end
total = total + 1
end
end
# sends [1, 2, 3] strat bomber groups at each hlra
if(total < quantity[Difficulty]) then
for _, player in ScenarioInfo.HumanPlayers do
local exp = ArmyBrains[player]:GetListOfUnits(categories.TECH3 * categories.ARTILLERY * categories.STRUCTURE, false)
num = table.getn(exp)
if(num > 0) then
if(num > quantity[Difficulty] - total) then
num = quantity[Difficulty] - total
end
for i = 1, num do
for j = 1, Difficulty do
units = ScenarioUtils.CreateArmyGroupAsPlatoonCoopBalancedVeteran('Order', 'M2_Main_Adapt_Bomber', 'GrowthFormation', 5)
IssueAttack(units:GetPlatoonUnits(), exp[i])
ScenarioFramework.PlatoonPatrolChain(units, 'M1_Order_E_AirAttack_1_Chain')
local guards = ScenarioUtils.CreateArmyGroup('Order', 'M2_Main_Adapt_StratGuards')
IssueGuard(guards, units:GetPlatoonUnits()[1])
end
total = total + 1
end
end
end
end
Users browsing this forum: No registered users and 1 guest