CBATeam / CBA_A3

Community Base Addons for Arma 3
https://github.com/CBATeam/CBA_A3/wiki
GNU General Public License v2.0
364 stars 151 forks source link

weapon Attachments not found or not usable. #721

Closed pabclsn closed 7 years ago

pabclsn commented 7 years ago

Arma 3 Version: 1.72 (stable) CBA Version:CBA_A3 v3.4.0.170627

Mods:

- CBA_A3

Description:

Where did the issue occur?

RPT log file:

commy2 commented 7 years ago

Looks like your script is incompatible with the way Joint Rails adds weapon attachments. Since that way is totally legitimate and used by many asset mods, it's a problem with your script. The difference is between using the "compatibleItems[]" array vs. the "class compatibleItems" sub class.

pabclsn commented 7 years ago

here is my configuration file for weapons and magazines : https://gist.github.com/pabclsn/c7c24f98fd817008585f090cae4fcf47

can i do something about it or it's simply not possible ?

Because that's the basic Altis Life 4.4R4 Config file

commy2 commented 7 years ago

It has nothing to do with that config, but with the script you're using for that store. And it can be easily fixed if the script is somewhat reasonably made.

pabclsn commented 7 years ago

Ok i'm gonna look for it thanks.

commy2 commented 7 years ago

Maybe it's as simple as replacing BIS_fnc_compatibleItems with CBA_fnc_compatibleItems. Idk.

pabclsn commented 7 years ago

I'm pretty new to Sqf arma 3 server Etc so I'm gonna search. Thanks

pabclsn commented 7 years ago

Do you know where you can switch between BIS_fnc_compatibleItems and CBA_fnc_compatibleItems ?

commy2 commented 7 years ago

In a text editor?

pabclsn commented 7 years ago

no but the file who is concerned ;)

pabclsn commented 7 years ago

Because the compatibleItems thing you talk I found it in the weaponShopAccs (https://gist.github.com/pabclsn/10861d5bfb02d36d5142806af032f92f) and in fn_weaponShopSelection.sqf (https://gist.github.com/pabclsn/ee5fea83aa6d0ba345119677b7e9ee31)

commy2 commented 7 years ago

https://gist.github.com/pabclsn/10861d5bfb02d36d5142806af032f92f#file-fn_weaponshopaccs-sqf-L14-L40 These lines should be deleted and changed to:

_weaponArray = _weapon call CBA_fnc_compatibleItems;

And these lines should be deleted https://gist.github.com/pabclsn/ee5fea83aa6d0ba345119677b7e9ee31#file-fn_weaponshopselection-sqf-L55-L80 and replaced with:

_itemArray = _weapon call CBA_fnc_compatibleItems;

That is my guess. Idk Life at all, so you're probably better off asking the authors for further help.

pabclsn commented 7 years ago

Ok thanks a lot @commy2 for anwsering me but that's not working I will come back with a solution :)