deadok Posted January 24, 2020 Share Posted January 24, 2020 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 More sharing options...
deadok Posted February 2, 2020 Author Share Posted February 2, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now