Page MenuHomeFeedback Tracker

Increasing 'AllDead' and 'AllDeadmen' collections during game - can't deleteVehicle
Reviewed, NormalPublic

Description

Hi all,

I have left a dedicated server running overnight for testing purposes and during the game (AI fight AI) I have logged some numbers. It seems that the AllDead and AllDeadMen collections just keep on getting bigger and I can't delete them with

{deleteVehicle _x} forEach AllDead(men)

For example in my .rpt file I have at the beginning of the game:

1:16:15 "------- 30.127 secs ------------------------------------------------------------"
1:16:15 "DEBUG: fps: 48.7805"
1:16:15 "DEBUG: AllUnits: 54"
1:16:15 "DEBUG: AllGroups: 23"
1:16:15 "DEBUG: AllVehicles: 16"
1:16:15 "DEBUG: AllDead: 1"
1:16:15 "DEBUG: AllDeadMen: 1"
1:16:15 "DEBUG: Scripts: [3,2,0,0]"
1:16:15 "DEBUG: Scripts:

and after 8 hours or so I have:

10:40:07 "------- 33856 secs ------------------------------------------------------------"
10:40:07 "DEBUG: fps: 48.4848"
10:40:07 "DEBUG: AllUnits: 293"
10:40:07 "DEBUG: AllGroups: 102"
10:40:07 "DEBUG: AllVehicles: 5"
10:40:07 "DEBUG: AllDead: 1562"
10:40:07 "DEBUG: AllDeadMen: 1562"
10:40:07 "DEBUG: Scripts: [15,2,0,0]"

If I use the console to try and debug using:

{diag_log format["%4 Deadmen: %1, %2, %3", _x, typeOf _x, _x getVariable "effects", _forEachIndex]} forEach allDead;
and use server exec; I get a report like:

"0 Deadmen: O Bravo 1-1:1, O_Soldier_TL_F, <null>"
10:37:10 "1 Deadmen: B Bravo 2-2:3, B_Soldier_GL_F, <null>"
10:37:10 "2 Deadmen: 1aca6761940# 2096805: o_soldier_01.p3d, O_Soldier_AR_F, <null>"
10:37:10 "3 Deadmen: 1acabff95c0# 2098210: o_soldier_01.p3d, O_Soldier_GL_F, <null>"
10:37:10 "4 Deadmen: 1acabb31640# 2103841: b_soldier_01.p3d, B_Soldier_GL_F, <null>"
10:37:10 "5 Deadmen: O Alpha 3-3:1, O_Soldier_AT_F, <null>"
10:37:10 "6 Deadmen: B Alpha 1-1:3, B_crew_F, <null>"
10:37:10 "7 Deadmen: 1acbb588fc0# 2110146: b_soldier_03.p3d, B_Soldier_TL_F, <null>"
10:37:10 "8 Deadmen: B Alpha 4-4:4, B_soldier_AR_F, <null>"
10:37:10 "9 Deadmen: 1ad813b1500# 1813642: b_soldier_01.p3d, B_Soldier_F, <null>"
10:37:10 "10 Deadmen: 1adb814e2c0# 1813645: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "11 Deadmen: 1ad813c18c0# 1813651: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "12 Deadmen: 1ad81549a00# 1813657: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "13 Deadmen: 1ad81594100# 1813666: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "14 Deadmen: 1ad816306c0# 1813687: b_soldier_01.p3d, B_Soldier_F, <null>"
10:37:10 "15 Deadmen: 1ad7c5a8c00# 1813702: b_soldier_03.p3d, B_crew_F, <null>"
10:37:10 "16 Deadmen: 1ad7c625180# 1813729: b_soldier_03.p3d, B_crew_F, <null>"
10:37:10 "17 Deadmen: 1ad7c605340# 1813738: b_soldier_03.p3d, B_crew_F, <null>"
10:37:10 "18 Deadmen: 1ad7c6a1700# 1813756: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "19 Deadmen: 1ad7c5b1300# 1814984: o_soldier_01.p3d, O_Soldier_F, <null>"
10:37:10 "20 Deadmen: 1adf8536b80# 1814987: o_soldier_01.p3d, O_Soldier_F, <null>"
10:37:10 "21 Deadmen: 1ad81601980# 1816394: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "22 Deadmen: 1ad759b1a00# 1816397: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "23 Deadmen: 1ad764d4380# 1816407: o_soldier_01.p3d, O_crew_F, <null>"
10:37:10 "24 Deadmen: 1ad7f858ac0# 1816632: o_soldier_01.p3d, O_Soldier_F, <null>"
10:37:10 "25 Deadmen: 1ad723f4b80# 1816635: o_soldier_01.p3d, O_Soldier_F, <null>"

etc up to...

10:37:11 "1548 Deadmen: 1aca7df4280# 2109613: o_soldier_01.p3d, O_crew_F, <null>"
10:37:11 "1549 Deadmen: 1acb72f4180# 2110083: o_soldier_01.p3d, O_crew_F, <null>"
10:37:11 "1550 Deadmen: 1acbb400300# 2110089: o_soldier_01.p3d, O_crew_F, <null>"
10:37:11 "1551 Deadmen: 1aca6f24f40# 2110771: b_soldier_03.p3d, B_crew_F, <null>"

I'm also getting a lot of

10:43:26 Server: Object 2:32971 not found (message Type_93)
10:43:26 Server: Object 2:32970 not found (message Type_93)
10:43:26 Server: Object 2:32967 not found (message Type_93)
10:43:26 Server: Object 2:31427 not found (message Type_121)
10:43:26 Server: Object 2:32954 not found (message Type_121)
10:43:26 Server: Object 2:29991 not found (message Type_121)

messages.

I just can't seem to delete these objects.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10
Category
General
Steps To Reproduce
Additional Information

Event Timeline

Atmo added a subscriber: Atmo.Aug 2 2017, 11:10 PM
razazel claimed this task.Aug 3 2017, 9:31 AM
razazel changed the task status from New to Reviewed.
razazel added a subscriber: razazel.

Thank you very much, we will look into that.

Atmo added a comment.Aug 3 2017, 6:13 PM

Hi, Just to update. It seems to me that that when an AI soldier gets killed inside a vehicle in a MP environment that there is a chance that the object gets lost by the server? It seems to join GrpNull and the owner may change to 0. This object gets added to the AllDead array but can't be deleted by deleteVehicle.

dedmen added a subscriber: dedmen.Sep 11 2017, 1:07 PM

Have you tried calling getVehicle on the Owners machone? The Server for example?
It might be that you indeed can't delete them because the Server owns them.