Hello all,
Yesterday i have been searching for atleast 5 hours for a solution for maybe a simple problem.
So far my search has me ending up looking at the same forum posts over and over again where either the thread has been solved but no solution posted or someone beeing redirected to the ace wiki where no clear examples are to be found.
Also i have looked trough ace its weapon/magazines/rucksack bpo configs to see how it works but so far no results.
Now for my problem and a quick heads up my programming knowledge is minimal so bear with me,
The problem or should i say problems is i cannot seem to get my current addon ammo magazines to work with A.C.E its backpack(rucksack) system among other things.
Despite reading the ace wiki on the rucksack system (http://community.bistudio.com/wiki/ACE_Features#Rucksack_System) i still dont know for sure what i am suppose to be adding to the script to get the magazines to work.
config code so far (note: i took a existing arma 2 cheytac addon config for this and edited it so some code might be irrelevant to arma 1):
Code:
class CfgPatches {
class cheytac {
units[] = {""};
weapons[] = {"cheytacM200" , "cheytacM200_SD"};
requiredVersion = 1.03;
requiredAddons[] = {};
};
};
class CfgAmmo {
class Default; // External class reference
class BulletCore; // External class reference
class BulletBase; // External class reference
class cheytac_408 : BulletBase {
hit = 25;
indirectHit = 0;
indirectHitRange = 0;
visibleFire = 18;
audibleFire = 18;
visibleFireTime = 3;
airLock = 1;
cost = 20;
airFriction = -0.00035;
caliber = 1.88;
muzzleEffect = "BIS_Effects_HeavySniper";
ace_mag_type = cheytac;
};
class cheytac_408_sd : BulletBase {
hit = 25;
indirectHit = 0;
indirectHitRange = 0;
visibleFire = 5;
audibleFire = 5;
visibleFireTime = 0.1;
airLock = 1;
cost = 20;
airFriction = -0.00035;
caliber = 1.88;
muzzleEffect = "BIS_Effects_HeavySniper";
ace_mag_type = cheytac_sd;
};
};
class CfgMagazines {
class Default; // External class reference
class CA_Magazine; // External class reference
class ACE_PackDummyMag; // External class reference
class CHEY_7Rnd_408 : CA_Magazine {
ACE_PackDummyMag = USSR_5Rnd_408_PDM;
scope = 2;
displayName = ".408 CheyTac";
ammo = "cheytac_408";
count = 7;
initSpeed = 1600;
picture = "\cheytac\data\408.paa";
descriptionShort = ".408 CheyTac";
};
class CHEY_7Rnd_408_SD : CA_Magazine {
ACE_PackDummyMag = CHEY_7Rnd_408_SD_PDM;
scope = 2;
displayName = ".408 CheyTac SD";
ammo = "cheytac_408_sd";
count = 7;
initSpeed = 1600;
picture = "\cheytac\data\408.paa";
descriptionShort = ".408 CheyTac Silenced";
};
class CHEY_7Rnd_408_PDM : ACE_PackDummyMag {
ACE_EndUseMag = "CHEY_7Rnd_408";
ACE_Size = 450;
displayName = ".408 CheyTac 7rnd mag";
picture = "\cheytac\data\408.paa";
};
class CHEY_7Rnd_408_SD_PDM : ACE_PackDummyMag {
ACE_EndUseMag = "CHEY_7Rnd_408_SD";
ACE_Size = 450;
displayName = ".408 CheyTac 7rnd mag";
picture = "\cheytac\data\408.paa";
};
};
class CfgWeapons {
class ACE_M110; // External class reference
class ACE_Rucksack;
class ACE_MagChecker : ACE_Rucksack {
type = 1;
primary = 1;
displayName = "ACE_MagChecker";
magazines[] = {"CHEY_7Rnd_408,CHEY_7Rnd_408_SD"};
};
class cheytacM200_Urban : ACE_M110 {
scope = 2;
type = 5;
model = "\cheytac\urbancheytac.p3d";
displayName = "Urban CheyTac M200";
descriptionShort = "Urban CheyTac M200 Intervention";
dexterity = 0.45;
modelOptics = "\cheytac\optics.p3d";
opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1"};
opticsFlare = 1;
opticsDisablePeripherialVision = 1;
optics = 1;
opticsZoomMin = 0.02;
opticsZoomMax = 0.12;
distanceZoomMin = 300;
distanceZoomMax = 300;
picture = "\cheytac\data\urban.paa";
UiPicture = "\CA\weapons\data\Ico\i_sniper_CA.paa";
magazines[] = {"CHEY_7Rnd_408"};
reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\M21_reload_v4", 0.0316228, 1};
sound[] = {"\cheytac\sound\cheytac.ogg",10,1};
autoFire = 0;
reloadTime = 2;
dispersion = 3e-005;
minRange = 2;
minRangeProbab = 0.1;
midRange = 1200;
midRangeProbab = 0.7;
maxRange = 1800;
maxRangeProbab = 0.05;
recoil = "cheytacRecoil";
recoilProne = "cheytacRecoilProne";
ACE_magazines_compat[] = {cheytac};
ACE_bipod = 1;
ACE_WEIGHT = 7.2;
class Library {
libTextDesc = "Urban CheyTac M200 Intervention";
};
};
class cheytacM200_SD_Urban : cheytacM200_Urban {
model = "\cheytac\cheytacsd_urban.p3d";
displayName = "Urban CheyTac M200 SD";
picture = "\cheytac\data\urban_sd.paa";
descriptionShort = "Urban CheyTac M200 Intervention SD";
sound[] = {"\cheytac\sound\cheytacsd.ogg",10,1};
magazines[] = {"CHEY_7Rnd_408_SD"};
ACE_suppressed = 1;
ACE_magazines_compat[] = {cheytac_sd};
class Library {
libTextDesc = "Urban CheyTac M200 Intervention SD";
};
};
Problem 1:
Now the code runs fine gives me no errors when i go ingame. I run my custom ammo crate script to spawn the weapons ammo crate and backpacks.
First thing i notice is when i grab the backpack and then the sniper the backpack automaticly unequips and goes back into the crate. Now if i pick up the backpack again the sniper goes back into the crate along with the ammo. I have to pick up the sniper first put it on the soldiers back then grab the Backpack. If i do that all of a sudden my sniper ammo unequips and goes back into the crate. I then have to pick up the ammo manually and pull the sniper from the soldiers back to just be able to have the sniper, backpack and ammo all together. I have no idea why it does this.
Problem 2:
After i have the Sniper, the ammo and the backpack i open up the gear menu select the .408 magazine and the option to pack the ammo comes up so far so good. Now when i try and click on the pack button it shows a ingame Error message with the hint system saying.
ACE_SYS_MAGAZINES: Invalid ACE_MagChecker defined for CHEY_7RND_408_PDM
From what i can tell of that is i havent defined the Dummy magazines in the MagChecker or Rucksack array.
Which is exactly the part i dont know how to do.
I have searched for examples of Addon Configs that are modified to work with the Ace rucksack system but found nothing.
So please if anyone can help me with these problems i would appreciate it.