shadow 6 Posted August 14, 2004 Whenever I add a regular BIS Apache in a mission, my own modification (sha_ah64) of it is always added to the addons [] -part of the mission.sqm I'm assuming this has something to do with the inherits in my config.cpp but I can't see anything wrong Also, I have a feeling that is why those missions won't start on a linux server (always say "wait for server" when trying to load them). Any ideas? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class SHA_AH64 { units[]={"SHA_AH64"}; weapons[]={}; requiredVersion=1.75; }; }; class CfgAmmo { class Default {}; class AT3: Default {}; class Hellfire: AT3 {}; class HellfireApach : Hellfire {}; class AGM114K : HellfireApach { hit=1800; indirectHit=180; indirectHitRange=2.500000; initTime=0.2500000; thrustTime=7.500000; thrust=1200; model = \Apac\hellfire; }; class Zuni {}; class sha_aim92: Zuni { hit=300; indirectHit=100; indirectHitRange=2.500000; minRange=200; minRangeProbab=0.500000; midRange=500; midRangeProbab=0.950000; maxRange=2100; maxRangeProbab=0.500000; model="at1"; cost=8000; airLock=1; manualControl=0; maxControlRange=100000; maxSpeed=600; thrustTime=10.000000; thrust=2000; maneuvrability=10.000000; }; class BulletSingle {}; class Bullet30: BulletSingle {}; class M230Bullet: Bullet30 { explosive=false; hit=60; indirectHit=12; indirectHitRange=1; }; }; class CfgWeapons { class Default {}; class LAWLauncher: Default {}; class CarlGustavLauncher : LAWLauncher {}; class AT3Launcher: CarlGustavLauncher {}; class HellfireLauncher: AT3Launcher {}; class HellfireLauncherApach : HellfireLauncher {}; class AGM114K : HellfireLauncherApach { ammo=AGM114K; displayName=AGM-114K Hellfire; displayNameMagazine=AGM-114K; shortNameMagazine=AGM114K; count=8; }; class MGun: Default {}; class MachineGun7_6: MGun {}; class MachineGun30: MachineGun7_6 {}; class M230: MachineGun30 { displayName="M-230 Chaingun"; displayNameMagazine="m230"; shortNameMagazine="M230"; ammo="M230Bullet"; count=1200; soundContinuous=0; multiplier=1; burst=5; dispersion=0.001; reloadTime=0.09; sound[]={"\sha_ah64\m230_5rd.wss",3.162278,1}; aiRateOfFire=0; // delay between shots at given distance aiRateOfFireDistance=0; // at shorter distance delay goes lineary to zero }; class ZuniLauncher38: AT3Launcher {}; class Hydra70: ZuniLauncher38 { hit=400; indirectHit=300; indirectHitRange=3; displayName="M-151 Hydra70"; displayNameMagazine="Hydra70"; shortNameMagazine="Hydra70"; count=38; aiRateOfFire=0; // delay between shots at given distance aiRateOfFireDistance=0; // at shorter distance delay goes lineary to zero }; class sha_aim92: ZuniLauncher38 { ammo=sha_aim92; displayName=AIM-9 Stinger; displayNameMagazine=AIM-92 Stinger; shortNameMagazine=AIM-92; count=4; reloadTime=0.5; initSpeed=25; canLock=2; aiRateOfFire=12.000000; aiRateOfFireDistance=2500; }; }; class CfgSounds { class apacPowerup { sound[]={"\sha_ah64\powerup.ogg",db-30,1}; name = "apacpowerup"; titles[] = {}; }; }; class CfgVehicles { class All {}; class AllVehicles: All {}; class Air: AllVehicles {}; class Helicopter: Air {}; class SHA_AH64: Helicopter { picture="\SHA_AH64\iAH64"; crew="SoldierWPilot"; accuracy=4; scope=2; side=1; displayName="AH-64D"; nameSound="chopper"; fuelCapacity=200; driverAction="ManActAH64Pilot"; gunnerAction="ManActAH64Gunner"; maxSpeed=325; soundEngine[]={"\sha_ah64\ah64engine",3.162278,1}; armor=140; cost=10000000; model="\sha_ah64\Apac"; laserScanner=1; rotorBig="apach_vrtule"; rotorBigBlend="apach_vrtule"; rotorSmall="apach_vrtulka"; rotorSmallBlend="apach_vrtule2"; weapons[]={M230, AGM114K,Hydra70,sha_aim92}; magazines[]={M230, AGM114K,Hydra70,sha_aim92}; type="VAir"; threat[]={1,0.5,0.05}; dammageHalf[]={"\sha_ah64\apach_in_skla.paa","\sha_ah64\apach_in_sklaC.paa"}; dammageFull[]={"\sha_ah64\apach_in_skla.paa","\sha_ah64\apach_in_sklaC.paa"}; class EventHandlers { engine ="if (_this select 1) then {[_this select 0] exec ""\sha_ah64\global.sqs""}"; killed = "_this exec {\sha_ah64\fire.sqs}"; }; class ViewOpticsBase {}; class ViewOptics: ViewOpticsBase { initAngleX=0; minAngleX=-90; maxAngleX=+90; initAngleY=0; minAngleY=-80; maxAngleY=+60; initFov=0.7; minFov=0.03; maxFov=0.75; }; class Turret { gunAxis="OsaHlavne"; turretAxis="OsaVeze"; gunBeg="usti hlavne"; gunEnd="konec hlavne"; soundServo[]={}; minElev=-60; maxElev=11; minTurn=-86; maxTurn=86; body="OtocVez"; gun="OtocHlaven"; }; class IndicatorAltRadar { selection="alt"; axis="osa_alt"; angle=-360; min=0; max=304; }; class IndicatorAltBaro { selection="nm_alt"; axis="osa_nm_alt"; angle=-180; min=0; max=61; }; class IndicatorSpeed { selection="mph"; axis="osa_mph"; angle=-320; min=0; max=125; }; class IndicatorVertSpeed { selection="vert_speed"; axis="osa_vert_speed"; angle=-300; min=-30; max=30; }; class IndicatorRPM { selection="rpm"; axis="osa_rpm"; angle=-320; min=0; max=12; }; class IndicatorCompass2 { selection="kompas2"; axis="osa_kompas2"; angle=-360; min=-3.141593; max=3.141593; }; }; }; class CfgNonAIVehicles { class ProxyCrew {}; class ProxyDriver: ProxyCrew {}; class Proxyah64pilot: ProxyDriver {}; class ProxyGunner: ProxyCrew {}; class Proxyah64gunner: ProxyGunner {}; class ProxyWeapon {}; class ProxyHellfire_proxy: ProxyWeapon { model="\Apac\hellfire_proxy"; simulation="maverickweapon"; }; }; class CfgVehicleActions { ah64pilot="ah64pilot"; ah64gunner="ah64gunner"; }; class CfgMovesMC { class Default {}; class DefaultDie: Default {}; class States { class Driver: Default {}; class ah64Pilot: Driver { file="\sha_ah64\ah64pilotstat.rtm"; speed=10000000000.000000; looped=1; variantsAI[]={"ah64PilotV1",0.700000,"ah64Pilot"}; interpolateWith[]={"ah64PilotV1",0.500000}; equivalentTo="ah64Pilot"; interpolationSpeed=1; connectTo[]={"ah64PilotDying",1}; }; class ah64PilotV1: ah64Pilot { file="\sha_ah64\ah64pilot.rtm"; speed="- 4"; looped=1; }; class ah64PilotDying: DefaultDie { actions="NoActions"; file="\sha_ah64\ah64pilotsmrt.rtm"; speed="- 1"; looped=0; soundEnabled=0; connectFrom[]={"ah64Pilot",1}; }; class ah64PilotDead: ah64PilotDying { actions="DeadActions"; file="\sha_ah64\ah64pilotsmrt2.rtm"; speed=10000000000.000000; terminal=1; connectFrom[]={"ah64PilotDying",1}; connectTo[]={"DeadState",1}; }; class ah64Gunner: Driver { file="\sha_ah64\ah64gunnerstat.rtm"; speed=10000000000.000000; looped=1; variantsAI[]={"ah64GunnerV1",0.700000,"ah64Gunner"}; interpolateWith[]={"ah64GunnerV1",0.500000}; equivalentTo="ah64Gunner"; interpolationSpeed=1; connectTo[]={"ah64GunnerDying",1}; }; class ah64GunnerV1: ah64Gunner { file="\sha_ah64\ah64gunner.rtm"; speed="- 4"; looped=1; }; class ah64GunnerDying: DefaultDie { actions="NoActions"; file="\sha_ah64\ah64gunnersmrt.rtm"; speed="- 1"; looped=0; soundEnabled=0; connectFrom[]={"ah64Gunner",1}; }; class ah64GunnerDead: ah64GunnerDying { actions="DeadActions"; file="\sha_ah64\ah64gunnersmrt2.rtm"; speed=10000000000.000000; terminal=1; connectFrom[]={"ah64GunnerDying",1}; connectTo[]={"DeadState",1}; }; }; }; Some of the codes are ripped from BAS' UH-60s, like the powerup-sound etc, but this is just a learning project and I will not release anything without approval from the parties I have borrowed from. Share this post Link to post Share on other sites
dm 9 Posted August 14, 2004 Whenever I add a regular BIS Apache in a mission, my own modification (sha_ah64) of it is always added to the addons [] -part of the mission.sqmI'm assuming this has something to do with the inherits in my config.cpp but I can't see anything wrong  Also, I have a feeling that is why those missions won't start on a linux server (always say "wait for server" when trying to load them). Any ideas? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class SHA_AH64 { units[]={"SHA_AH64"}; weapons[]={}; requiredVersion=1.75; }; }; You need to add the BIS apache to your addons' RequiredAddons[] ={}; array. Thus; <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class SHA_AH64 { units[]={"SHA_AH64"}; weapons[]={}; requiredVersion=1.75; requiredaddons[]={"AH64"}; }; }; Share this post Link to post Share on other sites
benu 1 Posted August 14, 2004 Also, you need to bump the requiredversion to 1.85, as requiredaddons is only supported from that version upwards. Share this post Link to post Share on other sites
shadow 6 Posted August 14, 2004 Thanks, fellas. That did wonders. Could this have been the reason why a Linux server is unable to start missions I've been using this addon in? Win32 servers have no problems. I noticed bas_repairh and bas_mh6185 are added automatically whenever I add a aircraft. I know what repairh is, but what is bas_mh6185? Something to do with the Birds I presume. Share this post Link to post Share on other sites
benu 1 Posted August 14, 2004 bas_repair has the same dependency bug, it is dependent on the ah64 without declaring it. I am already using a fixed version on my server, so i couldn't really tell if this was still an issue. I noticed the. bas_mh6185 (afaik part of the littlebirds) issue too lately but had no time to look into it yet. Seems there are some bas addons that aren't coded correctly... Share this post Link to post Share on other sites
benu 1 Posted August 17, 2004 The bas_mh6185 class is from the bas_lbs185.pbo. So far i couldn't find any error in it, it declares bas_soar185,bis_resistance,ah64 as it's dependencies and does not seem to use anything not from these addons. It may be an "inherited" dependency from bas_soar185, but that looked ok too on first glance. It may also be some different addon altogether that is depending on the bas_mh6185... Share this post Link to post Share on other sites