Conflict between CBA_Events and CBA_Help prevents mission from loading #244

Closed
commy2 opened this Issue Jan 21, 2016 · 1 comment

Projects

None yet

1 participant

@commy2
Contributor
commy2 commented Jan 21, 2016

CBA_fnc_readKeyFromConfig is intended to work with number entries (https://github.com/CBATeam/CBA_A3/blob/master/addons/events/fnc_readKeyFromConfig.sqf#L27), but the help module (https://github.com/CBATeam/CBA_A3/blob/master/addons/help/XEH_preClientInit.sqf#L62-L90) conflicts with that preventing the mission to start, because it assumes all entries of the sub classes in CfgSettings\CBA\Events\ are classes themselves.

Error message:
'action1/' is not a class ('key' accessed)

class CfgSettings {
    class CBA {
        class Events {
            class TestAddon {
                action1 = 15; // tab

                class action2 { // ctrl T
                    key = 20;
                    shift = 0;
                    ctrl = 1;
                    alt = 0;
                };
            };
        };
    };
};
@commy2 commy2 added the bug label Jan 21, 2016
@commy2 commy2 self-assigned this Jan 21, 2016
@commy2 commy2 added the Keybinding label Feb 11, 2016
@commy2
Contributor
commy2 commented Feb 18, 2016
a1 = ["TestAddon", "action1", { systemChat str _this }] call CBA_fnc_addKeyHandlerFromConfig
a2 = ["TestAddon", "action2", { systemChat str _this }] call CBA_fnc_addKeyHandlerFromConfig
@commy2 commy2 added this to the 2.3.1 milestone Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment