Home   Help Search Login Register  

Author Topic: having an issue with my config  (Read 2037 times)

0 Members and 1 Guest are viewing this topic.

Offline coldfuse

  • Members
  • *
having an issue with my config
« on: 08 Jan 2009, 19:13:43 »
OK, currently working on a ltd crown Victoria police cruiser  as a demo car for a project a group i am with is working on.
We are trying to create to make the flashing lights on the light bar armatec allowed us to use parts from his Porsche to accomplish this.  I had problems with the config so i got another config from a friend and used that and implemented parts of armatecs, but I am having issue's with the config i get an error reading

i posted this at armaholic to but i think its better suited here
---------------------------
File ltd\config.cpp, line 281: .ltd: Undefined base class 'Car'\

Here is the config who ever can figure it out i will  credit you when we release our mods.

Code: [Select]
#define _ARMA_


class CfgPatches
{
 class Crown_victoria
 {
  Units[] = {"ltd"};
  weapons[] = {};
  requiredVersion = 1;
  requiredAddons[] = {"CAData","CACharacters","CAWeapons","CASounds","CA_Anims_Char"};
 };
};
class CfgSkeletons
{
 class Vehicle;
 class ltdBones
 {
  isDiscrete = 1;
  skeletonInherit = "";
  skeletonBones[] = {"volant","","levy predni tlumic","","pravy predni tlumic","","levy dalsi tlumic","","pravy

dalsi tlumic","","levy predni zatoc","levy predni tlumic","pravy predni zatoc","pravy predni tlumic","levy dalsi

zatoc","levy dalsi tlumic","pravy dalsi zatoc","pravy dalsi tlumic","levy prostredni tlumic","","pravy prostredni

tlumic","","levy zadni tlumic","","pravy zadni tlumic","","levy predni","levy predni zatoc","pravy predni","pravy

predni zatoc","levy dalsi","levy dalsi zatoc","pravy dalsi","pravy dalsi zatoc","levy prostredni","levy prostredni

tlumic","pravy prostredni","pravy prostredni tlumic","levy zadni","levy zadni tlumic","pravy zadni","pravy zadni

tlumic","ukaz_rychlo","","ukaz_rychlo2","","ukaz_rpm","","OtocVez","","OtocHlaven","OtocVez","fuel_01","","fuel_1","

","prop_01","","prop_02","","prop_2","","prop_1","","damageHide","","damageVez","OtocVez","damageHlaven","OtocHlaven

","lightcoverb","lightcoverr"};
 };
};
class CfgModels
{
 class Vehicle;
 class Car
 {
  sectionsInherit = "";
  sections[] = {"ammo","sklo predni p","sklo predni l","zadni svetlo","brzdove

svetlo","spz","karoserie","motor","zbran","vez","zbytek","levy predni","levy prostredni","levy zadni","pravy

predni","pravy prostredni","pravy zadni","clan","clan_sign","zasleh","P svetlo","L

svetlo","palivo","lightcoverb","lightcoverr"};
  skeletonName = "ltdBones";
  hiddenSelections = {"lightcoverb", "lightcoverr"};

class UserActions {

class EnableTurbo {
displayName = "Turbo On";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdturbo"" <

0.5";
statement = "this animate [""ltdturbo"", 1]";
};

class DisableTurbo {
displayName = "Turbo Off";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdturbo"" >=

0.5";
statement = "this animate [""ltdturbo"", 0]";
};

class EnableSiren {
displayName = "Siren On";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdlights"" <

0.5";
statement = "this animate [""ltdlights"", 1]";
};

class DisableSiren {
displayName = "Siren Off";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdlights"" >=

0.5";
statement = "this animate [""ltdlights"", 0]";
};

class EnableLights {
displayName = "Lights On";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdlightsonly"" <

0.5";
statement = "this animate [""ltdlightsonly"", 1]";
};

class DisableLights {
displayName = "Lights Off";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this && alive this && this animationPhase ""ltdlightsonly""

>= 0.5";
statement = "this animate [""ltdlightsonly"", 0]";
};

class inflateme {
displayName = "Change Tire";
position = "postext";
radius = 3.300000;
onlyForPlayer = 1;
condition = "player in this";
statement = "[this,4] exec ""\ltd\lightsnstuff.sqs""";
};
};

class EventHandlers {
init = "[_this select 0,0] exec ""\ltd\lightsnstuff.sqs"";[_this select 0] execVM

""\ltd\MDXexploFX.sqf""";
fired = "[_this select 0] exec ""\ltd\ding.sqs""";
};
};
  class Animations
  {
   class damageHide
   {
    type = "hide";
    source = "damage";
    selection = "damageHide";
   };
   class IndicatorSpeed
   {
    animPeriod = 0;
    type = "rotation";
    source = "speed";
    selection = "ukaz_rychlo";
    axis = "osa_rychlo";
    memory = 0;
    minValue = 0;
    maxValue = 16.67;
    angle0 = 0;
    angle1 = 2.87979;
   };
   class IndicatorSpeed2
   {
    type = "rotation";
    source = "speed";
    selection = "ukaz_rychlo2";
    axis = "osa_rychlo2";
    memory = "false";
    animPeriod = 0;
    minValue = 0;
    maxValue = 16.67;
    angle0 = 0;
    angle1 = "rad -240";
   };
   class IndicatorRPM
   {
    animPeriod = 0;
    type = "rotation";
    source = "rpm";
    selection = "ukaz_rpm";
    axis = "osa_rpm";
    memory = 0;
    minValue = 0;
    maxValue = 1;
    angle0 = 0;
    angle1 = 2.96706;
   };
   class DrivingWheel
   {
    type = "rotation";
    source = "drivingWheel";
    selection = "volant";
    begin = "osaVolantZac";
    end = "osaVolantKon";
    memory = "false";
    animPeriod = 0;
    minValue = -1;
    maxValue = 1;
    angle0 = -8;
    angle1 = 8;
   };
   class TurnFrontWheelR
   {
    type = "rotationY";
    source = "drivingWheel";
    selection = "pravy predni zatoc";
    axis = "pravy predni";
    memory = "false";
    animPeriod = 0;
    sourceAddress = "loop";
    minValue = "rad -180";
    maxValue = "rad +180";
    angle0 = "rad +90";
    angle1 = "rad -90";
   };
   class TurnFrontWheelL: TurnFrontWheelR
   {
    selection = "levy predni zatoc";
    axis = "levy predni";
   };
   class TurnFrontWheelR2: TurnFrontWheelR
   {
    selection = "pravy dalsi zatoc ";
    axis = "pravy dalsi";
   };
   class TurnFrontWheelL2: TurnFrontWheelR
   {
    selection = "levy dalsi zatoc ";
    axis = "levy dalsi";
   };
   class FrontWheelR
   {
    type = "rotationX";
    source = "wheel";
    selection = "pravy predni";
    axis = "";
    memory = "true";
    animPeriod = 0;
    sourceAddress = "loop";
    minValue = 0;
    maxValue = 1;
    angle0 = 0;
    angle1 = "rad -360";
   };
   class FrontWheel2R: FrontWheelR
   {
    selection = "pravy dalsi";
   };
   class BackWheelR: FrontWheelR
   {
    selection = "pravy zadni";
   };
   class BackWheel2R: FrontWheelR
   {
    selection = "pravy prostredni";
   };
   class FrontWheelL: FrontWheelR
   {
    selection = "levy predni";
   };
   class FrontWheel2L: FrontWheelR
   {
    selection = "levy dalsi";
   };
   class BackWheelL: FrontWheelR
   {
    selection = "levy zadni";
   };
   class BackWheel2L: FrontWheelR
   {
    selection = "levy prostredni";
   };
   class FrontWheelDamperR
   {
    type = "translationY";
    source = "damper";
    selection = "pravy predni tlumic";
    axis = "";
    animPeriod = 0;
    minValue = -1000;
    maxValue = 1000;
   };
   class FrontWheelDamper2R: FrontWheelDamperR
   {
    selection = "pravy dalsi tlumic";
   };
   class BackWheelDamperR: FrontWheelDamperR
   {
    selection = "pravy zadni tlumic";
   };
   class BackWheelDamper2R: FrontWheelDamperR
   {
    selection = "pravy prostredni tlumic";
   };
   class FrontWheelDamperL: FrontWheelDamperR
   {
    selection = "levy predni tlumic";
   };
   class FrontWheelDamper2L: FrontWheelDamperR
   {
    selection = "levy dalsi tlumic";
   };
   class BackWheelDamperL: FrontWheelDamperR
   {
    selection = "levy zadni tlumic";
   };
   class BackWheelDamper2L: FrontWheelDamperR
   {
    selection = "levy prostredni tlumic";
   };
   class damageVez: damageHide
   {
    selection = "damageVez";
   };
   class damageHlaven: damageHide
   {
    selection = "damageHlaven";
   };
  };
 };
 class ltd: Car{};
};
class CfgVehicles
{
 class car_sedan;
 class ltd: car_sedan
 {
  maxSpeed = 300;
  model = "\ltd\ltd.p3d";
  displayName = "crown";
  soundEngine[] = {"\ltd\SOUND\e.ogg",0.1,0.8};
  soundGear[] = {"\ca\wheeled\Data\Sound\shifter_v3",0.000562341,1};
  SoundGetIn[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose",0.00562341,1};
  SoundGetOut[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose",0.00316228,1};
  dammageHalf[] = 

{"\ca\wheeled\data\sedan_glass_ca.paa","\ca\wheeled\data\sedan_glassbr1_ca.paa","\ca\wheeled\data\sedan_glass_ca.paa

","\ca\wheeled\data\sedan_glassbr1_ca.paa"};
  dammageFull[] = 

{"\ca\wheeled\data\sedan_glass_ca.paa","\ca\wheeled\data\sedan_glassbr2_ca.paa","\ca\wheeled\data\sedan_glass_ca.paa

","\ca\wheeled\data\sedan_glassbr2_ca.paa"};
  hiddenSelections[] = {"lightB_lit","lightR_lit"};
 
  class Damage
  {
   tex[] = {};
   mat[] = 

{"ca\wheeled\data\sedan_ext.rvmat","ca\wheeled\data\sedan_ext.rvmat","ca\wheeled\data\sedan_ext_destruct.rvmat","ca\

wheeled\data\sedan_int.rvmat","ca\wheeled\data\sedan_int.rvmat","ca\wheeled\data\sedan_int_destruct.rvmat"};
  };
 };
};

thanks in advance

Offline i0n0s

  • Former Staff
  • ****
Re: having an issue with my config
« Reply #1 on: 08 Jan 2009, 22:23:36 »
You have "class car". You should change to "class car: vehicle".

Offline coldfuse

  • Members
  • *
Re: having an issue with my config
« Reply #2 on: 08 Jan 2009, 23:17:07 »
thank you again for the help, that did fix that problem but  as usual one more came up !
if you could help me figure this one out ill be your best friend :P.
Quote
=
File ltd\config.cpp, line 17: Config: End of line encountered after pravy alsi tlumic

 thanks again

Offline i0n0s

  • Former Staff
  • ****
Re: having an issue with my config
« Reply #3 on: 08 Jan 2009, 23:27:21 »
"pravy alsi tlumic" doesn't exist in your config.

Offline coldfuse

  • Members
  • *
Re: having an issue with my config
« Reply #4 on: 08 Jan 2009, 23:29:42 »
Yeah, i noticed that i cant find out why is causing an error its this mod and this mod alone thats causing the error.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: having an issue with my config
« Reply #5 on: 08 Jan 2009, 23:44:25 »
Code: [Select]
class CfgSkeletons
{
 class Vehicle; // <=======
 class ltdBones

You cannot use inheritance here. Define vehicle fully.

Code: [Select]
class UserActions {
Code: [Select]
class EventHandlers {
must be part of your new cfgVehicles class.