Jump to content
Sign in to follow this  
madmedic

Please help with this config

Recommended Posts

I edited the BIS sample HMMWV50 model, and added a shield for the gunner...Now I am trying to get it ingame.

I got the model to work with another config. (It always displayed an error at startup, but worked ingame)

I decided to start over with a new config that included its own cfgmodels, and cfgskeletons.

Problem is...with THIS config, the unit does not even show up in the editor.

No error messages...the vehicle is just not there to choose from (nor is the vehicle class)

I would be greatly appreciative if someone could look over this config, and tell me what is wrong with it:

(I borrowed MAP_AIR config as a template)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSkeletons

{

class Default

{

isDiscrete = 1;

skeletonInherit = "";

skeletonBones[] = {};

};

class My_Default : Default

{

isDiscrete = 1;

skeletonInherit = "";

skeletonBones[] = {};

};

class My_Vehicle : My_Default{};

class My_car: My_Vehicle

{

skeletonInherit="Vehicle";

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"

};

};

class MY_HMMWVSkeleton

{

isDiscrete=1;

skeletonInherit="my_Car";

skeletonBones[]=

{

"ammo_belt",

"OtocHlaven"

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class My_Default : Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class My_Vehicle: My_Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class My_car: My_Vehicle

{

sectionsInherit="MY_Vehicle";

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"

};

skeletonName="MY_Car";

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.000000;

maxValue=16.670000;

angle0=0.000000;

angle1=2.879793;

};

class IndicatorSpeed2

{

type="rotation";

source="speed";

selection="ukaz_rychlo2";

axis="osa_rychlo2";

memory="false";

animPeriod=0;

minValue=0;

maxValue=16.670000;

angle0=0;

angle1="rad -240";

};

class IndicatorRPM

{

animPeriod=0;

type="rotation";

source="rpm";

selection="ukaz_rpm";

axis="osa_rpm";

memory=0;

minValue=0.000000;

maxValue=1.000000;

angle0=0.000000;

angle1=2.967060;

};

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 myhmmwv50: MY_car

{

skeletonName="MY_HMMWVSkeleton";

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"

};

class Animations: Animations

{

class ammo_belt_rotation

{

type="rotationZ";

source="belt_rotation";

selection="ammo_belt";

axis="ammo_belt_axis";

memory=1;

sourceAddress="loop";

minValue=0.000000;

maxValue=0.010000;

angle0=0.000000;

angle1=-0.209440;

};

class MainTurret

{

type="rotationY";

source="mainTurret";

selection="OtocVez";

axis="OsaVeze";

animPeriod=0;

minValue="rad -360";

maxValue="rad +360";

angle0="rad -360";

angle1="rad +360";

};

class MainGun: MainTurret

{

type="rotationX";

source="mainGun";

selection="OtocHlaven";

axis="OsaHlavne";

};

class damageHlaven: damageHide

{

selection="damageHlaven";

};

class damageAmmobelt: damageHide

{

selection="ammo_belt";

};

};

class CfgPatches

{

class My_vehicles

{

Units[]= {"MY_hmmwv50"};

weapons[]= {};

requiredVersion = 1.000000;

requiredAddons[] = {};

};

};

class CfgVehicleClasses

{

class My_vehicles

{

displayName = "MY Custom Vehicles";

};

};

class CfgVehicles

{

/*extern*/ class HMMWV50;

/*extern*/ class HMMWVTOW;

/*extern*/ class HMMWVMK;

/*extern*/ class HMMWV;

/*extern*/ class Truck5tMG;

/*extern*/ class Truck5t;

/*extern*/ class Truck5tOpen;

/*extern*/ class Truck5tRepair;

/*extern*/ class Truck5tReammo;

/*extern*/ class Truck5tRefuel;

/*extern*/ class M1Abrams;

/*extern*/ class M113;

/*extern*/ class M113Ambul;

/*extern*/ class Vulcan;

/*extern*/ class M1030;

/*extern*/ class Stryker_ICV_M2;

/*extern*/ class Stryker_ICV_MK19;

/*extern*/ class Stryker_TOW;

class MY_hmmwv50: HMMWV50

{

vehicleClass = "My_vehicles";

displayName="(W) Hmmwv (M2)";

model="\BIModels\MYHMMWV50";

dammageHalf[] = {"\BImodels\BIhummer\data\HMMWV_glass_CA.paa", "\BImodels\BIhummer\data\HMMWV_glassbr1_CA.paa", "\BImodels\BIhummer\data\HMMWV_glass_CA.paa", "\BImodels\BIhummer\data\HMMWV_glassbr1_CA.paa"};

dammageFull[] = {"\BImodels\BIhummer\data\HMMWV_glass_CA.paa", "\BImodels\BIhummer\data\HMMWV_glassbr2_CA.paa", "\BImodels\BIhummer\data\HMMWV_glass_CA.paa", "\BImodels\BIhummer\data\HMMWV_glassbr2_CA.paa"};

class Damage {

tex[] = {};

mat[] = {"BImodels\BIhummer\data\hmmwv_regular_1.rvmat", "BImodels\BIhummer\data\hmmwv_regular_1.rvmat", "BImodels\BIhummer\data\hmmwv_regular_1_destruct.rvmat", "BImodels\BIhummer\data\hmmwv_hood.rvmat", "BImodels\BIhummer\data\hmmwv_hood.rvmat", "BImodels\BIhummer\data\hmmwv_hood_destruct.rvmat", "BImodels\BIhummer\data\hmmwv_details.rvmat", "BImodels\BIhummer\data\hmmwv_details.rvmat", "BImodels\BIhummer\data\hmmwv_details_destruct.rvmat", "BImodels\BIhummer\data\hmmwv_body.rvmat", "BImodels\BIhummer\data\hmmwv_body.rvmat", "BImodels\BIhummer\data\hmmwv_body_destruct.rvmat", "BImodels\BIhummer\data\m2.rvmat", "BImodels\BIhummer\data\m2.rvmat", "BImodels\BIhummer\data\m2_destruct.rvmat", "BImodels\BIhummer\data\detailmapy\m1abrams_mg_mount.rvmat", "BImodels\BIhummer\data\detailmapy\m1abrams_mg_mount.rvmat", "BImodels\BIhummer\data\detailmapy\m1abrams_mg_mount_destruct.rvmat", "BImodels\BIhummer\data\hmmwv_clocks.rvmat", "BImodels\BIhummer\data\hmmwv_clocks.rvmat", "BImodels\BIhummer\data\hmmwv_clocks_destruct.rvmat"};

};

};

Share this post


Link to post
Share on other sites

You have at least one missing }; at the end of class CfgSkeletons and one at the end of class CfgVehicles

Haven't checked class CfgModels cause I don't have time for that anymore but I'd doublecheck the whole config for missing brackets again wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×