Summary
Server-side fix for a vanilla bug in AI enemy map marking that disconnects all players at once (L2 live connection timeout). Blocks null map markers and cleans up any that already got in.
Description
Fixes a vanilla bug in Arma Reforger 1.9 that disconnects every player on the server at the same time.
The problem: when AI groups mark spotted enemies on the map, SCR_AIEnemyMarkingSystem.MarkTarget does not check whether the marker was created. If the target's faction has no military marker entry (for example, a civilian-faction vehicle driven by a player in Freedom Fighters), a null marker is inserted into the replicated marker list. All clients then time out within ~20 seconds, and the server keeps throwing errors (GetStaticMarkerByID, RplSave on every join) until it is restarted.
What this mod does:
- Skips AI marking when the target has no faction, the spotting group has no leader, or no military marker exists for that faction.
- Blocks null markers from being inserted into the static marker list.
- Removes null entries already in the list before marker lookups and before join snapshots.
Gameplay is unchanged. AI keeps marking every target it could mark before. Each skipped or cleaned marker is logged with the [FTF_MarkerFixes] prefix.
Depends only on Arma Reforger. Compatible with Freedom Fighters, Reoccupation, DarcMissions and other mods.
License
Arma Public License (APL)