Missing keybind in menu and script error on mission start #258

Closed
commy2 opened this Issue Feb 7, 2016 · 4 comments

Projects

None yet

2 participants

@commy2
Contributor
commy2 commented Feb 7, 2016

This was reported multiple times already, but no one bothered to post a RPT. The root cause for it was already fixed, but there are still people out there that occasionally have the issue, due to these entries remaining in the profileNamespace.

15:27:29 Error in expression <_mod = _keyBind select 1;
_shift = _mod select 0;
_ctrl = _mod select 1;
_alt = >
15:27:29   Error position: <select 0;
_ctrl = _mod select 1;
_alt = >
15:27:29   Error select: Type Number, expected Array,String,Config entry
15:27:29 File x\cba\addons\help\XEH_postClientInit.sqf, line 64
@commy2 commy2 added the bug label Feb 7, 2016
@commy2 commy2 self-assigned this Feb 7, 2016
@commy2 commy2 added the Keybinding label Feb 11, 2016
@Glowbal
Contributor
Glowbal commented Feb 13, 2016
22:34:33 [ACE] (medical) INFO: JIP Medical init for player.
22:34:33 Error in expression <_mod = _keyBind select 1;
_shift = _mod select 0;
_ctrl = _mod select 1;
_alt = >
22:34:33   Error position: <select 0;
_ctrl = _mod select 1;
_alt = >
22:34:33   Error select: Type Bool, expected Array,String,Config entry
22:34:33 File x\cba\addons\help\XEH_postClientInit.sqf, line 64
22:34:33 [23209,114.512,0.15,"CBA_VERSIONING_SERVER: cba=2.2.0.151130, "]

Entries look like:

1:52:27 "["Wipe Goggles",[20,true,true,false],[20,[true,true,false]]]"
 1:52:27 "["Altimeter",[24,false,false,false],[24,[false,false,false]]]"

Should be like:

1:45:56 "["Freeze",[-1,[false,false,false]],[-1,[false,false,false]]]"
 1:45:56 "["Cease Fire",[-1,[false,false,false]],[-1,[false,false,false]]]"

They are left over keybindings from the old system

2:05:30 "----------------------------------"
2:05:30 "["Wipe Goggles",[20,true,true,false],[20,[true,true,false]]]"
2:05:30 "ACE3"
2:05:30 "["Altimeter",[24,false,false,false],[24,[false,false,false]]]"
2:05:30 "ACE3"

Printed with their actionName
note those keybindings do NOT show up on the controls menu
Deleting the userprofile should get rid of the script errors

Proper solution would be to detect the invalid cases and clear them in the profilenamespace.

@commy2
Contributor
commy2 commented Feb 18, 2016
["MyMod", "MyKey2", ["My Pretty Key Name", "My Pretty Tool Tip"], { systemChat str _this; false }, { false }, [15, [false, false, false]]] call cba_fnc_addKeybind;
@commy2
Contributor
commy2 commented Feb 18, 2016
[

["MyKey","MyKey2"],

[
[["My Pretty Key Name","My Pretty Tool Tip"],[any,15],[15,[false,false,false]]],
[["My Pretty Key Name","My Pretty Tool Tip"],[20,[false,false,false]],[15,[false,false,false]]]
]

]
@Killswitch00 Killswitch00 closed this in #265 Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment