gangolf 10 Posted June 7, 2017 Hey Guys, i hope you can help me to get rid of this error. I hope it is something simple and i'm don't see it. I try to add ACIM (http://www.armaholic.com/page.php?id=27355) to the ACE3 Interaction menü. In Singleplayer / Editor everthing works fine (sorry for the german) But as soon i start it as multiplayer / on a dedicated server i get this erros in my rpt file: Spoiler _namespace setVariable [_objectType, _actions]; > Error position: <setVariable [_objectType, _actions]; > Error Reserved variable in expression File z\ace\addons\interact_menu\functions\fnc_compileMenuSelfAction.sqf, line 117 Error in expression <") then { _actionTrees = []; _namespace setVariable [_objectType, _actionTrees];> Error position: <setVariable [_objectType, _actionTrees];> Error Reserved variable in expression File z\ace\addons\interact_menu\functions\fnc_addActionToClass.sqf, line 39 [ACE] (interact_menu) ERROR: Failed to add action - action (civ_stop) to parent ["ACE_SelfActions","CivIntself"] on object [1] z\ace\addons\interact_menu\functions\fnc_addActionToClass.sqf:67 Mission id: f792af12e2d2992a964a4332ec3f9c8aa1b04eee Warning: Cleanup player - person 2:377 not found To add all the Ace options i use this script: Spoiler //Interaction with CIV _action = ["CivInt", "Civilian Interaction", "\z\ace\addons\interaction\UI\team\team_management_ca.paa",{}, {true}] call ace_interact_menu_fnc_createAction; ["C_man_w_worker_f", 0, ["ACE_MainActions"], _action, true] call ace_interact_menu_fnc_addActionToClass; _action = ["checkid", "Pass kontrolieren", "", {createDialog "ACIM_Info"}, {true}] call ace_interact_menu_fnc_createAction; ["C_man_w_worker_f", 0, ["ACE_MainActions","CivInt"], _action, true] call ace_interact_menu_fnc_addActionToClass; _action = ["Befragen", "Befragen", "", {execVM "CW_ACIM\Scripts\Question\question_civ.sqf"}, {true}] call ace_interact_menu_fnc_createAction; ["C_man_w_worker_f", 0, ["ACE_MainActions","CivInt"], _action, true] call ace_interact_menu_fnc_addActionToClass; _action = ["search", "Durchsuchen", "", {execVM "CW_ACIM\Scripts\Search\checkshirt.sqf"}, {true}] call ace_interact_menu_fnc_createAction; ["C_man_w_worker_f", 0, ["ACE_MainActions","CivInt"], _action, true] call ace_interact_menu_fnc_addActionToClass; //Selfinteraction _action = ["CivIntself", "Civilian Interaction", "\z\ace\addons\interaction\UI\team\team_management_ca.paa", {}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions"], _action] call ace_interact_menu_fnc_addActionToClass; _actionmain = ["civ_ground", "Auf den Boden!", "", {[_player] execVM "CW_ACIM\Scripts\Movement\getdown.sqf"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; _actionmain = ["civ_surrender", "Hände hoch!", "\z\ace\addons\captives\UI\Surrender_ca.paa", {[_player] execVM "CW_ACIM\Scripts\Movement\surrender.sqf"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; _actionmain = ["civ_stand_up", "Aufstehen!", "", {[_player] execVM "CW_ACIM\Scripts\Movement\getup.sqf"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; _actionmain = ["civ_stop", "Stehenbleiben!", "", {[_player] execVM "CW_ACIM\Scripts\Movement\stop.sqf"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; _actionmain = ["civ_go", "Sie können gehen!", "", {[_player] execVM "CW_ACIM\Scripts\Movement\go.sqf"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; //Admin Menu AdminUIDs = []; if ((getPlayerUID player) in AdminUIDs) then { _actionmain = ["admin_console", "Admin Konsole", "", {createDialog "ACIM_ADMIN_MENU"}, {true}] call ace_interact_menu_fnc_createAction; [typeOf player, 1, ["ACE_SelfActions", "CivIntself"], _actionmain] call ace_interact_menu_fnc_addActionToClass; }; I know this part is very very basic, because i tried to reduce other possible error sources. I hope it is a fucking dump mistake and sorry for my bad english. Download Sample Mission: https://www.dropbox.com/s/hyhqsik17lhrpbx/ACIM-ACE-Extension-Test.Stratis.pbo?dl=0 Thx for reading so far! Greetings Gangolf Share this post Link to post Share on other sites
gangolf 10 Posted June 8, 2017 I was able to find the problem but still don't know how to resolve it :( The Problem is not the ACE Menu, it is the script which execute the commands. For example: [_player] execVM "CW_ACIM\Scripts\Movement\stop.sqf" // _player is the caller _caller = _this select 0; _pos = getpos _caller; _nearZiv = _pos nearObjects ["civilian",50]; { _x disableAI "Move"}forEach _nearZiv; Don't work but _caller = _this select 0; _pos = getpos _caller; _nearZiv = _pos nearObjects ["civilian",50]; { _x setdammage 1}forEach _nearZiv; is working Any Ideas? Share this post Link to post Share on other sites
gangolf 10 Posted June 8, 2017 Please close this thread.. i'am dump as fuck ^^ By ACE Interaction executed scripts are only local... so i changed the exec command to [[[_player], "CW_ACIM\Scripts\Movement\surrender.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; and it works now..! Gangolf Share this post Link to post Share on other sites
Emmanouil Ek 0 Posted December 10, 2021 Hello @gangolf! Did your solution work? Does it work on dedicated server also? If I may ask, could you upload the fixed version of the script? Share this post Link to post Share on other sites
TylerBrown 0 Posted August 12, 2022 @Emmanouil Ek the solution is above your comment ^^^^^^ Share this post Link to post Share on other sites