lawman_actual 24 Posted October 6, 2019 Hey all I've been putting together a scenario and am getting significant issues with units not belonging to a group, or having a name. Some key observations; 1) Attempting to switch to a known AI unit does nothing. No script error, no .rpt log. For example: select player engineers_1 2) Testing for nil variable for a known unit returns false. For example, the following returned "unit is not nil": if (isNil "engineers_1") then {systemChat "Unit is Nil";} else {systemChat "Unit is not Nil";}; 3) Testing for isNull unit returns false. For example, the following returned "unit is not null": if (isNull engineers_1) then {systemChat "Unit is Null";} else {systemChat "Unit is not Null";}; 4) Bugged units do register as alive. The following returns as "unit is alive"; if (alive engineers_1) then {systemChat "Unit is alive";} else {systemChat "Unit is not alive";}; 5) Bugged units do not belong to any group. For example, the following returned "<NULL-group>"; systemChat str group engineers_1; 6) Bugged units do not have a name. For example, the following returned "Error: No Unit". systemChat str name engineers_1; This is leading to various issues when checking whether certain actions can be shown, and is meaning a function which draws unit name tags for AI is not working. Sample from mission init: //Make sure player is initialised properly waitUntil {!(isNull player);}; waitUntil {alive player;}; //Specifics _pilotUnits = [ "us_inf_valliant_1", "us_inf_valliant_2" ]; _rpt = format ["[LAW] Assessing unit name to add helo service. Name: %1",str player]; [_rpt] remoteExec ["diag_log",0,false]; if ((str player) in _pilotUnits) then {execVM "scenario\addHeloService.sqf";}; if ((str player) == "us_inf_fallow1_1") then {player execVM "scenario\addEndex.sqf";}; //Name tags _0 = [] spawn { sleep 3; execVM "framework\interface\unitLabelsInit.sqf"; }; Samples of errors: 15:41:39 Cannot create object 2:2 with type[AIUnit], param[unit], NMT code[112]: 15:41:44 Cannot create object 2:1282 with type[AISubgroup], param[subgroup], NMT code[107]: 15:41:44 Cannot create object 2:1283 with type[AISubgroup], param[subgroup], NMT code[107]: 15:41:44 Cannot create object 2:1338 with type[AIUnit], param[unit], NMT code[112]: 15:41:44 Cannot create object 2:1339 with type[AIUnit], param[unit], NMT code[112]: 15:41:44 Cannot create object 2:1340 with type[AIUnit], param[unit], NMT code[112]: 15:41:45 SetFace error: class CfgFaces.Man_A3.gm_face_whiteHead_01 not found 15:41:45 Error: Error during SetFace - class CfgFaces.Man_A3.gm_face_whiteHead_01 not found 15:41:45 Setting invalid pitch -0.0000 for L Alpha 1-1:1 REMOTE 15:41:45 Setting invalid pitch 0.0000 for L Alpha 1-3:1 REMOTE 15:41:45 Setting invalid pitch 0.0000 for L Alpha 1-3:2 REMOTE 15:41:49 Client: Object 2:1337 (type Type_114) not found. 15:41:49 Client: Object 2:1282 (type Type_108) not found. 15:41:49 Client: Object 2:1338 (type Type_113) not found. 15:42:21 WARNING: Function 'name' - 211c6fd0480# 2900537: b_soldier_01.p3d REMOTE has no unit 15:42:21 - network id 2:1269 15:42:21 - person 15:42:21 WARNING: Function 'name' - 211c6fd0480# 2900537: b_soldier_01.p3d REMOTE has no unit 15:42:21 - network id 2:1269 15:42:21 - person 15:42:21 WARNING: Function 'name' - 211c6fd0480# 2900537: b_soldier_01.p3d REMOTE has no unit 15:42:21 - network id 2:1269 15:42:21 - person Important to note that these type of errors continue well after mission init, while the others seem limited to mission start. 16:35:25 Client: Object 2:4993 (type Type_113) not found. 16:35:26 Client: Object 2:4779 (type Type_108) not found. 16:35:27 Client: Object 2:4990 (type Type_114) not found. 16:35:27 WARNING: Function 'name' - engineers_1 has no unit 16:35:27 - network id 2:4727 16:35:27 - person 16:35:28 Client: Object 2:4998 (type Type_114) not found. 16:35:28 Client: Object 2:4992 (type Type_114) not found. 16:35:29 Client: Object 2:4783 (type Type_108) not found. 16:35:29 Client: Object 2:4784 (type Type_108) not found. I would like to know if anyone knows more about this kind of issue, what's causing it and how to avoid it if possible. No matter what I do right now, the groups never seems to initialise and the units never get names, even many minutes into testing. In a weird setup...the issue only seems to be occuring for AI on the WEST side at the moment...those on EAST are appearing fine on the spectator cam. Cheers, -Law Share this post Link to post Share on other sites
lawman_actual 24 Posted October 6, 2019 Point I forgot to test: The units DO have names on the server, though the server still says they are in <Null-group> Share this post Link to post Share on other sites
lawman_actual 24 Posted October 6, 2019 Some further developments: I fashioned the following to try and capture the unit name from where the unit is local and return it to the client. This is only part of the script, but it fired on the server as you will see later: if (isServer) then { ["[TAG] Found to be running on server."] remoteExec ["diag_log",0,false]; if (local _unit) then { ["[TAG] Unit found to be local."] remoteExec ["diag_log",0,false]; _name = name _unit; _groupName = groupID _unit; [format ["[TAG] Details found: %1 | %2.",_name,_groupName]] remoteExec ["diag_log",0,false]; [[_unit,_name,_groupName,_origin],"framework\interface\returnUnitDetails.sqf"] remoteExec ["execVM",_origin,false]; } else { ["[TAG] Unit not found to be local."] remoteExec ["diag_log",0,false]; [[_unit,"","",_origin],"framework\interface\returnUnitDetails.sqf"] remoteExec ["execVM",owner _unit,false]; }; } In the .rpt file, the following was logged after mission launch: 18:08:43 Mission id: 92c917f23f9a94172f0dba2621e7bbf594af1c3c 18:08:43 Setting invalid pitch -0.0000 for B Alpha 3-1:1 REMOTE 18:08:43 Setting invalid pitch -0.0000 for B Alpha 3-1:2 REMOTE 18:08:43 Setting invalid pitch -0.0000 for B Alpha 3-1:3 REMOTE 18:08:45 You are missing the following mod: cba_main 18:09:08 WARNING: Function 'name' - 1ade4ccf700# 2900532: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9914 18:09:08 - person 18:09:08 "[TAG] Confirmed not currently checking for unit name." 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 "[TAG] Confirmed not currently checking for unit name." 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 "[TAG] Launched return unit name for B Misfit 1 Alpha:9." 18:09:08 "[TAG] Origin not set." 18:09:08 "[TAG] Setting origin to: 9." 18:09:08 "[TAG] Found to be running on server." 18:09:08 "[TAG] Unit found to be local." 18:09:08 "[TAG] Launched return unit name for B Misfit 1 Alpha:10." 18:09:08 "[TAG] Origin not set." 18:09:08 "[TAG] Setting origin to: 9." 18:09:08 "[TAG] Found to be running on server." 18:09:08 "[TAG] Unit found to be local." 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:08 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:08 - network id 2:9919 18:09:08 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:09 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:09 - network id 2:9919 18:09:09 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person 18:09:10 WARNING: Function 'name' - 1ade4cd3740# 2900537: b_soldier_01.p3d REMOTE has no unit 18:09:10 - network id 2:9919 18:09:10 - person The script successfully entered the scope wherein the unit is local and it tries to obtain unit name and groupId, however does execute the next diag_log function where it reports back with "details found", indicating that the script terminated in some form despite no script error being shown. Share this post Link to post Share on other sites
killzone_kid 1330 Posted October 6, 2019 2 hours ago, lawman_actual said: select player engineers_1 Invalid syntax, you probably want selectPlayer Share this post Link to post Share on other sites
lawman_actual 24 Posted October 6, 2019 2 hours ago, killzone_kid said: Invalid syntax, you probably want selectPlayer Quite right, though I feel that isn't my main concern 😋 Share this post Link to post Share on other sites
lawman_actual 24 Posted March 8, 2020 oh, FYI: I discovered this seemed to result from issuing doStop commands in the init fields of groups or units. Haven't done much testing since but executing doStop's in other places seemed to resolve the issue. -Law Share this post Link to post Share on other sites