Home   Help Search Login Register  

Author Topic: config.cpp for model  (Read 1766 times)

0 Members and 1 Guest are viewing this topic.

M1A1MG

  • Guest
config.cpp for model
« on: 30 Jun 2006, 11:51:48 »
Can someone tell me if this could be wrong? My vehicle does not show up in the editor at all.  I'm learning how to use O-2 but I think the config is wrong.  This is what I've got......


class CfgModels
{
   class default {};
   class Vehicle: default {};
   class Car: Vehicle {};
   class Jeep: Car {};
   class firstCar: Jeep {};
};


class CfgPatches
{
     class firstCar
     {
         units[] = {firstCar};
         weapons[] = {};
         requiredVersion = 1.0;
     };

};

class CfgVehicles
{

     class All {};
     class AllVehicles: All {};
     class Land: AllVehicles {};
     class LandVehicle: Land {};
     class Car: LandVehicle {};
     class Jeep: Car {};

     class firstcar: Jeep
     {                               
                displayName="My First Car";     // Displayname in editor
      model= \firstcar\firstcar;   // our p3d model path
                 
      side=3;         // Its on the civilian side
      crew="Civilian2";   // The default driver are civilians
      maxSpeed=300;      // Max speed
                transportSoldier=0;     // Right now just driver, no cargo                                                                                   
      };
}

  Its supposed to go into Civilian cars

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: config.cpp for model
« Reply #1 on: 30 Jun 2006, 12:29:38 »
Try adding:

vehicleClass="Car";

into your cfgVehicles definition of firstCar


Planck
I know a little about a lot, and a lot about a little.

Offline oyman

  • Members
  • *
  • king of pings
Re: config.cpp for model
« Reply #2 on: 30 Jun 2006, 16:35:52 »
Try this
Code: [Select]
class CfgModels
{
   class default {};
   class Vehicle: default {};
   class Car: Vehicle {};
   class Jeep: Car {};
   class firstCar: Jeep {};
};


class CfgPatches
{
     class firstCar
     {
         units[] = {firstCar};
         weapons[] = {};
         requiredVersion = 1.0;
     };
 };

class CfgVehicles
{
     class All {};
     class AllVehicles: All {};
     class Land: AllVehicles {};
     class LandVehicle: Land {};
     class Car: LandVehicle {};
     class Jeep: Car {};
     class firstcar: Jeep
     {                               
               displayName="My First Car";     // Displayname in editor
               model= \firstcar\firstcar;   // our p3d model path
               side=3;         // Its on the civilian side
               crew="Civilian2";   // The default driver are civilians
                maxSpeed=300;      // Max speed
                transportSoldier=0;     // Right now just driver, no cargo                                                                                   
      };
};
};

M1A1MG

  • Guest
Re: config.cpp for model
« Reply #3 on: 01 Jul 2006, 05:55:04 »
Got it thanks for the input.... I guess I have to save with .pbo at the end when I'm compressing or it wont read it

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re: config.cpp for model
« Reply #4 on: 17 Jul 2006, 00:39:04 »
some pbo creators require you to add the .pbo on the end... if i recall correctly, makepbo is one of them
Proud Member of the Volunteer Commando Battalion