What tells OFP to include an addon as being required to run a map?
requiredAddOns, as you say, would solve the issue most likely, but not with the
throw class...
And not with the addWeapon/addMagazine situ..
And yes, it is quite annoying because you really can't do anything about it as a mission maker..
Other than state very clearly in the readMe (so that people will notice it) that the mission gives this error and there's nothing you can do about it, but the mission works just fine...
I happen to have some version of this addon in question and I've gone through the config and found at least the following error:
class UP_BARBase:Riffle
{
displayName = BAR;
displayNameMagazine=BAR Magazine";
shortNameMagazine="BAR Mag";
scopeWeapon = public;
scopeMagazine = public;
model="\UP_WW2\BAR\bar.p3d";
modelOptics="optika_m16";
picture="\UP_WW2\PICS\bar.paa";
optics = true;
opticsZoomMin=0.35;
opticsZoomMax=0.35;
count=20;
ammo="UP_RAmmo";
magazines[]={"UP_BARmag"};
reloadMagazineSound[]={\UP_WW2\SOUND\BARReload.ogg,0.0316,1};
modes[]={"FullAuto"};
class FullAuto
{
ammo="UP_RAmmo";
multiplier=1;
burst=1;
dispersion=0.0015;
displayName="BAR Auto";
sound[]={"\UP_WW2\SOUND\BARFire.wav",3.162278,1};
soundContinuous=0;
reloadTime=0.17;
ffCount=30;
recoil="riffleBurst3";
autoFire=1;
aiRateOfFire=5.000000;
aiRateOfFireDistance=200;
useAction=0;
useActionTitle="";
};
};
A missing "
Dunno if that has any meaning on the issue at hand though...
This same error is in few other weapon classes (in that config) as well...
Although it
might be that OFP doesn't really register the addon due to the missing quote marks...
Anyway, I fixed those few missing quotes and tried the addon in-game and did not get any such missing addon errors..
Neither in editor or in SP mission...
The addWeapon/addMagazine also worked, and added the up_ww entry in the AddOns list of the mission.sqm...
What I did was I used the initline of a soldier to add a weapon and a mag and then previewed the 'mission' before saving it...
Doing that tells OFP it needs the weapon addon...
Can't really think of anything else atm...