konyo 14 Posted March 6, 2012 Im working on adding another vehicle to my microlight pack but now ive added the new vehicle into the config to try in game, but however when i load it in game, the different colour microlight's just vanish? There setup by base classes in the config. For example before i had the new model in game, i had a Blue, Yellow & Army Camo Colour scheme Microlight in game too, just defined in the config like this 'class kyo_microlight_blue : kyo_microlight {' Which would then use the main microlight config as a base and make a blue microlight appear in game by hidden selection. So now these have all disapeared in game with no trace of them at all (No errors). Only the main base ones are showing up now :confused: Heres my config below too if it helps : // Config written by 'konyo' // Microlight v1.4 // 15:07 06/03/2012 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class kyo_microlight { units[] = {}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgMagazines { class 6Rnd_Grenade_Camel; class 3Rnd_Grenade_Camel: 6Rnd_Grenade_Camel { count = 3; }; }; class cfgWeapons { class CamelGrenades; class CamelGrenades2: CamelGrenades { magazines[] = {"6Rnd_Grenade_Camel","3Rnd_Grenade_Camel"}; }; }; class cfgVehicles { class Plane {class ViewPilot;}; //Inherit base class & Inherit ViewPilot. class kyo_microlight : Plane { scope = public; model = "\kyo_microlight\kyo_microlight.p3d"; displayName = "Microlight (Red) (350cc)"; vehicleClass = "Air"; Icon = "\kyo_microlight\Textures\ico\kyo_microlight.paa"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_red_pic.paa"; side = 3; faction = CIV; crew = "RU_Pilot"; DriverAction = "UH60_Pilot"; getInAction = "GetInLow"; maxSpeed = 110; // max speed on level road, km/h nameSound = "plane"; soundEngineOnInt[] = {"\kyo_microlight\Sound\Start.ogg", 0.562341, 1.0}; soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg", 0.794328, 1.0, 800}; soundEngine[] = {"\kyo_microlight\Sound\camel1.wss", 1, 1}; armor = 10; camouflage = 3; audible = 2; fuelCapacity=520; aileronSensitivity = 0.06; elevatorSensitivity = 0.12; wheelSteeringSensitivity = .25; transportSoldier = 0; flaps = 0; gearRetracting = 0; cost = 500; destrType = "DestructNo"; ejectDeadDriver = 1; brakeDistance = 8; envelope[] ={0.0,2.5,3.1,3.3,3.5,3.5,3.5,3.4,2.9,2.7,2.1,1.5}; insideSoundCoef = 0.95; castDriverShadow = 1; ejectSpeed[] ={0,0,0}; viewDriverShadow = 1; viewDriverShadowDiff = 1; viewDriverShadowAmb = 1; noseDownCoef = 0.5; hiddenSelections[] = {"parachute"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\parachute_co.paa"}; class ViewPilot : ViewPilot { initAngleX = 0; minAngleX = -40; maxAngleX = 17; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.5; minFov = 0.3; maxFov = 1.2; }; class Library { libTextDesc = "A 350cc Microlight Aircraft. (Aka - Powered Paragliding) It's just a parachute where the pilot wears a Paramotor on his or her's back, these usually range from 80cc to 350cc. Powered paragliders usually fly between speeds of 15 and 45 mph (25 and 70 km/h) and at altitudes of 'foot-dragging in the grass' or up to 18,000 ft (5400 m)"; }; }; class kyo_ultralight : Plane { scope = public; model = "\kyo_microlight\kyo_ultralight.p3d"; displayName = "Ultralight (350cc)"; vehicleClass = "Air"; Icon = "\kyo_microlight\Textures\ico\kyo_ultralight.paa"; picture = "\kyo_microlight\Textures\ico\kyo_ultralight_green_pic.paa"; side = 3; faction = CIV; crew = "RU_Pilot"; DriverAction = "BMP3_Driver"; getInAction = "GetInLow"; maxSpeed = 135; // max speed on level road, km/h nameSound = "plane"; soundEngineOnInt[] = {"\kyo_microlight\Sound\Start.ogg", 0.562341, 1.0}; soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg", 0.794328, 1.0, 800}; soundEngine[] = {"\kyo_microlight\Sound\camel1.wss", 1, 1}; armor = 20; camouflage = 4; audible = 2; fuelCapacity=520; aileronSensitivity = 0.06; elevatorSensitivity = 0.12; wheelSteeringSensitivity = .25; transportSoldier = 1; cargoAction[] = {"UH60_Cargo02"}; typicalCargo[] = {"RU_Pilot"}; flaps = 0; gearRetracting = false; cost = 500; destrType = "DestructNo"; ejectDeadDriver = 1; brakeDistance = 8; envelope[] ={0.0,2.5,3.1,3.3,3.5,3.5,3.5,3.4,2.9,2.7,2.1,1.5}; insideSoundCoef = 0.95; castDriverShadow = 1; ejectSpeed[] ={0,0,0}; viewDriverShadow = 1; viewDriverShadowDiff = 1; viewDriverShadowAmb = 1; noseDownCoef = 0.5; hiddenSelections[] = {"kite"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\kite_red.paa"}; class ViewPilot : ViewPilot { initAngleX = 0; minAngleX = -40; maxAngleX = 17; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.5; minFov = 0.3; maxFov = 1.2; }; }; class Helicopter {class ViewPilot;}; //Inherit base class & Inherit ViewPilot. class kyo_Helicopter : Helicopter { scope = public; model = "\kyo_microlight\kyo_Helicopter.p3d"; displayName = "Ultralight Helicopter (350cc)"; vehicleClass = "Air"; Icon = "\kyo_microlight\Textures\ico\kyo_helicopter.paa"; picture = "\kyo_microlight\Textures\ico\kyo_ultralight_green_pic.paa"; side = 3; faction = CIV; crew = "RU_Pilot"; DriverAction = "UH60_Pilot"; getInAction = "GetInLow"; maxSpeed = 135; // max speed on level road, km/h nameSound = "helicopter"; soundEngineOnInt[] = {"\kyo_microlight\Sound\Start.ogg", 0.562341, 1.0}; soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg", 0.794328, 1.0, 800}; soundEngine[] = {"\kyo_microlight\Sound\camel1.wss", 1, 1}; armor = 20; camouflage = 4; audible = 3; fuelCapacity=600; transportSoldier = 0; flaps = 0; gearRetracting = false; cost = 500; ejectDeadDriver = 0; class ViewPilot : ViewPilot { initAngleX = 0; minAngleX = -40; maxAngleX = 17; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.5; minFov = 0.3; maxFov = 1.2; }; }; }; class kyo_microlight; //Inherit base class. class kyo_microlight_yellow : kyo_microlight { displayName = "Microlight (Yellow) (350cc)"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_yellow_pic.paa"; hiddenSelections[] = {"parachute"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\parachute_co_yellow.paa"}; }; class kyo_microlight_blue : kyo_microlight { displayName = "Microlight (Blue) (350cc)"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_blue_pic.paa"; hiddenSelections[] = {"parachute"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\parachute_co_blue.paa"}; }; class kyo_microlight_military : kyo_microlight { displayName = "Microlight (Military) (350cc)"; crew = "USMC_Soldier_Pilot"; faction = USMC; side = 1; vehicleClass = "Air"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_military_pic.paa"; weapons[]={"CamelGrenades2"}; magazines[]={"6Rnd_Grenade_Camel"}; hiddenSelections[] = {"parachute"}; hiddenSelectionsTextures[] = {"\ca\air\Data\parachute_co.paa"}; class Library { libTextDesc = "A 350cc Microlight Aircraft. (Aka - Powered Paragliding) In some armies, powered paragliding is used to insert special forces soldiers into specific areas. The Lebanese Airborne regiment adopted this technique in 2008."; }; }; }; Can someone please help me? Regards, konyo Share this post Link to post Share on other sites
sickboy 13 Posted March 6, 2012 Look at your RPT. It will mention class Plane mess up. It should be: class Air; class Plane: Air { class ViewPilot; }; Share this post Link to post Share on other sites
konyo 14 Posted March 6, 2012 (edited) Look at your RPT. It will mention class Plane mess up.It should be: class Air; class Plane: Air { class ViewPilot; }; Ok thanks ive correct that config error :P Looked in rpt & have this showing : ErrorMessage: File kyo_microlight\config.cpp, line 136: /cfgVehicles.kyo_Helicopter: Undefined base class 'Helicopter' ErrorMessage: File kyo_microlight\config.cpp, line 164: /cfgVehicles/kyo_Helicopter.ViewPilot: Undefined base class 'ViewPilot' ErrorMessage: File kyo_microlight\config.cpp, line 178: .kyo_microlight_military: Undefined base class 'kyo_microlight' Updating base class Air->, by kyo_microlight\config.cpp/cfgVehicles/Plane/ Updating base class Air->, by kyo_microlight\config.cpp/cfgVehicles/Helicopter/ Updating base class ->VehicleMagazine, by ca\weapons\config.bin/CfgMagazines/6Rnd_Grenade_Camel/ Updating base class ->RocketPods, by ca\weapons\config.bin/cfgWeapons/CamelGrenades/ Updating base class B_9x18_Ball->BulletBase, by anders_c_cracks\config.bin/CfgAmmo/B_9x19_Ball/ Updating base class ->Air, by ca\air\config.bin/CfgVehicles/Helicopter/ Updating base class ->Air, by ca\air\config.bin/CfgVehicles/Plane/ Edited March 6, 2012 by konyo Share this post Link to post Share on other sites
konyo 14 Posted March 7, 2012 (edited) Sorry for double post, orginal post was deleted. EDIT : Ive also found that this has come up when loading a mission which had the blue microlight on. http://konyo.webs.com/Photos/Error%20Photos/Error1.jpg Edited March 8, 2012 by konyo Share this post Link to post Share on other sites
konyo 14 Posted March 9, 2012 Sorry to be a pain :( But anyone know the answer to this? As this is the only thing holding back it's release. Share this post Link to post Share on other sites
[aps]gnat 28 Posted March 9, 2012 Suggest class cfgVehicles { class Plane; class MyXPlane : Plane { class ViewPilot; }; class kyo_microlight : MyXPlane { scope = public; Suggest Share this post Link to post Share on other sites
konyo 14 Posted March 9, 2012 (edited) Gnat;2117635']Suggest class cfgVehicles { class Plane; class MyXPlane : Plane { class ViewPilot; }; class kyo_microlight : MyXPlane { scope = public; Suggest Thanks Gnat. Will add this into my config also. Soul_Assassin solved my problem this afternoon :) Also while im here & have a topic, Is there anyway i can lower the 'Flying' Speed when you go to spawn a vehicle and set it to 'Flying'? My microlight spawns as a speed thats too fast for it and its crashes? Anyway to lower to it? Regards, konyo Edited March 9, 2012 by konyo Share this post Link to post Share on other sites