Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSW/Dragging - Handle null objects causing script errors #9529

Merged
merged 2 commits into from Oct 19, 2023

Conversation

PabstMirror
Copy link
Contributor

Fixes:
put down turret and put deleteVehicle this in it's init

  Error Reserved variable in expression
File /z/ace/addons/interact_menu/functions/fnc_addActionToClass.sqf..., line 62
[ACE] (interact_menu) ERROR: Failed to add action - action (ace_csw_magazine) to parent ["ACE_MainActions"] on object  [0]

Discord W-Cephei mentioned

I think there is a bug happening with CSWs. If you load a mission saved with the previous version that had CSWs with the new version you will see this:

And I think it's related but not positive

@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Oct 18, 2023
@PabstMirror PabstMirror added this to the 3.16.1 milestone Oct 18, 2023
@PabstMirror PabstMirror changed the title CSW - Handle static weapon be deleted CSW/Dragging - Handle null objects causing script errors Oct 18, 2023
@PabstMirror
Copy link
Contributor Author

PabstMirror commented Oct 18, 2023

Discord Cpt. M. Powell [26th MEU (SOC)] reported similar issue in dragging but I think it's unrelated but the fix is nearly the same

12:04:25 Error in expression <{
    _actionTrees = [];
    _namespace setVariable [_objectType, _actionTrees];>
12:04:25   Error position: <setVariable [_objectType, _actionTrees];>
12:04:25   Error Reserved variable in expression
12:04:25 File /z/ace/addons/interact_menu/functions/fnc_addActionToClass.sqf..., line 340
12:04:25 [ACE] (interact_menu) ERROR: Failed to add action - action (ace_dragging_carry) to parent ["ACE_MainActions"] on object  [0]
12:04:25 Error in expression <ons] + _actions; 
    };
};

_namespace setVariable [_objectType, _actions];


>
12:04:25   Error position: <setVariable [_objectType, _actions];


>
12:04:25   Error Reserved variable in expression
12:04:25 File /z/ace/addons/interact_menu/functions/fnc_compileMenu.sqf..., line 426

I can reproduce the above with [objNull] call ace_dragging_fnc_initPerson;

@LinkIsGrim LinkIsGrim merged commit d70c049 into master Oct 19, 2023
4 checks passed
@PabstMirror PabstMirror deleted the cswNullStrikesBack branch October 19, 2023 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants