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

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

Closed
commy2 opened this issue Feb 7, 2016 · 4 comments · Fixed by #265
Closed

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

commy2 opened this issue Feb 7, 2016 · 4 comments · Fixed by #265
Assignees
Labels

Comments

@commy2
Copy link
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
Copy link
Contributor Author

commy2 commented Feb 13, 2016

@thojkooi
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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 added a commit that referenced this issue Feb 20, 2016
improve / fix help module, fix #258 and #244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants