a) post your addon/config
b) you need CBA/XEH for auto init
a) post your addon/config
b) you need CBA/XEH for auto init
All the files can be downloaded from the repository (https://dev-heaven.net/projects/mumb...aster/show/sqf)
Well I am not trying to initialize on any specific item/unit. I just want to initialize on load of the addon. I am aiming at having as few dependencies as possible so I am attempting to avoid CBA and XEH.
Thanks for looking into this, I appreciate it.
There is nothing like that in A2 by default. CBA's XEH gets around this by basically overwriting the init event handler for every unit in the game and plugging into their defined events. Until BIS provides us with this feature on our own you need to use CBA or write your own (which would then not be compat with any addon that uses CBA, which is a lot of them).
Alright I have seen Deadfast's FPS counter uses a toggle button - I guess that could be an alternative. Maybe I can check if CBA/XEH is available and if not provide a button that the user can/has to press to activate it. But that's for later at first I'll go with XEH.
Thank you for that thorough explanation.
You can also auto init from the onLoad handler of the main display. However this can be only done by one addon.
So you easily run into compatibility conflicts there.
You may want to try DevCon for coding, testing and debugging.
I think using CBA would be the best option, as it is well supported and provides compatibility with other mods. If you ever need some people to test this out I would be glad to help. My group uses mumble for voip, we are a bit scared of acre and teamspeak and chose to go with mumble as it seemed the simpler option at the time.
I too am very interested in helping as our clan has been using TS for years but are increasingly dismayed by crashes and difficulty in getting ACRE to work.