StormCircuit / KP-Lib-Altis-Storm-Edits

Storm's version of the KPLib mission for Arma 3
MIT License
0 stars 0 forks source link

Sectors are not activating and being taken by the enemy during a counter attack #13

Closed StormCircuit closed 3 months ago

StormCircuit commented 3 months ago

Suspect issue is that attacks are hitting sectors which are disables. This leads to lockup state wherein the attack is attacking a sector which cannot be captured since it is not active.

Part of this has to die with the range within which sectors can be active. With a range of ~3 Kilometers then sectors never disable in the local area causing sectors to lock up infinitely.

StormCircuit commented 3 months ago

Check public variable active_sectors next time it gets stuck

StormCircuit commented 3 months ago

manage_one_sector begins in sectorMonitor.fsm which is seemingly called from CfgFunctions.hpp. It is not cleared how the FSM is started since init_server calls KPLIB_fnc_sectorMonitor which is not defined anywhere

edit: functions are defined as per this convention: https://community.bistudio.com/wiki/Arma_3:_Functions_Library

StormCircuit commented 3 months ago

Defenders are not spawning either on player side or enemy side regardless of who activates a sector. getSectorOwnership and getUnitsCount appear to be having issues

StormCircuit commented 3 months ago

It seems 523ae53 has fixed the issue