• 0
DayZed

Add vehicles isnt easy... or...?

Question

Hello Community

in order to add vehicles to the server i start with investigations HERE...!

i get some infos and the most end with:  Add vehicles in mission > config.cpp > cfgExileArsenal and cfgTraderCategories,  if you have a tow-script you need to add the new vehicles there2..

i add one vehicles in the above categories and the server stuck.  After some checks of value about price, i give up...sadly because i dont find a idear...

 

at first i like to add a Pawnee and a Marshall Tank "B_Heli_01_dynamicLoudout_F" and "B_APC_Wheeled_01_cannon_F" to the Traders and set the Value for respect and price.

my questions now:

  • where do i add vehicles like Tanks and Heli? 
  • are nonExile vehicles are addable?
  • where do i add the respect-value of a vehicle thats buyable at the trader?
  • is the price and respect free in value or do we have restrictions? (respect, i see the level 1-6...)

 

Thanks for your time,

HansPeter

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Instructions:using notepad++


    Edit config.cpp in your mpmissions>exile.altis.pbo
    Add required vehicle under the following subsections:

 

class CfgExileArsenal

    ///////////////////////////////////////////////////////////////////////////////
    // DMS
    ///////////////////////////////////////////////////////////////////////////////
     class I_C_Offroad_02_unarmed_F                            { quality = 2; price = 15000; };                                                                   
     class C_Offroad_02_unarmed_F                            { quality = 2; price = 15000; };                                                                      
     class I_C_Van_01_transport_F                             { quality = 2; price = 12000; };                                       
     class O_T_LSV_02_unarmed_F                                { quality = 3; price = 21000; };                         
     class O_T_LSV_02_unarmed_black_F                          { quality = 3; price = 21000; };
     class B_T_LSV_01_unarmed_F                               { quality = 3; price = 22000; };                         
     class B_LSV_01_unarmed_black_F                           { quality = 3; price = 22000; };
     class O_T_LSV_02_armed_F                               { quality = 4; price = 28000; };                                       
     class B_T_LSV_01_armed_F                                { quality = 4; price = 30000; };
    
    ///////////////////////////////////////////////////////////////////////////////
    // MORE VANS ETC
    ///////////////////////////////////////////////////////////////////////////////    
     class B_GEN_Van_02_transport_F                       { quality = 2; price = 18000; };
     class B_GEN_Van_02_vehicle_F                         { quality = 2; price = 18000; };
     class B_GEN_Offroad_01_gen_F                         { quality = 2; price = 17000; };
     class O_G_Van_02_vehicle_F                           { quality = 3; price = 18000; };
     class O_G_Van_02_transport_F                         { quality = 3; price = 18000; };
     class C_Truck_02_covered_F                           { quality = 4; price = 35000; };
     class C_Truck_02_transport_F                         { quality = 4; price = 35000; };
     
    ///////////////////////////////////////////////////////////////////////////////
    // HEMMT
    ///////////////////////////////////////////////////////////////////////////////
        class B_UGV_01_rcws_F                           { quality = 3; price = 30000; };
    class C_IDAP_Truck_02_transport_F                    { quality = 3; price = 30000; };
    class C_IDAP_Truck_02_F                                { quality = 3; price = 45000; };          
    class C_IDAP_Truck_02_water_F                        { quality = 3; price = 45000; };    
    class Exile_Car_HEMMT                                 { quality = 3; price = 48000; };
    class I_Truck_02_medical_F                          { quality = 6; price = 40000; };
    class O_Truck_02_Ammo_F                             { quality = 6; price = 45000; };
    class B_Truck_01_fuel_F                             { quality = 6; price = 30000; };
    class O_T_Truck_03_device_ghex_F                    { quality = 6; price = 40000; };

        ///////////////////////////////////////////////////////////////////////////////
    // Strider
    ///////////////////////////////////////////////////////////////////////////////
    class B_G_Van_02_vehicle_F                           { quality = 3; price = 18000; };
    class B_G_Van_02_transport_F                         { quality = 3; price = 18000; };
    class I_C_Van_02_vehicle_F                           { quality = 3; price = 18000; };
    class I_C_Van_02_transport_F                         { quality = 3; price = 18000; };
    class C_Van_02_medevac_F                             { quality = 3; price = 18000; };
    class C_Van_02_vehicle_F                             { quality = 3; price = 18000; };
    class C_Van_02_service_F                             { quality = 3; price = 18000; };
    class C_Van_02_transport_F                           { quality = 3; price = 18000; };
    class C_IDAP_Van_02_medevac_F                        { quality = 3; price = 18000; };
    class C_IDAP_Van_02_vehicle_F                        { quality = 3; price = 18000; };
    class C_IDAP_Van_02_transport_F                        { quality = 3; price = 18000; };
    class C_IDAP_Offroad_01_F                           { quality = 3; price = 15000; };
    class C_IDAP_Offroad_02_unarmed_F                    { quality = 3; price = 15000; };
    class Exile_Car_Strider                             { quality = 6; price = 44000; };
    class I_MRAP_03_hmg_F                               { quality = 6; price = 60000; };
    class I_MRAP_03_gmg_F                               { quality = 6; price = 65000; };
    

        ///////////////////////////////////////////////////////////////////////////////
    // Ifrit
    ///////////////////////////////////////////////////////////////////////////////
    class Exile_Car_Ifrit                                 { quality = 4; price = 23000; };
    class O_MRAP_02_hmg_F                               { quality = 6; price = 45000; };
    class O_MRAP_02_gmg_F                               { quality = 6; price = 50000; };
    class O_MBT_02_arty_F                               { quality = 6; price = 90000; };
    class O_MBT_04_cannon_F                             { quality = 6; price = 100000; };
    class I_LT_01_cannon_F                              { quality = 6; price = 100000; };
    class B_AFV_Wheeled_01_up_cannon_F                  { quality = 6; price = 100000; };
    class B_MBT_01_TUSK_F                               { quality = 6; price = 100000; };
    class B_APC_Wheeled_01_cannon_F                     { quality = 6; price = 85000; };
    class I_APC_Wheeled_03_cannon_F                     { quality = 6; price = 100000; };
        
        
        
        
    ///////////////////////////////////////////////////////////////////////////////
    // V-44 X Blackfish
    ///////////////////////////////////////////////////////////////////////////////
    class C_IDAP_Heli_Transport_02_F                           { quality = 4; price = 30000; };
    class B_Heli_Transport_03_F                                   { quality = 6; price = 80000; };
    class Exile_Plane_BlackfishInfantry                            { quality = 6; price = 60000; };
    class Exile_Plane_BlackfishVehicle                            { quality = 6; price = 60000; };
    class B_T_VTOL_01_armed_F                                   { quality = 6; price = 100000; };
    class B_Heli_Attack_01_F                                     { quality = 6; price = 100000; };
    class O_Heli_Transport_04_fuel_F                            { quality = 4; price = 40000; };
    class B_Plane_CAS_01_F                                      { quality = 6; price = 100000; };
    class B_Plane_Fighter_01_Stealth_F                           { quality = 6; price = 100000; };    
    class B_UAV_05_F                                            { quality = 6; price = 50000; };    
    
    ///////////////////////////////////////////////////////////////////////////////
    // MOTOR BOATS
    ///////////////////////////////////////////////////////////////////////////////
    class I_Boat_Armed_01_minigun_F                { quality = 6; price = 40000; };   

    
