Jump to content

0.31 Fighter Tutorial - buying fighters does not progress quest


deadok

Recommended Posts

Beta 0.31 r20056 902ae9fd220c

 

Apparently there is data race somewhere around "data\scripts\player\missions\tutorials\fightertutorial.lua" "onFighterAdded"

Somehow I've managed to get  armedFighterCount to 27 without triggering condition. At that moment i had 16 or 17 armed fighters and 6 unarmed in hangar (does moving fighters from squad to squad also trigger onFighterAdded?). As a workaround

...
    if mission.data.custom.buyMiningFighters and mission.data.custom.miningFighterCount == 3 then
...
    elseif mission.data.custom.buyArmedFighters and mission.data.custom.armedFighterCount == 3 then
...
    end
...

both checks should be ">="

Link to comment
Share on other sites

  • 2 weeks later...

Also, warzonecheck.lua:192

    if not victim.type == EntityType.Fighter then return end

Since it make no sense to compare boolean value to enumeration - either parentheses are missing (which would break logic) or 'not' shouldn't be here 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...