-
Notifications
You must be signed in to change notification settings - Fork 735
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
[Explosives] Self-Interaction Menu Breaking #7637
Comments
I just noticed that it also occurs when opening the self-interaction menu at all when an explosive is in your inventory, not just when hovering over an explosive. |
RPT is missing |
ArmA updated to 1.98.146303 today, so I made a new RPT file. |
Can confirm this, i think it has to do with how init.sqfReport_Data = {
params [
"_event"
];
_log = {
params [
"_cap",
"_msg"
];
diag_log (format ["%1: %2", _cap, _msg]);
};
private _cache = missionNamespace getVariable ["ace_common_clearCache_cba_events_loadoutEvent", nil];
private _actions = ACE_player getVariable ["ace_explosives_explosiveActions", []];
diag_log (format ["########## %1 ##########", _event]);
diag_log (format ["player == %1", player]);
diag_log (format ["ACE_player == %1", ACE_player]);
["ace_common_clearCache_cba_events_loadoutEvent", _cache] call _log;
["ace_explosives_explosiveActions", _actions] call _log;
};
if (hasInterface) then {
// Loadout event tracker ....
LoadoutEH = [
"cba_events_loadoutEvent", {
["cba_events_loadoutEvent"] call Report_Data;
}] call CBA_fnc_addEventHandler;
// ACE death event tracker ....
DeathEH = [
"ace_medical_death", {
["ace_medical_death"] call Report_Data;
// [ACE_player, "ace_explosives_explosiveActions"] call ace_common_fnc_eraseCache;
}] call CBA_fnc_addEventHandler;
// Respawn event tracker ....
RespawnEH = (player addEventHandler [
"Respawn", {
["Respawn"] call Report_Data;
// [{[ACE_player, "ace_explosives_explosiveActions"] call ace_common_fnc_eraseCache;}, [], 1] call CBA_fnc_waitAndExecute;
0 spawn {
["Pre-Cleared"] call Report_Data;
diag_log "Waiting for 'ACE_player' to become 'player' ....";
waitUntil {ACE_player == player};
diag_log "Clearing ace_explosives_explosiveActions variable ....";
[ACE_player, "ace_explosives_explosiveActions"] call ace_common_fnc_eraseCache;
["Cleared"] call Report_Data;
};
}]
);
// Killed event tracker ....
KilledEH = (player addEventHandler [
"Killed", {
["Killed"] call Report_Data;
// [{[ACE_player, "ace_explosives_explosiveActions"] call ace_common_fnc_eraseCache;}, [], 1] call CBA_fnc_waitAndExecute;
}]
);
}; Logging output
Adding a |
Thanks a bunch for the workaround until this gets fixed! Cheers |
Shouldn't it be } else {
_cacheList pushBack [_namespace, _uid];
missionNamespace setVariable [_varName, _cacheList];
}; at the end of this statement ACE3/addons/common/functions/fnc_cachedCall.sqf Lines 34 to 54 in 64de038
since the missionNamespace var ("ace_common_clearCache_cba_events_loadoutEvent" in this case) never gets updated with the new _cachelist , if it exists ?
|
No? pushBack modifies by reference. And the reference already came from the misionNamespace variable. |
Thanks for the clarification, thought |
Closing as fixed by #7739 . |
Mods
1.96.146114
3.15.0
3.13.1
Description:
After hovering your cursor over the Explosives portion of the ACE Self Interaction Menu then dying, the Explosives Tab will be permanently stuck with whatever options you had upon death. This persists regardless of dying again or dropping/gaining any explosives. Also, upon acquiring new explosives, the option to place them does not get added to your menu.
Steps to reproduce:
-Take any explosive
-Open self interaction menu and hover cursor over explosive, but do not place it
-Die in any fashion or press respawn from the menu
Expected behavior:
-Upon respawning, your explosives menu should reset but does not.
Where did the issue occur?
Video
https://www.youtube.com/watch?v=SfTBHNMH19g
The text was updated successfully, but these errors were encountered: