predoc 10 Posted May 11, 2018 Hi everybody, I have got some problems with modding Arma 3. As I have already completet a mod which replaces vanilla vehicles with stuff from RHS and CUP mods. A working example: class CUP_T72_Base; class O_MBT_02_cannon_F: CUP_T72_Base { scope=2; scopeCurator=2; side=0; accuracy=0.30000001; faction="OPF_F"; crew="O_CREW_F"; typicalCargo[]= { "O_CREW_F", "O_CREW_F", "O_CREW_F", "O_CREW_F" }; author="$STR_CUP_AUTHOR_STRING"; hiddenSelectionsTextures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_T72\data\textures\TK_T72_1_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_T72\data\textures\TK_T72_2_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_T72\data\textures\TK_T72_3_co.paa" }; editorPreview="CUP\TrackedVehicles\CUP_TrackedVehicles_T72\Data\preview\CUP_O_T72_TKA.jpg"; }; This works well and I got into no problems so dar. Now for what I did post this: This variant does not work. The BMP still has a crazy hex-camouflage, the crew sat (glitchy) outside the vehicle. I copied the whole code into the mod file from the very basis onwards, but still for the same result. I got no idea, how to solve this. class CfgPatches { class OPFOR_Vehicles_Replacement { name = "OPFOR Vehicles Replacement CUP"; units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = { "A3_Armor_F","A3_Soft_F","A3_Air_F","A3_armor_f_beta","A3_armor_f_epb","A3_armor_f_epc","A3_armor_f_gamma","A3_armor_f_exp","A3_armor_f_tank","A3_Air_F","A3_air_f_beta", "A3_armor_f_beta_APC_Tracked_02", "rhs_main","rhs_c_heavyweapons","rhs_decals","rhs_optics","rhs_c_troops","rhs_c_btr", "CUP_WheeledVehicles_Core", "CUP_Creatures_Military_Russia", "cup_wheeledvehicles_vodnik","cup_wheeledvehicles_btr60","cup_wheeledvehicles_btr90","cup_trackedvehicles_bmp","cup_trackedvehicles_2s6m","cup_trackedvehicles_t90","cup_trackedvehicles_t72","cup_airvehicles_mi35", }; }; }; class CfgVehicles { class CUP_O_BMP2_CSAT; class O_APC_Tracked_02_cannon_F: CUP_O_BMP2_CSAT { scope=2; side=0; accuracy=0.30000001; faction="OPF_F"; crew="O_CREW_F"; model="cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\BMP2"; typicalCargo[]= { "O_CREW_F", "O_CREW_F", "O_CREW_F", "O_CREW_F" }; author="$STR_CUP_AUTHOR_STRING"; dlc="CUP_Vehicles"; hiddenSelectionsTextures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_tka_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_tka_co.paa" }; editorPreview="CUP\TrackedVehicles\CUP_TrackedVehicles_BMP\Data\preview\CUP_O_BMP2_TKA.jpg"; class TextureSources { class TKA { DisplayName="Takistan Army"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_tka_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_tka_co.paa" }; factions[]={}; }; class UN { DisplayName="United Nations"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_un_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_un_co.paa" }; factions[]={}; }; class SLA { DisplayName="SLA"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_sla_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_sla_co.paa" }; factions[]={}; }; class RU { DisplayName="Russian Army"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_ru_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_ru_co.paa" }; factions[]={}; }; class NAPA { DisplayName="NAPA"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_khk_01_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_khk_02_co.paa" }; factions[]={}; }; class CZ_WDL { DisplayName="Czech Army (WDL)"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_acr_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_acr_co.paa" }; factions[]={}; }; class CZ_DES { DisplayName="Czech Army (DES)"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_acr_des_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_acr_des_co.paa" }; factions[]={}; }; class CSAT { DisplayName="CSAT"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_csat_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_csat_co.paa" }; factions[]={}; }; class CSAT_T { DisplayName="CSAT Tropical"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_csat_t_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_csat_t_co.paa" }; factions[]={}; }; class Chdkz { DisplayName="CHDKZ"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_co.paa" }; factions[]={}; }; class CDF { DisplayName="CDF"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_camo_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_camo_co.paa" }; factions[]={}; }; }; }; }; Can some one help me please? I want to complete my modding project. Best wishes Share this post Link to post Share on other sites
.kju 3245 Posted May 11, 2018 you have to keep the class inheritance structure - the above doesnt look like it does Share this post Link to post Share on other sites
predoc 10 Posted May 11, 2018 Thanks kju ...I thought I did. I have completed every other vehicle from CSAT with the system I have presented you with the T72. There weren't any issues, only the APC_tracked refuse to. I've checked, that both the BMP and the APC_tracked are rooted from TANK_F and go on until final section in my mod file. I don't see where I miss the class inheritance? Is there any other way to check this ? Share this post Link to post Share on other sites
.kju 3245 Posted May 11, 2018 1 hour ago, predoc said: class O_APC_Tracked_02_cannon_F: CUP_O_BMP2_CSAT vs original: Quote class O_APC_Tracked_02_cannon_F: O_APC_Tracked_02_base_F Share this post Link to post Share on other sites
predoc 10 Posted May 11, 2018 Yeah. I did check, if lines intervene. But as you might already know, you can very successfully topping classes with such orders: class CUP_T72_Base; class O_MBT_02_cannon_F: CUP_T72_Base as I have already tested and written above. I gonna try my code on O_APC_Tracked_02_base_F. Maybe this will work. Share this post Link to post Share on other sites
predoc 10 Posted May 12, 2018 Sadly this does not have any effect. I tried the following: Spoiler class APC_Tracked_02_base_F: Tank_F //CUP_BMP1_base { vehicleClass="Armored"; author="$STR_CUP_AUTHOR_STRING"; displayName="BMP-1"; accuracy=0.30000001; scope=0; maxFordingDepth=1; canfloat=1; commanderCanSee="1+2+4+8+16+31"; gunnerCanSee="2+4+8+16"; drivercompartments="Compartment1"; castdrivershadow=1; attenuationEffectType="TankAttenuation"; insideSoundCoef=0.89999998; occludeSoundsWhenIn=1; obstructSoundsWhenIn=1; forceHideDriver=0; driverForceOptics=1; LODDriverTurnedin=-1; LODDriverOpticsIn=-1; driverOpticsModel="\A3\weapons_f\reticle\optics_driver_01_f"; driverAction="BMP2_DriverOut"; driverInAction="BMP2_Driver"; cargoAction[]= { "CUP_BTR60_Cargo01_EP1" }; cargoProxyIndexes[]={2,3,4,5,6,7,8,9,10,11,12,13,14}; cargoProxyorder[]={2,3,4,5,6,7,8,9,10,11,12,13,14}; hideWeaponsCargo=1; transportSoldier=4; destrType="DestructDefault"; class TransportWeapons { }; class TransportItems { }; class TransportMagazines { }; driverDoor=""; cargoDoors[]={}; model="\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\bvp1"; picture="\cup\trackedvehicles\cup_trackedvehicles_bmp\Data\ico\bmp2_ca.paa"; Icon="\cup\trackedvehicles\cup_trackedvehicles_bmp\data\map_ico\icomap_bmp2_ca.paa"; mapSize=6.5; maxspeed=55; simulation="tankX"; enginePower=824; maxOmega=272; peakTorque=1050; torqueCurve[]= { { "(400/2000)", 0 }, { "(800/2000)", "(1600/3000)" }, { "(1200/2000)", "(2200/3000)" }, { "(1400/2000)", "(3000/3000)" }, { "(3000/2000)", 0 } }; rudderForceCoef=1.5; rudderForceCoefAtMaxSpeed=0.015; waterSpeedFactor=0.5; waterresistance=0.5; engineShiftY=0.1; waterLeakiness=1; turnCoef=5.25; waterLinearDampingCoefY=2; waterLinearDampingCoefX=2; waterAngularDampingCoef=1.2; waterResistanceCoef=0.015; thrustDelay=0.1; clutchStrength=180; fuelCapacity=462; brakeIdleSpeed=1.78; latency=0.1; tankTurnForce=260000; idleRpm=700; redRpm=2640; engineLosses=25; transmissionLosses=15; changeGearMinEffectivity[]={0.5,0.15000001,0.84999996,0.84999996,0.84999996,0.84999996,0.89999998}; class complexGearbox { GearboxRatios[]= { "R2", -12.5, "N", 0, "D1a", 5.1999998, "D1", 3.2, "D2a", 2.8299999, "D2", 2.3299999, "D3a", 1.8099999, "D3", 1.3099999, "D4", 0.98000002, "D5", 0.75 }; TransmissionRatios[]= { "High", 5 }; AmphibiousRatios[]= { "R1", -20, "N", 0, "D1a", 16 }; gearBoxMode="auto"; moveOffGear=1; driveString="D"; neutralString="N"; reverseString="R"; transmissionDelay=0.1; }; class Wheels { class L2 { wheelBrakeFrictionCoef=0.0099999998; boneName="wheel_podkoloL1"; center="wheel_1_2_axis"; boundary="wheel_1_2_bound"; damping=75; steering=0; side="left"; weight=130; mass=130; MOI=26; latStiffX=15; latStiffY=280; longitudinalStiffnessPerUnitGravity=100000; maxBrakeTorque=6520; sprungMass=1116; springStrength=27900; springDamperRate=8664; dampingRate=0.89999998; dampingRateInAir=880; dampingRateDamaged=10; dampingRateDestroyed=10000; maxDroop=0.15000001; maxCompression=0.18000001; frictionVsSlipGraph[]= { {0,1.9}, {0.5,1.3}, {1,1.3} }; }; class L3: L2 { boneName="wheel_podkolol2"; center="wheel_1_3_axis"; boundary="wheel_1_3_bound"; }; class L4: L2 { boneName="wheel_podkolol3"; center="wheel_1_4_axis"; boundary="wheel_1_4_bound"; }; class L5: L2 { boneName="wheel_podkolol4"; center="wheel_1_5_axis"; boundary="wheel_1_5_bound"; }; class L6: L2 { boneName="wheel_podkolol5"; center="wheel_1_6_axis"; boundary="wheel_1_6_bound"; }; class L7: L2 { boneName="wheel_podkolol6"; center="wheel_1_7_axis"; boundary="wheel_1_7_bound"; }; class L9: L2 { boneName="wheel_podkolol9"; center="wheel_1_9_axis"; boundary="wheel_1_9_bound"; sprungMass=1500; springStrength=37500; springDamperRate=7500; maxDroop=0; maxCompression=0; }; class L1: L2 { boneName=""; center="wheel_1_1_axis"; boundary="wheel_1_1_bound"; sprungMass=1500; springStrength=37500; springDamperRate=7500; maxDroop=0; maxCompression=0; }; class R2: L2 { boneName="wheel_podkolop1"; center="wheel_2_2_axis"; boundary="wheel_2_2_bound"; side="right"; }; class R3: R2 { boneName="wheel_podkolop2"; center="wheel_2_3_axis"; boundary="wheel_2_3_bound"; }; class R4: R2 { boneName="wheel_podkolop3"; center="wheel_2_4_axis"; boundary="wheel_2_4_bound"; }; class R5: R2 { boneName="wheel_podkolop4"; center="wheel_2_5_axis"; boundary="wheel_2_5_bound"; }; class R6: R2 { boneName="wheel_podkolop5"; center="wheel_2_6_axis"; boundary="wheel_2_6_bound"; }; class R7: R2 { boneName="wheel_podkolop6"; center="wheel_2_7_axis"; boundary="wheel_2_7_bound"; }; class R9: R2 { boneName="wheel_podkolop9"; center="wheel_2_9_axis"; boundary="wheel_2_9_bound"; sprungMass=1500; springStrength=37500; springDamperRate=7500; maxDroop=0; maxCompression=0; }; class R1: R2 { boneName=""; center="wheel_2_1_axis"; boundary="wheel_2_1_bound"; sprungMass=1500; springStrength=37500; springDamperRate=7500; maxDroop=0; maxCompression=0; }; }; driveOnComponent[]={}; cost=700000; damageResistance=0.02; crewVulnerable=0; armor=200; armorStructural=4; class HitPoints: HitPoints { class HitHull: HitHull { armor=0.40000001; material=-1; name="telo"; visual="zbytek"; passThrough=0; minimalHit=0.14; explosionShielding=0.5; radius=0.25; }; class HitEngine: HitEngine { armor=0.44999999; material=-1; name="motor"; passThrough=0; minimalHit=0.139; explosionShielding=0.0089999996; radius=0.27000001; }; class HitLTrack: HitLTrack { armor=0.5; material=-1; name="pas_L"; passThrough=0; minimalHit=0.15000001; explosionShielding=0.5; radius=0.30000001; }; class HitRTrack: HitRTrack { armor=0.5; material=-1; name="pas_P"; passThrough=0; minimalHit=0.15000001; explosionShielding=0.5; radius=0.30000001; }; }; driverWeaponsInfoType="CUP_RscOptics_driver_NCO"; class Turrets: Turrets { class CommanderOptics: CommanderOptics { commanding=2; body="obsTurret"; gun="obsGun"; forceHideGunner=0; animationSourceBody="obsTurret"; animationSourceGun="obsGun"; gunnerDoor=""; maxHorizontalRotSpeed=1.8; maxVerticalRotSpeed=1.8; stabilizedInAxes=3; minElev=-6; maxElev=45; initElev=0; minTurn=-360; maxTurn=360; initTurn=0; gunBeg="commanderview_dir"; gunEnd="commanderview"; memoryPointGun="commanderview"; weapons[]={}; magazines[]={}; isPersonTurret=1; personTurretAction="vehicle_turnout_1"; minOutElev=-10; maxOutElev=50; initOutElev=0; minOutTurn=-90; maxOutTurn=90; initOutTurn=0; turretInfoType="CUP_RscOptics_commander_NECO"; discreteDistance[]={600}; discreteDistanceInitIndex=0; ace_fcs_enabled=0; memoryPointGunnerOutOptics="commander_weapon_view"; gunnerForceOptics=0; memoryPointGunnerOptics="commanderview"; gunnerOutForceOptics=0; gunnerOutOpticsModel=""; gunnerOpticsEffect[]= { "TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera2" }; gunnerHasFlares=1; class ViewOptics: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.101; minFov=0.102; maxFov=0.102; visionMode[]= { "Normal", "NVG" }; }; class OpticsIn { class Wide { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.155; minFov=0.034000002; maxFov=0.155; gunnerOpticsModel="\CUP\TrackedVehicles\CUP_TrackedVehicles_T72\optika_t72_commander"; visionMode[]= { "Normal", "NVG" }; thermalMode[]={4,5}; }; }; gunnerAction="BMP2_CommanderOUT"; gunnerInAction="BMP2_Commander"; gunnerGetInAction="GetInMedium"; gunnerGetOutAction="GetOutMedium"; startEngine=0; viewGunnerInExternal=1; outGunnerMayFire=1; inGunnerMayFire=1; class HitPoints { class HitTurret { armor=0.30000001; material=-1; name="vezVelitele"; visual="vezVelitele"; passThrough=0; minimalHit=0.029999999; explosionShielding=0.001; radius=0.25; }; class HitGun { armor=0.30000001; material=-1; name="zbranVelitele"; visual="zbranVelitele"; passThrough=0; minimalHit=0.029999999; explosionShielding=0.001; radius=0.25; }; }; }; class MainTurret: MainTurret { class Turrets { }; commanding=1; gunnerAction="BMP2_GunnerOut"; gunnerInAction="BMP2_Gunner"; gunnerGetInAction="GetInMedium"; gunnerGetOutAction="GetOutMedium"; gunnerDoor=""; startEngine=0; maxHorizontalRotSpeed=0.93000001; maxVerticalRotSpeed=0.18700001; memoryPointGun="usti hlavne2"; selectionFireAnim="zasleh"; gunBeg="usti hlavne"; gunEnd="konec hlavne"; minElev=-4; maxElev=33; initElev=10; weapons[]= { "CUP_Vacannon_2A28", "CUP_Vhmg_PKT_veh_noeject", "CUP_Vmlauncher_AT3_veh" }; magazines[]= { "CUP_PG15V", "CUP_OG15V", "CUP_4Rnd_AT3_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M" }; turretInfoType="CUP_RscOptics_gunner_CO"; discreteDistance[]={100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000}; discreteDistanceInitIndex=3; memoryPointGunnerOptics="gunnerview"; gunnerOutOpticsModel=""; gunnerOutOpticsEffect[]={}; gunnerOpticsEffect[]={}; gunnerForceOptics=0; class OpticsIn { class Periscope: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.46666601; minFov=0.46666601; maxFov=0.46666601; visionMode[]= { "Normal" }; gunnerOpticsModel="\a3\weapons_f\reticle\Optics_Driver_01_f"; gunnerOpticsEffect[]= { "TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera2" }; }; class Wide: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.30000001; minFov=0.30000001; maxFov=0.30000001; visionMode[]= { "Normal" }; thermalMode[]={4,5}; gunnerOpticsModel="\CUP\WheeledVehicles\CUP_WheeledVehicles_BRDM2\2Dscope_BMPgun.p3d"; gunnerOpticsEffect[]={}; }; }; forceHideGunner=0; inGunnerMayFire=1; viewGunnerInExternal=1; class HitPoints { class HitTurret { armor=0.5; material=-1; name="vez"; visual="vez"; passThrough=0; minimalHit=0.14; explosionShielding=0.001; radius=0.25; }; class HitGun { armor=0.60000002; material=-1; name="zbran"; visual=""; passThrough=0; minimalHit=0.13; explosionShielding=0.001; radius=0.25; }; }; }; class CargoTurret_01: CargoTurret { commanding=-2; gunnerGetInAction="GetInhigh"; gunnerGetOutAction="GetOuthigh"; gunnerAction="passenger_inside_1"; gunnerInAction="passenger_inside_1"; gunnerCompartments="Compartment2"; memoryPointsGetInGunner="pos ffv left"; memoryPointsGetInGunnerDir="pos ffv left dir"; gunnerName="Passenger (Top Left Front)"; proxyIndex=11; minElev=-30; maxElev=35; initElev=0; minTurn=-75; maxTurn=75; initTurn=0; LODTurnedOut=1; LODTurnedIn=1; isPersonTurret=1; ejectDeadGunner=1; forceHideGunner=1; soundAttenuationTurret=""; disableSoundAttenuation=1; }; class CargoTurret_02: CargoTurret_01 { gunnerName="Passenger (Top Left Back)"; proxyIndex=12; }; class CargoTurret_03: CargoTurret_01 { memoryPointsGetInGunner="pos ffv right"; memoryPointsGetInGunnerDir="pos ffv right dir"; gunnerName="Passenger (Top Right Front)"; proxyIndex=13; }; class CargoTurret_04: CargoTurret_03 { gunnerName="Passenger (Top Right Back)"; proxyIndex=14; }; class CargoTurret_05: NewTurret { weapons[]={}; magazines[]={}; proxyType="CPCargo"; proxyIndex=1; gunnerName="Inside Right Front FFV"; primaryGunner=0; primaryObserver=0; gunnerOpticsShowCursor=0; body=""; gun=""; animationSourceBody=""; animationSourceGun=""; animationSourceHatch="HatchRF"; soundServo[]= { "", "db-50", 1 }; startEngine=0; hideWeaponsGunner=0; gunnerGetInAction="GetInHigh"; gunnerGetOutAction="GetOutHigh"; gunnerAction="vehicle_turnout_2"; gunnerInAction="passenger_low01"; ispersonturret=1; dontCreateAI=1; minOutElev=-10; maxOutElev=40; initOutElev=0; minOutTurn=-80; maxOutTurn=80; initOutTurn=0; minElev=-45; maxElev=50; initElev=0; minTurn=-120; maxTurn=120; initTurn=0; commanding=-1; viewGunnerInExternal=0; gunnerOpticsModel=""; gunnerOutOpticsColor[]={0,0,0,1}; gunnerForceOptics=0; gunnerOutForceOptics=0; gunnerOutOpticsShowCursor=0; memoryPointGunnerOptics=""; memoryPointsGetInGunner="pos cargo ffv right"; memoryPointsGetInGunnerDir="pos cargo ffv right dir"; gunnerOpticsEffect[]={}; outGunnerMayFire=1; inGunnerMayFire=0; stabilizedInAxes=0; gunnerCompartments="Compartment1"; }; class CargoTurret_06: CargoTurret_05 { proxyIndex=6; gunnerName="Inside Right Back FFV"; animationSourceHatch="HatchRB"; memoryPointsGetInGunner="pos cargo ffv right"; memoryPointsGetInGunnerDir="pos cargo ffv right dir"; }; class CargoTurret_07: CargoTurret_05 { proxyIndex=7; gunnerName="Inside Left Back FFV"; animationSourceHatch="HatchLB"; memoryPointsGetInGunner="pos cargo ffv left"; memoryPointsGetInGunnerDir="pos cargo ffv left dir"; }; class CargoTurret_08: CargoTurret_05 { proxyIndex=8; gunnerName="Inside Left Front FFV"; animationSourceHatch="HatchLF"; memoryPointsGetInGunner="pos cargo ffv left"; memoryPointsGetInGunnerDir="pos cargo ffv left dir"; }; }; class AnimationSources: AnimationSources { class recoil { source="reload"; weapon="CUP_Vacannon_2A28"; }; class muzzle_rot_coax { source="ammorandom"; weapon="CUP_Vhmg_PKT_veh_noeject"; }; class AT3_rocket { source="reload"; weapon="CUP_Vmlauncher_AT3_veh"; }; class BackDoor { source="door"; animPeriod=0.80000001; }; class BackDoor2: BackDoor { }; class HatchC: BackDoor { }; class HatchG: HatchC { }; class HatchD: HatchC { }; class CargoHatchRight: HatchC { }; class CargoHatchLeft: HatchC { }; }; hiddenSelections[]= { "camo1", "camo2", "camo3" }; hiddenSelectionsTextures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\trup_ext0_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\veza0_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\Data\bmp2_02_tka_co" }; class TextureSources { class TKA { DisplayName="Takistan Army"; author="CUP"; textures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\trup_ext0_tak_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\veza0_tak_CO" }; factions[]={}; }; class TKG { DisplayName="Takistan Rebels"; author="CUP"; textures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\trup_ext0_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\veza0_CO" }; factions[]={}; }; class CSAT { DisplayName="CSAT"; author="CUP"; textures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\trup_ext0_csat_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\veza0_csat_CO" }; factions[]={}; }; class CSAT_T { DisplayName="CSAT Tropical"; author="CUP"; textures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\trup_ext0_csat_t_CO", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\Data\veza0_csat_t_CO" }; factions[]={}; }; }; class Damage { tex[]={}; mat[]= { "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\trup_ext.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\trup_damage.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\trup_destruct.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\veza.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\veza_damage.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP\data\veza_destruct.rvmat", "a3\data_f\default.rvmat", "a3\data_f\default.rvmat", "a3\data_f\default_destruct.rvmat" }; }; smokeLauncherGrenadeCount=8; smokeLauncherVelocity=14; smokeLauncherOnTurret=1; smokeLauncherAngle=120; class ViewOptics: ViewOptics { visionMode[]= { "Normal", "NVG" }; }; class Exhausts { class Exhaust1 { position="vyfuk start"; direction="vyfuk konec"; effect="ExhaustEffectTankBack"; }; }; class Reflectors { class Left { color[]={1900,1300,950}; ambient[]={5,5,5}; position="l svetlo"; direction="konec l svetla"; hitpoint="l svetlo"; selection="L svetlo"; size=1; innerAngle=100; outerAngle=179; coneFadeCoef=10; intensity=1; useFlare=0; dayLight=0; flareSize=1; class Attenuation { start=1; constant=0; linear=0; quadratic=0.25; hardLimitStart=30; hardLimitEnd=60; }; }; class Right: Left { position="p svetlo"; direction="konec p svetla"; hitpoint="p svetlo"; selection="P svetlo"; }; class Right2: Right { direction="konec p svetla"; useFlare=1; }; class Left2: Left { direction="konec l svetla"; useFlare=1; }; class SearchLight: Left { position="S svetlo"; direction="konec S svetla"; hitpoint="S svetlo"; selection="S svetlo"; }; class TurretLight: Left { position="V svetlo"; direction="konec V svetla"; hitpoint="V svetlo"; selection="V svetlo"; }; }; aggregateReflectors[]= { { "Left", "Right" }, { "SearchLight" }, { "TurretLight" } }; class RenderTargets { class driverView1 { renderTarget="rendertarget1"; class Camera { pointPosition="dVis1P"; pointDirection="dVis1D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView2 { renderTarget="rendertarget2"; class Camera { pointPosition="dVis2P"; pointDirection="dVis2D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView3 { renderTarget="rendertarget3"; class Camera { pointPosition="dVis3P"; pointDirection="dVis3D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView4 { renderTarget="rendertarget4"; class Camera { pointPosition="dVis4P"; pointDirection="dVis4D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class commanderView1 { renderTarget="rendertarget5"; class Camera { pointPosition="cVis1P"; pointDirection="cVis1D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class commanderView2 { renderTarget="rendertarget6"; class Camera { pointPosition="cVis2P"; pointDirection="cVis2D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class gunnerView1 { renderTarget="rendertarget7"; class Camera { pointPosition="gVis1P"; pointDirection="gVis1D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class gunnerView2 { renderTarget="rendertarget8"; class Camera { pointPosition="gVis2P"; pointDirection="gVis2D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class gunnerView3 { renderTarget="rendertarget9"; class Camera { pointPosition="gVis3P"; pointDirection="gVis3D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class gunnerView4 { renderTarget="rendertarget10"; class Camera { pointPosition="gVis4P"; pointDirection="gVis4D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; }; class VehicleTransport { class Cargo { parachuteClass="B_Parachute_02_F"; parachuteHeightLimit=40; canBeTransported=1; dimensions[]= { "BBox_1_1_pos", "BBox_1_2_pos" }; }; }; slingLoadCargoMemoryPoints[]= { "SlingLoadCargo1", "SlingLoadCargo2", "SlingLoadCargo3", "SlingLoadCargo4" }; ace_refuel_fuelCapacity=460; }; class O_APC_Tracked_02_base_F: APC_Tracked_02_base_F //CUP_BMP2_base { accuracy=1000; displayName="BMP-2"; model="cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\BMP2"; hideWeaponsCargo=1; transportSoldier=5; scope=0; driverForceOptics=1; cargoProxyIndexes[]={1,2,3,4,5,11,12,13,14}; cargoProxyorder[]={1,2,3,4,5,11,12,13,14}; hiddenselections[]= { "Camo1", "Camo2" }; hiddenselectionstextures[]= { "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\bmp2_khk_01_co.paa", "\cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\bmp2_khk_02_co.paa" }; class TextureSources { class TKA { DisplayName="Takistan Army"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_tka_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_tka_co.paa" }; factions[]={}; }; class UN { DisplayName="United Nations"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_un_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_un_co.paa" }; factions[]={}; }; class SLA { DisplayName="SLA"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_sla_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_sla_co.paa" }; factions[]={}; }; class RU { DisplayName="Russian Army"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_ru_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_ru_co.paa" }; factions[]={}; }; class NAPA { DisplayName="NAPA"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_khk_01_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_khk_02_co.paa" }; factions[]={}; }; class CZ_WDL { DisplayName="Czech Army (WDL)"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_acr_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_acr_co.paa" }; factions[]={}; }; class CZ_DES { DisplayName="Czech Army (DES)"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_acr_des_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_acr_des_co.paa" }; factions[]={}; }; class CSAT { DisplayName="CSAT"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_csat_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_csat_co.paa" }; factions[]={}; }; class CSAT_T { DisplayName="CSAT Tropical"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_csat_t_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_csat_t_co.paa" }; factions[]={}; }; class Chdkz { DisplayName="CHDKZ"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_co.paa" }; factions[]={}; }; class CDF { DisplayName="CDF"; author="CUP"; textures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_camo_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_camo_co.paa" }; factions[]={}; }; }; class Reflectors { class Left { color[]={1900,1300,950}; ambient[]={5,5,5}; position="l svetlo"; direction="konec l svetla"; hitpoint="l svetlo"; selection="L svetlo"; size=1; innerAngle=100; outerAngle=179; coneFadeCoef=10; intensity=1; useFlare=0; dayLight=0; flareSize=1; class Attenuation { start=1; constant=0; linear=0; quadratic=0.25; hardLimitStart=30; hardLimitEnd=60; }; }; class Right: Left { position="p svetlo"; direction="konec p svetla"; hitpoint="p svetlo"; selection="P svetlo"; }; class Right2: Right { direction="konec p svetla"; useFlare=1; }; class Left2: Left { direction="konec l svetla"; useFlare=1; }; class GunnerLight: Left { position="gunner svetlo"; direction="konec gunner svetlo"; hitpoint="gunner svetlo"; selection="gunner svetlo"; }; }; aggregateReflectors[]= { { "GunnerLight" }, { "LeftLight", "RightLight" } }; class AnimationSources: AnimationSources { class recoil_source { source="reload"; weapon="CUP_Vacannon_2A42_veh"; }; class muzzle_rot_main { source="ammorandom"; weapon="CUP_Vacannon_2A42_veh"; }; class muzzle_hide_main { source="reload"; weapon="CUP_Vacannon_2A42_veh"; }; class BackDoor { source="door"; animPeriod=0.80000001; }; class BackDoor2: BackDoor { }; class HatchC: BackDoor { }; class HatchG: HatchC { }; class HatchD: HatchC { }; class CargoHatchRight: HatchC { }; class CargoHatchLeft: HatchC { }; }; class Turrets: Turrets { class MainTurret: MainTurret { maxelev=74; minelev=-5; maxHorizontalRotSpeed=0.93000001; maxVerticalRotSpeed=0.18700001; gunnerForceOptics=1; turretInfoType="CUP_RscOptics_gunner_CO"; discreteDistance[]={100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000}; discreteDistanceInitIndex=3; class ViewOptics: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.101; minFov=0.102; maxFov=0.102; visionMode[]= { "Normal" }; }; class OpticsIn { class Periscope: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.46666601; minFov=0.46666601; maxFov=0.46666601; visionMode[]= { "Normal" }; gunnerOpticsModel="\a3\weapons_f\reticle\Optics_Driver_01_f"; gunnerOpticsEffect[]= { "TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera2" }; }; class Wide: ViewOptics { initAngleX=0; minAngleX=-30; maxAngleX=30; initAngleY=0; minAngleY=-100; maxAngleY=100; initFov=0.30000001; minFov=0.30000001; maxFov=0.30000001; visionMode[]= { "Normal", "NVG" }; thermalMode[]={4,5}; gunnerOpticsModel="\CUP\WheeledVehicles\CUP_WheeledVehicles_BRDM2\2Dscope_BMPgun.p3d"; gunnerOpticsEffect[]={}; }; class Medium: Wide { gunnerOpticsModel="\CUP\WheeledVehicles\CUP_WheeledVehicles_BRDM2\2Dscope_BMPgun.p3d"; initFov=0.07; minFov=0.07; maxFov=0.07; }; }; weapons[]= { "CUP_Vacannon_2A42_veh", "CUP_Vhmg_PKT_veh_noeject", "CUP_Vmlauncher_AT5_single_veh" }; magazines[]= { "CUP_250Rnd_TE1_Green_Tracer_30mmHE_2A42_M", "CUP_250Rnd_TE1_Green_Tracer_30mmAP_2A42_M", "CUP_8Rnd_AT5_BMP2_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M", "CUP_250Rnd_TE1_Green_Tracer_762x54_PKT_M" }; class Turrets: Turrets { class CommanderOptics: CommanderOptics { commanding=2; gunnerForceOptics=1; gunbeg="gun_muzzle"; gunend="gun_chamber"; magazines[]= { "SmokeLauncherMag" }; weapons[]= { "SmokeLauncher" }; }; }; }; class CargoTurret_01: CargoTurret_01 { gunnerAction="passenger_inside_1"; gunnerInAction="passenger_inside_1"; }; class CargoTurret_02: CargoTurret_02 { gunnerAction="passenger_inside_1"; gunnerInAction="passenger_inside_1"; }; class CargoTurret_03: CargoTurret_03 { gunnerAction="passenger_inside_1"; gunnerInAction="passenger_inside_1"; }; class CargoTurret_04: CargoTurret_04 { gunnerAction="passenger_inside_1"; gunnerInAction="passenger_inside_1"; }; class CargoTurret_05: CargoTurret_05 { proxyIndex=6; minOutElev=-15; maxOutElev=25; gunnerName="Inside Right FFV"; animationSourceHatch="CargoHatchRight"; }; class CargoTurret_07: CargoTurret_07 { minOutElev=-20; maxOutElev=20; gunnerName="Inside Left FFV"; animationSourceHatch="CargoHatchLeft"; }; }; smokeLauncherGrenadeCount=6; smokeLauncherVelocity=14; smokeLauncherOnTurret=1; smokeLauncherAngle=100; class Damage { mat[]= { "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_01.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_01_damage.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_01_destruct.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_02.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_02_damage.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\BMP2_02_destruct.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\bmp2_pasy.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\bmp2_pasy_damage.rvmat", "cup\trackedvehicles\cup_trackedvehicles_bmp\BMP2\data\bmp2_pasy_destruct.rvmat", "a3\data_f\default.rvmat", "a3\data_f\default.rvmat", "a3\data_f\default_destruct.rvmat" }; tex[]={}; }; class RenderTargets { class driverView1 { renderTarget="rendertarget1"; class Camera { pointPosition="dVis1P"; pointDirection="dVis1D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView2 { renderTarget="rendertarget2"; class Camera { pointPosition="dVis2P"; pointDirection="dVis2D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView3 { renderTarget="rendertarget3"; class Camera { pointPosition="dVis3P"; pointDirection="dVis3D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; class driverView4 { renderTarget="rendertarget4"; class Camera { pointPosition="dVis4P"; pointDirection="dVis4D"; renderVisionMode=0; renderQuality=2; fov=0.60000002; }; }; }; }; class O_APC_Tracked_02_cannon_F: O_APC_Tracked_02_base_F //CUP_O_BMP2_TKA { scope=2; side=0; accuracy=0.30000001; faction="OPF_F"; crew="O_crew_F"; typicalCargo[]= { "O_crew_F", "O_crew_F", "O_crew_F", "O_crew_F" }; author="$STR_CUP_AUTHOR_STRING"; dlc="CUP_Vehicles"; hiddenSelectionsTextures[]= { "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_01_csat_co.paa", "cup\TrackedVehicles\CUP_TrackedVehicles_BMP\bmp2\data\bmp2_02_csat_co.paa" }; editorPreview="CUP\TrackedVehicles\CUP_TrackedVehicles_BMP\Data\preview\CUP_O_BMP2_CSAT.jpg"; class TransportWeapons { class _xx_arifle_Katiba_F { weapon="arifle_Katiba_F"; count=4; }; class _xx_launch_RPG32_F { weapon="launch_RPG32_F"; count=2; }; }; class TransportMagazines { class _xx_30Rnd_65x39_caseless_green { magazine="30Rnd_65x39_caseless_green"; count=20; }; class _xx_150Rnd_762x54_Box { magazine="150Rnd_762x54_Box"; count=4; }; class _xx_1Rnd_HE_Grenade_shell { magazine="1Rnd_HE_Grenade_shell"; count=10; }; class _xx_RPG32_F { magazine="RPG32_F"; count=2; }; class _xx_HandGrenade { magazine="HandGrenade"; count=4; }; class _xx_SmokeShell { magazine="SmokeShell"; count=4; }; class _xx_SmokeShellOrange { magazine="SmokeShellOrange"; count=4; }; class _xx_Chemlight_Red { magazine="Chemlight_Red"; count=4; }; }; maximumLoad=5000; class TransportItems { class _xx_FirstAidKit { name="FirstAidKit"; count=20; }; class _xx_MediKit { name="MediKit"; count=2; }; class _xx_ToolKit { name="ToolKit"; count=1; }; }; class TransportBackpacks { class _xx_B_AssaultPack_ocamo { backpack="B_AssaultPack_ocamo"; count=8; }; }; }; Well, this did not help. What I got to know is, that somehow the weapons, given with my mod, are not given to the vehicle. It kept the vanilla weapons instead, which brings me to the conclusion, that there is another file, which I did not have mentioned in cfg patches, which overwrites my mod and therefore cause this error. Is there any way, to get to know from the configviewer, from which file a specific line comes from? Share this post Link to post Share on other sites
.kju 3245 Posted May 13, 2018 1. please use pastebin for bigger code blocks 2. whats the cfgPatches 3. make sure to use AIO configs 4. you are only to replace the minimum set of parameters - not copy paste the whole class Share this post Link to post Share on other sites
predoc 10 Posted May 13, 2018 OK thanks, I gonna try my best. EDIT: I got the turret working properly. Even the crew does not glitch anymore. And the texture issue was caused by a remaining textureList[] = {"Hex", 1}; ... replaces with my preferred Skin and voila everything works fine. By the way, is there any way to solve this problem: CUP_BMP2_base; class O_APC_Tracked_02_cannon_F: CUP_BMP2_base //CUP_O_BMP2_TKA { Turrets:Turrets //<-- this will cause some error and if I put only the class parents into CUP_BMP2_base this causes non function of the turret { some code}; }; Without placing all the original code from CUP_BMP2_base into my mod file. I want to be as minimalistic and don't want to replace all the code if the original modders update his mod. Share this post Link to post Share on other sites