Forged Alliance Forever Forged Alliance Forever Forums 2014-10-05T06:00:34+02:00 /feed.php?f=26&t=7991 2014-10-05T06:00:34+02:00 2014-10-05T06:00:34+02:00 /viewtopic.php?t=7991&p=82716#p82716 <![CDATA[Re: Can't progress in Black Day co-op (again)]]> Statistics: Posted by Deering — 05 Oct 2014, 06:00


]]>
2014-10-05T05:07:55+02:00 2014-10-05T05:07:55+02:00 /viewtopic.php?t=7991&p=82715#p82715 <![CDATA[Re: Can't progress in Black Day co-op (again)]]> Statistics: Posted by Paul Kauphart — 05 Oct 2014, 05:07


]]>
2014-10-04T15:12:32+02:00 2014-10-04T15:12:32+02:00 /viewtopic.php?t=7991&p=82657#p82657 <![CDATA[Re: Can't progress in Black Day co-op (again)]]>
Code:
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>


I had a look at the relevant part of the code :

Code:
    # 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


Problem here, local variable exp is defined in the first for block, and used in the second... Looking at the other similar blocks of that function, and the logic behind, I think the code should be :
Code:
    # 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



I have corrected it in my local version (cf joined file) and see if that works.

Statistics: Posted by Paul Kauphart — 04 Oct 2014, 15:12


]]>
2014-09-30T17:46:20+02:00 2014-09-30T17:46:20+02:00 /viewtopic.php?t=7991&p=82225#p82225 <![CDATA[Re: Can't progress in Black Day co-op (again)]]>
If needed I can try again.

Statistics: Posted by Paul Kauphart — 30 Sep 2014, 17:46


]]>
2014-07-15T16:50:20+02:00 2014-07-15T16:50:20+02:00 /viewtopic.php?t=7991&p=77195#p77195 <![CDATA[Re: Can't progress in Black Day co-op (again)]]> Statistics: Posted by Paul Kauphart — 15 Jul 2014, 16:50


]]>
2014-07-01T02:34:11+02:00 2014-07-01T02:34:11+02:00 /viewtopic.php?t=7991&p=76342#p76342 <![CDATA[Can't progress in Black Day co-op (again)]]> viewtopic.php?f=3&t=7814 but the bug never went away when I set myself to unassigned team.

here is the game.log

Statistics: Posted by Paul Kauphart — 01 Jul 2014, 02:34


]]>