official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
218 stars 154 forks source link

The Mystery of Livonias vanished buildings... #1001

Closed Bob-Murphy closed 4 years ago

Bob-Murphy commented 4 years ago

Once upon a time some people were playing Antistasi Livonia on our second server. They were minding their business, doing the usual things. Killing traitors, helping refugees, taking out patrols and roadblocks - the ususal thing, ya know. Suddenly they got shot! They didn't see or hear the enemies coming! Then they saw it! Bullets coming from a building which seemed to be intact. But how could that be?!?

Issue: AI shooting through buildings on Livonia

Possible causes prooven:

Possible cause remaining:

Possible trace:

13:51:14 "Loading Destroyed Buildings: Unable to create ruin for Land_Cargo_Patrol_V2_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Barracks_06_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Shed_Small_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Cargo_Patrol_V2_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Cargo_Patrol_V2_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_spp_Transformer_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Workshop_02_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_Shed_09_F"
13:51:15 "Loading Destroyed Buildings: Unable to create ruin for Land_House_1W02_F"

For more information please look at rpt arma3server_x64_2020-05-02_18-34-41 provided in the corresponding discord channel.

jaj22 commented 4 years ago

Ok, so I found two issues related to loading destroyed buildings:

  1. nearestObject is retarded and sometimes picks another nearby building.
  2. destroyedBuildings is being loaded twice, so every building will log "unable to create ruin" at least once.

However, neither of these can cause the specified symptoms (other than the RPT spam), because there's no desync: At worst, it fails to destroy the correct buildings on load. Every client should still see the same buildings.

Otherwise I have a couple of weirder ideas but more input would help, as it's unlikely that I can replicate the desync problem on the current information:

  1. Is there ever a desync problem with buildings destroyed since the last restart?
  2. Do all human players always see the same thing?