Jump to content
DuckDucky

ERROR, Every time i shoot, I get this error pop up, It's from a CBA File, How do you fix it?

Recommended Posts

So basically every time i shoot, i get a black box error pop up with an error, I never got this before today and its from CBA, how do you fix it? I'm not good on coding, i just spent a lot of time making missions and it bumps me when this type of error pops up from nowhere.

'...['call cba_xeh_fnc_#1', _x]];
           }  |#|forEach ([''AnimChanged'',          ''AnimStatec....'
Error Generic error in expression
File /x/cba/addons/xeh/fnc_initEvents.sqf..., line 39
 

Share this post


Link to post
Share on other sites

open it with notepad

press ctrl+A

switch to forum thread, scroll down to do a new post

press the eye icon on top of the new post frame

click into spoilers text field

press ctrl+V

submit reply

 

 

Share this post


Link to post
Share on other sites
Spoiler

 

Spoiler
Spoiler

 

 

Hm, i tried to do it twice, but both times the site couldn´t handle the request, it crashes the site when i try and do it

Share this post


Link to post
Share on other sites

.rpt is to big I guess therefore:

close arma

delete all .rpt files

restart arma

reproduce your problem ingame

after that redo the advices from my last post

  • Like 1

Share this post


Link to post
Share on other sites

I'm getting the error too, seems to be related to spawning units. I'll dig a little deeper and post my rpt

  • Like 1

Share this post


Link to post
Share on other sites
Spoiler

20:56:23 [CBA] (xeh) INFO: [1141,89.572,0] PreInit started. v3.15.4.210701
20:56:23 [CBA] (xeh) WARNING: One or more children of class CAManBase do not support Extended Event Handlers. Fall back to loop.
20:56:23 [CBA] (settings) INFO: Reading settings from settings file.
20:56:23 [CBA] (settings) INFO: Finished reading settings from settings file.
20:56:23 [CBA] (xeh) INFO: [1141,89.761,0] PreInit finished.
20:56:24 Fresnel k must be >0, given n=1.4,k=0
20:56:24 [CBA] (xeh) INFO: [1144,90.44,0] PostInit started. MISSIONINIT: missionName=stratis, missionVersion=54, worldName=stratis, isMultiplayer=false, isServer=true, isDedicated=false, CBA_isHeadlessClient=false, hasInterface=true, didJIP=false
20:56:24 [CBA] (versioning) INFO: [1144,90.443,0] VERSIONING:cba=3.15.4.210701
20:56:24 [CBA] (xeh) INFO: [1144,90.444,0] PostInit finished.
20:56:24 [CBA] (optics) INFO: Scripted camera restarted.
20:56:24 Unknown task state: 
20:56:24 Unknown task state: 
20:56:24 Unknown task state: 
20:56:30 Loading movesType CfgMovesButterfly
20:56:30 Loading movesType CfgMovesBird
20:56:42 soldier[TPW_BCombatUniform_AMCU_S]:Some of magazines weren't stored in soldier Vest or Uniform?
20:56:42 soldier[TPW_BCombatUniform_AMCU_S]:Some of magazines weren't stored in soldier Vest or Uniform?
20:56:43 Error in expression <['call cba_xeh_fnc_%1', _x]];
        } forEach (["AnimChanged",     "AnimStateC>
20:56:43   Error position: <forEach (["AnimChanged",     "AnimStateC>
20:56:43   Error foreach: Type String, expected Array,HashMap
20:56:43 File /x/cba/addons/xeh/fnc_initEvents.sqf..., line 39
20:56:43 Error in expression <['call cba_xeh_fnc_%1', _x]];
        } forEach (["AnimChanged",     "AnimStateC>
20:56:43   Error position: <forEach (["AnimChanged",     "AnimStateC>
20:56:43   Error Generic error in expression
20:56:43 File /x/cba/addons/xeh/fnc_initEvents.sqf..., line 39

 

 

I get this error whenever I spawn custom units which call a script upon creation, in this case a script to randomise loadout and uniform :

 

If I spawn this custom unit:

"tpw_bcombatuniform_amcu_s" createunit [(position player),(group player)];

 

which has this in its config:

       class eventhandlers
        {
            init="P = [_this select 0] execVM ""\tpw_amcu\scripts\random.sqf"";";
        };

then the message pops up instantly.

 

 

Spawning a generic unit such as 

"B_engineer_F" createunit [(position player),(group player)];

is fine.

 

Something about the CBA update today is not happy with extended event handlers. Nothing in my code changed.

  • Like 1

Share this post


Link to post
Share on other sites
14 minutes ago, tpw said:

I'm getting the error too, seems to be related to spawning units. I'll dig a little deeper and post my rpt

I tried testing a lot before coming here, i even went to the editor and put only me and it still had the problem, I'm not sure if its that.

Share this post


Link to post
Share on other sites

I loaded up an almost completely vanilla arma with just CBA and my custom units, and the error still occurs. It's not a mod conflict.

  • Like 1

Share this post


Link to post
Share on other sites

So i need to revert back to the previous update, okay i can try that, I've never reverted a mod update before, how do you do it?

Share this post


Link to post
Share on other sites

you cant if u have not the old version somewhere. afaik cba has no versions archive somewhere. THEY have to fix it. therefor do a report on their issue page...

 

Share this post


Link to post
Share on other sites

Oh okay, i pasted my rpt on the link you gave me, i guess now all we do is wait.

Share this post


Link to post
Share on other sites

would be the best if the error occurs without ace.

if it is happening with ace together only then you should use a .rpt with cba and ace...

Share this post


Link to post
Share on other sites

I can't seem to trigger it with only ace and cba or with only cba, i will try RHSUSAF or just some other mod.

  • Like 1

Share this post


Link to post
Share on other sites

Yea I don't know now i can't trigger it with the mods im choosing, I'll just wait.

Share this post


Link to post
Share on other sites

Found the Problem (Dedmen did a fuckup a few months ago and it only causes problem in one very specific place thats only present in CBA and only with objects that don't support XEH (extra rare) :D). Fix is WIP

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks gents, everything working OK now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×