Jump to content
Sign in to follow this  
Electricleash

Base Weapon Config Attribute change?

Recommended Posts

I'm having issues with certain re-textured weapons using them on Dev.

I have created a series of black versions of the older ARMA 3 vanilla weapons from The MK20 family, TRG20/TRG21 family ,the MK18 and P07 pistol, primarily teaching myself texturing and config.

The mod was working nicely last time I edited it (Early Jan) but booting it up today on Dev I find that none of the weapons appear in the arsenal unless I have them saved in an Arsenal loadout.

 

Looking back through the last few weeks of changelog I found this from 2 February 2017:

Quote

Fixed: Some weapons were missing the "baseWeapon" config attribute (https://forums.bistudio.com/topic/143930-general-discussion-dev-branch/?do=findComment&comment=3141143) 

 

Following the link to the forum post from das attorney he states that the weapons are missing their "baseWeapon" config attribute and applies to almost exactly the weapons I have been editing.

Could someone help enlighten me as to what is going on with this... If it worked previously then why not now and what, if anything, needs to be changed?

I checked back through most of the modding resources I used to create my mod files, checked to see if there were any addendum to Arma_3_Weapon_Config_Guidelines but there appears to be nothing.

Did something change in the prescribed weapons config that will require me to update.

I realize this topic could be considered Editing, but as it seems to be a Dev branch related issue, I though it best to post here. Mods obviously shift at your discretion.

 

Thanks

E

 

 

Share this post


Link to post
Share on other sites

Weapons that have baseWeapon defined and are different from their own class name will not show up in Arsenal. To solve this, set the baseWeapon on your weapons to be the same as their class name.

This is basically done so that Arsenal can filter out weapon classes that are just Weapon+Attachment, and so that anyone who needs to know what the base weapon of a weapon is can get that info.

The classes you inherited from probably used to have no baseWeapon definition, and now they do, so your class names no longer match the base weapon and they're hidden in the Arsenal.

 

// Will show up in Arsenal
class MY_Gun {
  baseWeapon = "MY_Gun";
};

// Won't show up in Arsenal
class MY_Gun2: MyGun {
  name = "Woop";
};

// Will show up in Arsenal
class MY_Gun3: MyGun {
  baseWeapon = "My_Gun3";
};

 

  • Like 4

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
Sign in to follow this  

×