modemmaik 53 Posted August 8, 2008 Hi all, I tried to set up a replacement config using new ammuntion: T-90 reconfig Whenever I try load set up a MP-Game using the T90Adv_repl_T72 config. I receive this error: Quote[/b] ]Addon smurfc_era_102_repl (entry MM_D81_T72) not found in the list of active addons.Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted. smurfc_era_102_repl I use the following config: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class SmurfC_ERA_102_REPL { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"CAWeapons", "CATracked", "SmurfC_ERA_102"}; }; }; class CfgAmmo { class ShellCore; // External class reference class ShellBase : ShellCore {}; class MM_3BM42 : ShellBase { hit = 650; indirectHit = 0; indirectHitRange = 0; typicalSpeed = 1700; airFriction = -5e-005; deflecting = 15; explosive = 0.01; model = "\ca\Weapons\shell"; }; ... class CfgMagazines { class Default; // External class reference class CA_Magazine : Default {}; class VehicleMagazine : CA_Magazine {}; class MM_22Rnd_3BM42 : VehicleMagazine { displayName = "3BM42 APFSDS"; ammo = MM_3BM42; count = 22; initSpeed = 1700; maxLeadSpeed = 50; // max estimated speed km/h nameSound = "sabot"; }; ... class cfgWeapons { /*extern*/ class D81; class MM_D81_T72 : D81 { displayName = 2A46M; magazines[] = {"MM_22Rnd_3BM42", "MM_17Rnd_3BK29", "MM_17Rnd_3OF26", "23Rnd_125mmSABOT_T72", "22Rnd_125mmHE_T72"}; reloadTime = 7; magazineReloadTime = 0; maxLeadSpeed = 60; // max estimated speed km/h autoReload = false; minRange = 1; minRangeProbab = 0.1; midRange = 1200; midRangeProbab = 0.7; maxRange = 4000; maxRangeProbab = 0.1; dispersion = 0.0005; }; ... class CfgVehicles { class Tank; class T72: Tank { model = "\smurfc_era\smurfcT72ERAwd"; ... class Turrets : Turrets { class MainTurret : MainTurret { weapons[] = {MM_D81_T72, MM_AT5Launcher, PKT}; magazines[] = {"MM_22Rnd_3BM42", "MM_17Rnd_3BK29", ... In-game I have the ammunition defined in the replacment config. Using the mission-editor preview, I receive no error... When I use a T-72 reconfig without the new weapons, everything works without an error message... Any help welcome mike Share this post Link to post Share on other sites
.kju 3245 Posted August 8, 2008 Simple Quote[/b] ] units[] = {};weapons[] = {}; Guess what these two are for Maybe to define new yet unknown classes to ArmA so that it knows "what file to load without a deep search". Share this post Link to post Share on other sites
modemmaik 53 Posted August 8, 2008 Simple Quote[/b] ] units[] = {};weapons[] = {}; Guess what these two are for Maybe to define new yet unknown classes to ArmA so that it knows "what file to load without a deep search". Hi Q, I wished it could be that easy... Same error stays, when I add the magazines and weapons... But I restarted it with a simple redefinition of the hitrates for Sabot and HE and meanwhile... this ended up in a redefintion of the D81 and ATLauncher. And it works. So I set up a test-config that includes re-defintion of the D81 / AT5Launcher and prefixed versions (MM_D81_T72, MM_AT5Launcher). T-90 replacement config @pastebin replacing the comment on line#191 to line #192 and the error pops up again although both weapons should be the same <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// weapons[] = {MM_D81_T72, MM_AT5Launcher, PKT}; weapons[] = {D81, AT5Launcher, PKT}; too bad, the BRDM ATGM also gets the 9M119 when the AT5Launcher is redefined, I guess. Share this post Link to post Share on other sites