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. I have tried finding them with "WeaponHolder", "WeaponHolderSimulated" and "GroundWeaponHolder" but to no avail.
I am concerned they would be slowing down my game (although the fps seems fine on the server (DEBUG fps)... but it does drop earlier in the game.
Should I be worried? Have I missed something? The ever increasing nature of these make me worry.
(Ah - just a thought actually, I do create a lot of vehicles (respawning them) and use createVehicleCrew to crew them - a lot of these objects are those and I haven't added to the remains collector(? Does this really work?) and I may have deleted a few groups before deleting all the dead in the group.... if I run
{diag_log format["%4 Deadmen: %1, %2, %3", _x, typeOf _x, group _x, _forEachIndex]} forEach allDead;
in the console it produces:
10:50:24 "0 Deadmen: 1ad813b1500# 1813642: b_soldier_01.p3d, B_Soldier_F, <NULL-group>"
10:50:24 "1 Deadmen: 1adb814e2c0# 1813645: o_soldier_01.p3d, O_crew_F, <NULL-group>"
10:50:24 "2 Deadmen: 1ad813c18c0# 1813651: o_soldier_01.p3d, O_crew_F, <NULL-group>"
So they all belong to GrpNull.....hmmm. Any clues?
I am sort of using this thread as a 'note to self' but if anyone else can chip in I would be grateful!
Atmo