class CfgTraderCategories

      Quote

         class Cars
    {
        name = "Cars";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] =
        {
            "B_UGV_01_rcws_F",
                        "Exile_Car_Kart_Black",
            "Exile_Bike_QuadBike_Black",
            "Exile_Car_Lada_Green",
            "Exile_Car_Volha_White",
            "Exile_Car_Hatchback_Rusty1",
            "Exile_Car_Hatchback_Rusty2",
            "Exile_Car_Hatchback_Rusty3",
            "Exile_Car_Hatchback_Sport_Red",
            "Exile_Car_SUV_Red",
            "Exile_Car_SUVXL_Black",
            "Exile_Car_Offroad_Rusty1",
            "Exile_Car_Offroad_Rusty2",
            "Exile_Car_Offroad_Rusty3",
            "Exile_Car_Offroad_Repair_Civillian",
            "Exile_Car_Offroad_Armed_Guerilla01",
            
            "I_C_Offroad_02_unarmed_F",                                                                                         
            "C_Offroad_02_unarmed_F",                                                                                            
            "I_C_Van_01_transport_F",                                                              
            "O_T_LSV_02_unarmed_F",                                                   
            "O_T_LSV_02_unarmed_black_F",                          
            "B_T_LSV_01_unarmed_F",                                                  
            "B_LSV_01_unarmed_black_F",                           
            "O_T_LSV_02_armed_F",                                                                
            "B_T_LSV_01_armed_F",   

            "B_GEN_Van_02_transport_F",
            "B_GEN_Van_02_vehicle_F",
            "B_GEN_Offroad_01_gen_F",
            "O_G_Van_02_vehicle_F",
            "O_G_Van_02_transport_F",
            "C_Truck_02_covered_F",
            "C_Truck_02_transport_F",
            
            "B_G_Van_02_vehicle_F",
            "B_G_Van_02_transport_F",
            "I_C_Van_02_vehicle_F",
            "I_C_Van_02_transport_F",
            "C_Van_02_medevac_F",
            "C_Van_02_vehicle_F",
            "C_Van_02_service_F",
            "C_Van_02_transport_F",
            "C_IDAP_Van_02_medevac_F",
            "C_IDAP_Van_02_vehicle_F",
            "C_IDAP_Van_02_transport_F",
            "C_IDAP_Offroad_01_F",
            "C_IDAP_Offroad_02_unarmed_F",    
            
            "Exile_Car_Strider",
            "I_MRAP_03_hmg_F",
            "I_MRAP_03_gmg_F",
            "Exile_Car_Hunter",
            "Exile_Car_Ifrit",
            "O_MRAP_02_hmg_F",
            "O_MRAP_02_gmg_F",
            "O_MBT_02_arty_F",
            "O_MBT_04_cannon_F",
            "I_LT_01_cannon_F",
            "B_AFV_Wheeled_01_up_cannon_F",
            "B_MBT_01_TUSK_F",
            "B_APC_Wheeled_01_cannon_F",
            "I_APC_Wheeled_03_cannon_F"    //            if last in list remove comma
        };
    };

    class Trucks
    {
        name = "Trucks";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] =
        {
            "C_IDAP_Truck_02_transport_F",
            "C_IDAP_Truck_02_F",          
            "C_IDAP_Truck_02_water_F",    
            "Exile_Car_Van_Black",
            "Exile_Car_Van_Box_Black",
            "Exile_Car_Van_Fuel_Black",
            "Exile_Car_Zamak",
            "Exile_Car_Tempest",
            "Exile_Car_HEMMT",
            "B_Truck_01_fuel_F",
            "O_T_Truck_03_device_ghex_F",
            "Exile_Car_Ikarus_Blue",
            "Exile_Car_Ural_Open_Worker",
            "Exile_Car_Ural_Covered_Worker",
            "I_Truck_02_medical_F",
            "O_Truck_02_Ammo_F"              //        if last in list remove comma
        };
    };

        class Planes
    {
        name = "Planes";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] =
        {
            "C_IDAP_Heli_Transport_02_F",                       
            "B_Heli_Transport_03_F",                           
            "B_T_VTOL_01_armed_F",
            "Exile_Plane_BlackfishInfantry",
            "Exile_Plane_BlackfishVehicle",
            "B_Heli_Attack_01_F",                                   
            "O_Heli_Transport_04_fuel_F",                           
            "B_Plane_CAS_01_F",
            "B_Plane_Fighter_01_Stealth_F",
            "B_UAV_05_F"    
        };
    };
};

    class Boats
    {
        name = "Boats";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] =
        {
            "I_Boat_Armed_01_minigun_F"
        };
    };
    

    
Repack mission pbo file.
DONE

Share this post


Link to post
Share on other sites
  • 0

Make sure that there are no duplicate entries in either list.  That will break your server.  Pay attention to your placement of commas and semicolons, a misplaced or omitted comma is the easiest way to break your server. 

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.