Results 1 to 7 of 7

Thread: Base class vehicles... just vanished..?

  1. #1
    Master Gunnery Sergeant
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168

    Base class vehicles... just vanished..?

    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

    Heres my config below too if it helps :
    PHP Code:
    // 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_Camel6Rnd_Grenade_Camel 
        
    count 3
        }; 
    };
    class 
    cfgWeapons 
        class 
    CamelGrenades
        class 
    CamelGrenades2CamelGrenades 
        

            
    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.5623411.0};
            
    soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg"0.7943281.0800};
            
    soundEngine[] = {"\kyo_microlight\Sound\camel1.wss"11};
            
    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.5623411.0};
            
    soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg"0.7943281.0800};
            
    soundEngine[] = {"\kyo_microlight\Sound\camel1.wss"11};
            
    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.5623411.0};
            
    soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg"0.7943281.0800};
            
    soundEngine[] = {"\kyo_microlight\Sound\camel1.wss"11};
            
    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


    Follow konyo.webs On Twitter : https://twitter.com/konyoWebs

  2. #2
    Look at your RPT. It will mention class Plane mess up.

    It should be:
    Code:
    class Air;
    class Plane: Air { class ViewPilot; };
    A.C.E. Advanced Combat Environment

    Dev-Heaven.net Free Project Hosting | A2 Community Issue Tracker Help BIS, Help yourself!

  3. #3
    Master Gunnery Sergeant
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by Sickboy View Post
    Look at your RPT. It will mention class Plane mess up.

    It should be:
    Code:
    class Air;
    class Plane: Air { class ViewPilot; };
    Ok thanks ive correct that config error :P

    Looked in rpt & have this showing :
    Code:
    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/
    Last edited by konyo; Mar 6 2012 at 17:07.

  4. #4
    Master Gunnery Sergeant
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    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
    Last edited by konyo; Mar 8 2012 at 12:27.

  5. #5
    Master Gunnery Sergeant
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Sorry to be a pain But anyone know the answer to this? As this is the only thing holding back it's release.

  6. #6
    Suggest
    PHP Code:
    class cfgVehicles 
    class 
    Plane;
        class 
    MyXPlane Plane {
               class 
    ViewPilot;
           };
        class 
    kyo_microlight MyXPlane 
            
    scope = public; 
    Suggest

  7. #7
    Master Gunnery Sergeant
    Join Date
    Jun 26 2009
    Location
    United kingdom
    Posts
    1,168
    Author of the Thread
    Quote Originally Posted by [APS]Gnat View Post
    Suggest
    PHP Code:
    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
    Last edited by konyo; Mar 9 2012 at 15:18.

Similar Threads

  1. undefined base class problem
    By ghost123 in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 0
    Last Post: Dec 24 2011, 17:57
  2. updating base class randomness :x
    By Sakura_Chan in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 2
    Last Post: Nov 14 2011, 08:49
  3. undefined base class...im sure i did
    By Slatts in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 5
    Last Post: Mar 15 2011, 15:32
  4. Undefined base class, help.
    By logimenn in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 8
    Last Post: Jul 15 2009, 13:48
  5. Base Class
    By binkster in forum ARMA - ADDONS & MODS: DISCUSSION
    Replies: 2
    Last Post: Jan 12 2007, 04:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •