Jump to content
Sign in to follow this  
maxjoiner

Model.cfg problems

Recommended Posts

Hi all, I'm working on a new model 3d car,

I copied the model.cfg in this discussion:

http://forums.bistudio.com/showthread.php?171205-Bizarre-vehicle-axis-view-Issue

I tried many times to insert my model 3d, but ArmA3 crashs everytime....

Where do I have to put my car.p3d name in this model.cfg exactly???

here is the model.cfg:


class Rotation
{
   type = "rotation";
   memory = 1;
   minValue = 0;
   maxValue = 1;
   angle0 = 0;
   angle1 = 1;
};
class CfgSkeletons
{
   class Default
   {
       isDiscrete = 1;
       skeletonInherit = "";
       skeletonBones[] = {};
   };
   class Vehicle : Default {};
   class Car : Vehicle {
       skeletonBones[]=
       {
           "drivewheel","",
           "lightbar",    "",
           "siren",    "",
           "directional",    "",
           "takedown",    "",
           "alley",    "",
           "radarbox",    "",

           "wheel_1_1_damper_land","",
           "wheel_1_2_damper_land","",
           "wheel_1_3_damper_land","",
           "wheel_1_4_damper_land","",

           "wheel_2_1_damper_land","",
           "wheel_2_2_damper_land","",
           "wheel_2_3_damper_land","",
           "wheel_2_4_damper_land","",

           "wheel_1_1_damper","wheel_1_1_damper_land",
           "wheel_1_2_damper","wheel_1_2_damper_land",
           "wheel_1_3_damper","wheel_1_3_damper_land",
           "wheel_1_4_damper","wheel_1_4_damper_land",

           "wheel_2_1_damper","wheel_2_1_damper_land",
           "wheel_2_2_damper","wheel_2_2_damper_land",
           "wheel_2_3_damper","wheel_2_3_damper_land",
           "wheel_2_4_damper","wheel_2_4_damper_land",

           "wheel_1_1_steering","wheel_1_1_damper",
           "wheel_1_2_steering","wheel_1_2_damper",
           "wheel_1_3_steering","wheel_1_3_damper",
           "wheel_1_4_steering","wheel_1_4_damper",

           "wheel_2_1_steering","wheel_2_1_damper",
           "wheel_2_2_steering","wheel_2_2_damper",
           "wheel_2_3_steering","wheel_2_3_damper",
           "wheel_2_4_steering","wheel_2_4_damper",

           "wheel_1_1","wheel_1_1_steering",
           "wheel_1_2","wheel_1_2_steering",
           "wheel_1_3","wheel_1_3_steering",
           "wheel_1_4","wheel_1_4_steering",

           "wheel_2_1","wheel_2_1_steering",
           "wheel_2_2","wheel_2_2_steering",
           "wheel_2_3","wheel_2_3_steering",
           "wheel_2_4","wheel_2_4_steering",

           "wheel_1_1_unhide","wheel_1_1",
           "wheel_1_2_unhide","wheel_1_2",
           "wheel_1_3_unhide","wheel_1_3",
           "wheel_1_4_unhide","wheel_1_4",

           "wheel_2_1_unhide","wheel_2_1",
           "wheel_2_2_unhide","wheel_2_2",
           "wheel_2_3_unhide","wheel_2_3",
           "wheel_2_4_unhide","wheel_2_4",

           "wheel_1_1_hide","wheel_1_1",
           "wheel_1_2_hide","wheel_1_2",
           "wheel_1_3_hide","wheel_1_3",
           "wheel_1_4_hide","wheel_1_4",

           "wheel_2_1_hide","wheel_2_1",
           "wheel_2_2_hide","wheel_2_2",
           "wheel_2_3_hide","wheel_2_3",
           "wheel_2_4_hide","wheel_2_4",

           "OtocVez","",
           "OtocHlaven","OtocVez",

           "damageHide","",
           "damageVez","OtocVez",
           "damageHlaven","OtocHlaven",

           "ukaz_rychlo","",
           "ukaz_rychlo2","",
           "ukaz_rpm","",
           "mph","",
           "rpm","",
           "fuel","",
           "fuel_1","",
           "fuel_01","",
           "fuel_2","",
           "fuel_3","",
           "prop_01","",
           "prop_02","",
           "prop_2","",
           "prop_1","",
           "glass1","damageHide",
           "glass2","damageHide",
           "glass3","damageHide",
           "glass4","damageHide",
       };
   };
   class civil_car: Car
   {
       skeletonInherit="Car";
       skeletonBones[]=
       {
           "reverse_light","",
           "daylights","damageHide",
           "door1","",
           "door2","",
           "glass5","damageHide",
       };
   };

};

class CfgModels
{
   class Default
   {
       sectionsInherit = "";
       sections[] = {};
       skeletonName = "";
   };
   class Vehicle: Default
   {
       sections[] =
       {
           "cislo",
           "grupa",
           "side",
           "sektor",
           "clan",
           "clan_sign",
           "podsvit pristroju",
           "poskozeni",
           "L svetlo",
           "P svetlo",
           "zasleh"
       };
   };    

   class Car: Vehicle
   {
       htMin = 60;        // Minimum half-cooling time (in seconds)
       htMax = 180;    // Maximum half-cooling time (in seconds)
       afMax = 100;    // Maximum temperature in case the model is alive (in celsius)
       mfMax = 8;        // Maximum temperature when the model is moving (in celsius)
       mFact = 1;        // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
       tBody = 150;    // Metabolism temperature of the model (in celsius)

       sections[]=
       {
           "ammo",
           "zadni svetlo",
           "brzdove svetlo",
           "spz",
           "motor",
           "body",
           "clan",
           "clan_sign",
           "zasleh",
           "Light_R",
           "Light_L",
           "podsvit pristroju",
           "glass1",
           "glass2",
           "glass3",
           "glass4",
           "glass5",
           "glass6",
           "lb-back-blue-1",
           "lb-back-blue-2",
           "lb-back-blue-3",
           "lb-back-red-1",
           "lb-back-red-2",
           "lb-back-red-3",
           "lb-back-yellow-1",
           "lb-back-yellow-2",
           "lb-back-yellow-3",
           "lb-back-yellow-4",
           "lb-back-yellow-5",
           "lb-back-yellow-6",
           "lb-front-blue-1",
           "lb-front-blue-2",
           "lb-front-red-2",
           "lb-front-red-1",
           "lb-left-takedown",
           "lb-right-takedown",
           "lb-right-alley",
           "lb-left-alley",
           "lb-right-front-corner",
           "lb-left-front-corner",
           "lb-left-back-corner",
           "lb-right-back-corner",
           "lb-ion-blue",
           "lb-ion-red",
           "left_headlight",
           "right_headlight",
           "brake_light",
           "back_lights"

       };
       skeletonName="Car";

       class Animations
       {
           class ani_lightbar
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="lightbar";
               axis="";//"lightbar_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,0.0};
//                AxisDir[] = {1.6820488e+019,7.1547368e+022,1.9411033e+031};
//                angle = 4.1037e-041/*#DEN*/;
//                axisOffset = 0.0
           };
           class ani_siren
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="siren";
               axis="";//"siren_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,0.0};
//                AxisDir[] = {1.6820488e+019,6.9472114e+022,1.9144365e+028};
//                angle = 7.1855833e+022;
//                axisOffset = 1.59748e-043/*#DEN*/
           };
           class ani_takedown
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="takedown";
               axis="";//"takedown_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,0.0};
//                AxisDir[] = {1.6820488e+019,6.977986e+022,1.9411046e+031};
//                angle = 4.1037e-041/*#DEN*/;
//                axisOffset = 0.0
           };
           class ani_alley
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="alley";
               axis="";//"alley_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,0.0};
//                AxisDir[] = {1.6820488e+019,7.15473e+022,7.225071e+028};
//                angle = 9.95318e-039/*#DEN*/;
//                axisOffset = 4.5447454e+030
           };
           class ani_directional
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="directional";
               axis="";//"directional_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,0.0};
//                AxisDir[] = {1.6820488e+019,2.6330496e+020,1.9411038e+031};
//                angle = 4.1037e-041/*#DEN*/;
//                axisOffset = 0.0
           };
           class ani_radar
           {
               type="rotation";
               source="user";
               memory = 1;//by default
               animPeriod = 0;//Unknown
               selection="radarbox";
               axis="";//"radarbox_axis";//possibly
               minValue = 0.0;//rad 0.0
               maxValue = 1000.0;//rad 57295.78
               minPhase = 0.0;//rad 0.0
               maxPhase = 1000.0;//rad 57295.78
               angle0 = 0.0;//rad 0.0;
               angle1 = 3.0;//rad 171.88734;
//                AxisPos[] = {0.0,3.0,1.26117e-044/*#DEN*/};
//                AxisDir[] = {6.770931e+022,1.2781053e+019,6.740347e+022};
//                angle = 3.0734807e+032;
//                axisOffset = 131537.55
           };

           // destruct START
           class damageHide
           {
               type="hide";
               source="damage";
               selection="damageHide";
               hideValue=1.0;
           };
           class damageHideVez:damageHide
           {
               selection="OtocVez";
           };
           class damageHideHlaven:damageHide
           {
               selection="OtocHlaven";
           };

           // Wheels START
           // Wheels Complete Destruct START
           class wheel_1_1_destruct
           {
               type="hide";
               selection="wheel_1_1_hide";
               source="HitLFWheel";
               minValue = 0; // upravit na 0.99
               maxValue = 1; // upravit na 1.0
               hidevalue = 0.99999;
           };

           class wheel_1_1_destruct_unhide
           {
               type="hide";
               selection="wheel_1_1_unhide";
               source="HitLFWheel";
               minValue = 0; 
               maxValue = 1; 
               hidevalue = 0.00000;
               UnHidevalue = 1.00000;
           };

           // Wheels Complete Destruct END

           #define DamageOffset 0.2

           // Wheels Damage START
           class wheel_1_1_Damage:wheel_1_1_destruct
           {
               type="translation";
               axis="Basic_Damper_Destruct_Axis";
               memory=1;
               selection="wheel_1_1_damper";
               source="HitLFWheel";
               minValue = 0.0;
               maxValue = 1;
               offset0 = 0;
               offset1 = DamageOffset;
           };
           class wheel_1_2_Damage:wheel_1_1_Damage {source="HitLBWheel";selection="wheel_1_2_damper";};
           class wheel_1_3_Damage:wheel_1_1_Damage {source="HitLMWheel";selection="wheel_1_3_damper";};
           class wheel_1_4_Damage:wheel_1_1_Damage {source="HitLF2Wheel";selection="wheel_1_4_damper";};

           class wheel_2_1_Damage:wheel_1_1_Damage {source="HitRFWheel";selection="wheel_2_1_damper";};
           class wheel_2_2_Damage:wheel_1_1_Damage {source="HitRBWheel";selection="wheel_2_2_damper";};
           class wheel_2_3_Damage:wheel_1_1_Damage {source="HitRMWheel";selection="wheel_2_3_damper";};
           class wheel_2_4_Damage:wheel_1_1_Damage {source="HitRF2Wheel";selection="wheel_2_4_damper";};


           class wheel_1_1_Damper_Damage_BackAnim:wheel_1_1_Damage {selection="wheel_1_1_damper";offset1 = -1.2*DamageOffset;};
           class wheel_1_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLBWheel";selection="wheel_1_2_damper";};
           class wheel_1_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLMWheel";selection="wheel_1_3_damper";};
           class wheel_1_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLF2Wheel";selection="wheel_1_4_damper";};

           class wheel_2_1_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRFWheel";selection="wheel_2_1_damper";};
           class wheel_2_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRBWheel";selection="wheel_2_2_damper";};
           class wheel_2_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRMWheel";selection="wheel_2_3_damper";};
           class wheel_2_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRF2Wheel";selection="wheel_2_4_damper";};

           // Wheels Damage END
           // Wheels END

           // destruct END
           class Fuel: Rotation
           {
               source="fuel";
               selection="fuel";
               axis="fuel_axis";
               maxValue=1;
               memory=1;
               angle0="rad -110";
               angle1=0;
           };
           class IndicatorSpeed: Rotation
           {
               source="speed";
               selection="mph";
               axis="mph_axis";
               memory=1;
               maxValue=38.900002;
               angle1="rad -265";
           };
           class IndicatorFuel: Rotation
           {
               type="rotation";
               source="fuel";
               selection="fuel_1";
               axis="fuel_1_axis";
               memory=1;
               minValue=0.000000;
               maxValue=1.000000;
               angle0=-0.087266;
               angle1=-1.658063;
           };
           class IndicatorRPM: Rotation
           {
               source="rpm";
               selection="rpm";
               axis="rpm_axis";
               memory=1;
               angle1="rad 80";
           };
           class DrivingWheel: Rotation
           {
               source="drivingWheel";
               selection="drivewheel";
               axis="drivewheel_axis";
               minValue=-1;
               maxValue=1;
               angle0=(rad 80);
               angle1=(rad -80);
           };
           class Steering_1_1
           {
               type="rotationY";
               source="drivingWheel";
               selection="wheel_1_1_steering";
               axis="wheel_1_1_steering_axis";
               memory=1;
               minValue= -1;
               maxValue= 1;
               angle0=1.047198;
               angle1=-1.047198;
           };
           class Steering_2_1: Steering_1_1
           {
               selection="wheel_2_1_steering";
               axis="wheel_2_1_steering_axis";
           };
           class Wheel_1_1
           {
               type="rotationX";
               source="wheel";
               selection="wheel_1_1";
               axis="wheel_1_1_axis";
               memory=1;
               sourceAddress="loop";
               minValue=0;
               maxValue=1;
               angle0=0;
               angle1="rad -360";
           };
           class wheel_2_1: Wheel_1_1
           {
               selection="wheel_2_1";
               axis="wheel_2_1_axis";
           };
           class wheel_1_2: Wheel_1_1
           {
               selection="wheel_1_2";
               axis="wheel_1_2_axis";
           };
           class Wheel_2_2: Wheel_1_1
           {
               selection="wheel_2_2";
               axis="wheel_2_2_axis";
           };
           class Wheel_1_1_Damper
           {
               type="translation";
               source="damper";
               selection="wheel_1_1_damper_land";
               axis="posun wheel_1_1";
               animPeriod = 1;
               minValue="0";
               maxValue="1";
               offset0= "0.5";
               offset1= "-0.5";
               memory=1;
           };
           class wheel_2_1_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_1_damper_land";
           };
           class wheel_1_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_1_2_damper_land";
           };
           class Wheel_2_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_2_damper_land";
           };
           class daylights
           {
               type="hide";
               source="rpm";
               selection="daylights";
               minValue=-0.8;
               maxValue=0.2;
               unhidevalue=1;
               sourceAddress="clamp";
           };

           class reverse_light
           {
               type="Hide";
               selection="reverse_light";
               sourceAddress="clamp";
               source="Gear";
               minValue = -1;
               maxValue = 0;
               hideValue = "0.2";    
           };            
       };
   };

   class DAR_ImpalaPIM: Car  //[color="#FF0000"]I tried here!!![/color]
   {
       skeletonName = "civil_car";
       sectionsInherit = "Car";
       sections[]=
       {
           "body",
           "karoserie",
           "palivo",
       };
       class Animations: Animations
       {
           class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
           class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
           class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
           class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

           class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

           class DrivingWheel
           {
               type="rotation";
               source="drivingWheel";
               selection="drivewheel";
               axis="drivewheel_axis";
               memory=1;
               minValue=-1;
               maxValue=1;
               angle0=(rad 70);
               angle1=(rad -70);
           };
           class Steering_1_1
           {
               type="rotationY";
               source="drivingWheel";
               selection="wheel_1_1_steering";
               axis="wheel_1_1_steering_axis";
               memory=1;
               minValue="rad -90";
               maxValue="rad +90";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class Steering_2_1: Steering_1_1
           {
               selection="wheel_2_1_steering";
               axis="wheel_2_1_steering_axis";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class IndicatorSpeed: Rotation
           {
               source="speed";
               selection="mph";
               axis="mph_axis";
               memory=1;
               maxValue=28;
               angle0=0.17453299;
               angle1=-3.141593;
           };
           class IndicatorRPM: Rotation
           {
               type="rotation";
               source="rpm";
               selection="rpm";
               axis="rpm_axis";
               memory=1;
               minValue=0;
               maxValue=7500;
               angle0=(rad 0);
               angle1=(rad 250);
           };                
           class fuel
           {
               type="rotation";
               source="fuel";
               selection="fuel";
               axis="fuel_axis";
               memory=1;
               minValue=0;
               maxValue=1;
               angle0=0;
               angle1="rad +55";
           };
           class prop_01
           {
               type="rotation";
               source="rpm";
               selection="prop_1";
               axis="prop_1_axis";
               memory=1;
               minValue=1000;
               maxValue=7000;
               angle0="rad 30";
               angle1="rad 35";
           };

           class daylights
           {
               type="hide";
               source="rpm";
               selection="daylights";
               minValue=-0.8;
               maxValue=0.2;
               unhidevalue=1;
               sourceAddress="clamp";
           };

           class reverse_light
           {
               type="Hide";
               selection="reverse_light";
               sourceAddress="clamp";
               source="Gear";
               minValue = -1;
               maxValue = 0;
               hideValue = "0.2";    
           };

           class damageHidedoor1:damageHide
           {
               selection="door1";
           };
           class damageHidedoor2:damageHide
           {
               selection="door2";
           };    

           class Glass5_destruct
           {
               type="hide";
               selection="glass5";
               source="HitGlass5";
               minValue = 0;
               maxValue = 1;
               hidevalue = 0.99999;
           };    
           class Wheel_1_1_Damper: Wheel_1_1_Damper
           {
               type="translation";
               source="damper";
               selection="wheel_1_1_damper_land";
               axis="posun wheel_1_1";
               animPeriod = 1;
               minValue="0";
               maxValue="1";
               offset0= "0.5";
               offset1= "-0.5";
               memory=1;
           };
           class wheel_2_1_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_1_damper_land";            
           };
           class wheel_1_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_1_2_damper_land";                        
           };
           class Wheel_2_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_2_damper_land";        
           };            
       };
   };

class DAR_ImpalaPIS: Car //[color="#FF0000"]I also tried here!!![/color]
   {
       skeletonName = "civil_car";
       sectionsInherit = "Car";
       sections[]=
       {
           "body",
           "karoserie",
           "palivo",
       };
       class Animations: Animations
       {
           class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
           class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
           class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
           class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

           class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

           class DrivingWheel
           {
               type="rotation";
               source="drivingWheel";
               selection="drivewheel";
               axis="drivewheel_axis";
               memory=1;
               minValue=-1;
               maxValue=1;
               angle0=(rad 70);
               angle1=(rad -70);
           };
           class Steering_1_1
           {
               type="rotationY";
               source="drivingWheel";
               selection="wheel_1_1_steering";
               axis="wheel_1_1_steering_axis";
               memory=1;
               minValue="rad -90";
               maxValue="rad +90";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class Steering_2_1: Steering_1_1
           {
               selection="wheel_2_1_steering";
               axis="wheel_2_1_steering_axis";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class IndicatorSpeed: Rotation
           {
               source="speed";
               selection="mph";
               axis="mph_axis";
               memory=1;
               maxValue=28;
               angle0=0.17453299;
               angle1=-3.141593;
           };
           class IndicatorRPM: Rotation
           {
               type="rotation";
               source="rpm";
               selection="rpm";
               axis="rpm_axis";
               memory=1;
               minValue=0;
               maxValue=7500;
               angle0=(rad 0);
               angle1=(rad 250);
           };                
           class fuel
           {
               type="rotation";
               source="fuel";
               selection="fuel";
               axis="fuel_axis";
               memory=1;
               minValue=0;
               maxValue=1;
               angle0=0;
               angle1="rad +55";
           };
           class prop_01
           {
               type="rotation";
               source="rpm";
               selection="prop_1";
               axis="prop_1_axis";
               memory=1;
               minValue=1000;
               maxValue=7000;
               angle0="rad 30";
               angle1="rad 35";
           };

           class daylights
           {
               type="hide";
               source="rpm";
               selection="daylights";
               minValue=-0.8;
               maxValue=0.2;
               unhidevalue=1;
               sourceAddress="clamp";
           };

           class reverse_light
           {
               type="Hide";
               selection="reverse_light";
               sourceAddress="clamp";
               source="Gear";
               minValue = -1;
               maxValue = 0;
               hideValue = "0.2";    
           };

           class damageHidedoor1:damageHide
           {
               selection="door1";
           };
           class damageHidedoor2:damageHide
           {
               selection="door2";
           };    

           class Glass5_destruct
           {
               type="hide";
               selection="glass5";
               source="HitGlass5";
               minValue = 0;
               maxValue = 1;
               hidevalue = 0.99999;
           };    
           class Wheel_1_1_Damper: Wheel_1_1_Damper
           {
               type="translation";
               source="damper";
               selection="wheel_1_1_damper_land";
               axis="posun wheel_1_1";
               animPeriod = 1;
               minValue="0";
               maxValue="1";
               offset0= "0.5";
               offset1= "-0.5";
               memory=1;
           };
           class wheel_2_1_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_1_damper_land";            
           };
           class wheel_1_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_1_2_damper_land";                        
           };
           class Wheel_2_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_2_damper_land";        
           };            
       };
   };

class DAR_ImpalaPID: Car //[color="#FF0000"]and again I tried here!!![/color]
   {
       skeletonName = "Car";
       sectionsInherit = "Car";
       sections[]=
       {
           "body",
           "karoserie",
           "palivo",
       };
       class Animations: Animations
       {
           class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
           class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
           class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
           class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

           class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
           class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

           class DrivingWheel
           {
               type="rotation";
               source="drivingWheel";
               selection="drivewheel";
               axis="drivewheel_axis";
               memory=1;
               minValue=-1;
               maxValue=1;
               angle0=(rad 70);
               angle1=(rad -70);
           };
           class Steering_1_1
           {
               type="rotationY";
               source="drivingWheel";
               selection="wheel_1_1_steering";
               axis="wheel_1_1_steering_axis";
               memory=1;
               minValue="rad -90";
               maxValue="rad +90";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class Steering_2_1: Steering_1_1
           {
               selection="wheel_2_1_steering";
               axis="wheel_2_1_steering_axis";
               angle0=1.0471981;
               angle1=-1.0471981;
           };
           class IndicatorSpeed: Rotation
           {
               source="speed";
               selection="mph";
               axis="mph_axis";
               memory=1;
               maxValue=28;
               angle0=0.17453299;
               angle1=-3.141593;
           };
           class IndicatorRPM: Rotation
           {
               type="rotation";
               source="rpm";
               selection="rpm";
               axis="rpm_axis";
               memory=1;
               minValue=0;
               maxValue=7500;
               angle0=(rad 0);
               angle1=(rad 250);
           };                
           class fuel
           {
               type="rotation";
               source="fuel";
               selection="fuel";
               axis="fuel_axis";
               memory=1;
               minValue=0;
               maxValue=1;
               angle0=0;
               angle1="rad +55";
           };
           class prop_01
           {
               type="rotation";
               source="rpm";
               selection="prop_1";
               axis="prop_1_axis";
               memory=1;
               minValue=1000;
               maxValue=7000;
               angle0="rad 30";
               angle1="rad 35";
           };

           class daylights
           {
               type="hide";
               source="rpm";
               selection="daylights";
               minValue=-0.8;
               maxValue=0.2;
               unhidevalue=1;
               sourceAddress="clamp";
           };

           class reverse_light
           {
               type="Hide";
               selection="reverse_light";
               sourceAddress="clamp";
               source="Gear";
               minValue = -1;
               maxValue = 0;
               hideValue = "0.2";    
           };

           class damageHidedoor1:damageHide
           {
               selection="door1";
           };
           class damageHidedoor2:damageHide
           {
               selection="door2";
           };    

           class Glass5_destruct
           {
               type="hide";
               selection="glass5";
               source="HitGlass5";
               minValue = 0;
               maxValue = 1;
               hidevalue = 0.99999;
           };    
           class Wheel_1_1_Damper: Wheel_1_1_Damper
           {
               type="translation";
               source="damper";
               selection="wheel_1_1_damper_land";
               axis="posun wheel_1_1";
               animPeriod = 1;
               minValue="0";
               maxValue="1";
               offset0= "0.5";
               offset1= "-0.5";
               memory=1;
           };
           class wheel_2_1_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_1_damper_land";            
           };
           class wheel_1_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_1_2_damper_land";                        
           };
           class Wheel_2_2_Damper: Wheel_1_1_Damper
           {
               selection="wheel_2_2_damper_land";        
           };            
       };
   };

};  

Share this post


Link to post
Share on other sites

The 3 places where you tried to put your model name are correct. If you tried "class YOURMODEL: Car" instead of "class DAR_ImpalaPIM: Car", you did it right.

Ideally, you should write your own model.cfg from scratch - no two cars/models are the same, even if they share many sections, animations or the skeleton.

If it crashes the game, take a look at the RPT, you can sometimes find clues as to what's wrong. If that doesn't help, I would try adding the model.cfg you borrowed in chunks, so you can isolate the part that's causing the crash. I would probably start by removing the last 2 classes: DAR_ImpalaPID and DAR_ImpalaPIS, and cut down class Car and DAR_ImpalaPIM (or whatever you replace it with) to a minimum. Then gradually add animations back to them.

Share this post


Link to post
Share on other sites

Thanks for Your reply and suggestions....

I don't remember....where is the RPT?

I tried also with this simple model.cfg (the same problems):

class cfgSkeletons
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class [color="#FF0000"]my_car_model.p3d[/color] : default
{
	SkeletonBones[]=
	{
		"drivewheel","",

		"wheel_1_1_damper_land","",
		"wheel_1_2_damper_land","",
		"wheel_1_3_damper_land","",
		"wheel_1_4_damper_land","",

		"wheel_2_1_damper_land","",
		"wheel_2_2_damper_land","",
		"wheel_2_3_damper_land","",
		"wheel_2_4_damper_land","",

		"wheel_1_1_damper","wheel_1_1_damper_land",
		"wheel_1_2_damper","wheel_1_2_damper_land",
		"wheel_1_3_damper","wheel_1_3_damper_land",
		"wheel_1_4_damper","wheel_1_4_damper_land",

		"wheel_2_1_damper","wheel_2_1_damper_land",
		"wheel_2_2_damper","wheel_2_2_damper_land",
		"wheel_2_3_damper","wheel_2_3_damper_land",
		"wheel_2_4_damper","wheel_2_4_damper_land",

		"wheel_1_1_steering","wheel_1_1_damper",
		"wheel_1_2_steering","wheel_1_2_damper",
		"wheel_1_3_steering","wheel_1_3_damper",
		"wheel_1_4_steering","wheel_1_4_damper",

		"wheel_2_1_steering","wheel_2_1_damper",
		"wheel_2_2_steering","wheel_2_2_damper",
		"wheel_2_3_steering","wheel_2_3_damper",
		"wheel_2_4_steering","wheel_2_4_damper",

		"wheel_1_1","wheel_1_1_steering",
		"wheel_1_2","wheel_1_2_steering",
		"wheel_1_3","wheel_1_3_steering",
		"wheel_1_4","wheel_1_4_steering",

		"wheel_2_1","wheel_2_1_steering",
		"wheel_2_2","wheel_2_2_steering",
		"wheel_2_3","wheel_2_3_steering",
		"wheel_2_4","wheel_2_4_steering",

		"wheel_1_1_unhide","wheel_1_1",
		"wheel_1_2_unhide","wheel_1_2",
		"wheel_1_3_unhide","wheel_1_3",
		"wheel_1_4_unhide","wheel_1_4",

		"wheel_2_1_unhide","wheel_2_1",
		"wheel_2_2_unhide","wheel_2_2",
		"wheel_2_3_unhide","wheel_2_3",
		"wheel_2_4_unhide","wheel_2_4",

		"wheel_1_1_hide","wheel_1_1",
		"wheel_1_2_hide","wheel_1_2",
		"wheel_1_3_hide","wheel_1_3",
		"wheel_1_4_hide","wheel_1_4",

		"wheel_2_1_hide","wheel_2_1",
		"wheel_2_2_hide","wheel_2_2",
		"wheel_2_3_hide","wheel_2_3",
		"wheel_2_4_hide","wheel_2_4",

		"otocvez",	"",
		"otochlaven",	"otocvez",

		"damagehlaven",	"otochlaven",
		"damagevez",	"otocvez",
		"damagehide",	"",

		"glass1",	"damagehide",
		"glass2",	"damagehide",
		"glass3",	"damagehide",
		"glass4",	"damagehide",
		"glass5",	"damagehide",
		"glass6",	"damagehide",

		"reverse_light","",
		"daylights","damageHide",
		"Light_L", "",
		"Light_R", "",

		"ukaz_rychlo",	"",
		"ukaz_rychlo2",	"",
		"ukaz_rpm",	"",
		"mph",	"",
		"rpm",	"",
		"fuel",	"",
		"fuel_1",	"",
		"fuel_01",	"",
		"fuel_2",	"",
		"fuel_3",	"",
		"prop_01",	"",
		"prop_02",	"",
		"prop_2",	"",
		"prop_1",	""
	};
};
};
class CfgModels
{
class Default
{
	sections[] = {};
	sectionsInherit="";
	skeletonName = "";
};
class [color="#FF0000"]my_car_model.p3d[/color]:Default
{
	skeletonName="[color="#FF0000"]my_car_model.p3d[/color]";
	sections[]=
	{
		"glass1",
		"glass2",
		"glass3",
		"glass4",
		"glass5",
		"glass6",
		"Light_L",
		"Light_R",
		"body",
		"karoserie",
		"motor",
		"zbytek",
		"camo",
		"brzdove svetlo",
		"zadni svetlo",
		"podsvit pristroju",
		"spz"
	};
	class Animations
	{
		class damageHide
		{
			type="hide";
			source="damage";
			selection="damagehide";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 1.0;
		};
		class damageHideVez
		{
			type="hide";
			source="damage";
			selection="otocvez";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 1.0;
		};
		class damageHideHlaven
		{
			type="hide";
			source="damage";
			selection="otochlaven";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 1.0;
		};

		// Wheels START
		// Wheels Complete Destruct START
		class wheel_1_1_destruct
		{
			type="hide";
			selection="wheel_1_1_hide";
			source="HitLFWheel";
			minValue = 0; // upravit na 0.99
			maxValue = 1; // upravit na 1.0
			hidevalue = 0.99999;
		};
		class wheel_1_2_destruct:wheel_1_1_destruct {source="HitLBWheel";selection="wheel_1_2_hide";};
		class wheel_1_3_destruct:wheel_1_1_destruct {source="HitLMWheel";selection="wheel_1_3_hide";};
		class wheel_1_4_destruct:wheel_1_1_destruct {source="HitLF2Wheel";selection="wheel_1_4_hide";};

		class wheel_2_1_destruct:wheel_1_1_destruct {source="HitRFWheel";selection="wheel_2_1_hide";};
		class wheel_2_2_destruct:wheel_1_1_destruct {source="HitRBWheel";selection="wheel_2_2_hide";};
		class wheel_2_3_destruct:wheel_1_1_destruct {source="HitRMWheel";selection="wheel_2_3_hide";};
		class wheel_2_4_destruct:wheel_1_1_destruct {source="HitRF2Wheel";selection="wheel_2_4_hide";};

		class wheel_1_1_destruct_unhide
		{
			type="hide";
			selection="wheel_1_1_unhide";
			source="HitLFWheel";
			minValue = 0; 
			maxValue = 1; 
			hidevalue = 0.00000;
			UnHidevalue = 1.00000;
		};
		class wheel_1_2_destruct_unhide:wheel_1_1_destruct_unhide {source="HitLBWheel";selection="wheel_1_2_unhide";};
		class wheel_1_3_destruct_unhide:wheel_1_1_destruct_unhide {source="HitLMWheel";selection="wheel_1_3_unhide";};
		class wheel_1_4_destruct_unhide:wheel_1_1_destruct_unhide {source="HitLF2Wheel";selection="wheel_1_4_unhide";};

		class wheel_2_1_destruct_unhide:wheel_1_1_destruct_unhide {source="HitRFWheel";selection="wheel_2_1_unhide";};
		class wheel_2_2_destruct_unhide:wheel_1_1_destruct_unhide {source="HitRBWheel";selection="wheel_2_2_unhide";};
		class wheel_2_3_destruct_unhide:wheel_1_1_destruct_unhide {source="HitRMWheel";selection="wheel_2_3_unhide";};
		class wheel_2_4_destruct_unhide:wheel_1_1_destruct_unhide {source="HitRF2Wheel";selection="wheel_2_4_unhide";};

		// Wheels Complete Destruct END

		#define DamageOffset 0.2

		// Wheels Damage START
		class wheel_1_1_Damage:wheel_1_1_destruct
		{
			type="translation";
			axis="Basic_Damper_Destruct_Axis";
			memory=1;
			selection="wheel_1_1_damper";
			source="HitLFWheel";
			minValue = 0.0;
			maxValue = 1;
			offset0 = 0;
			offset1 = DamageOffset;
		};
		class wheel_1_2_Damage:wheel_1_1_Damage {source="HitLBWheel";selection="wheel_1_2_damper";};
		class wheel_1_3_Damage:wheel_1_1_Damage {source="HitLMWheel";selection="wheel_1_3_damper";};
		class wheel_1_4_Damage:wheel_1_1_Damage {source="HitLF2Wheel";selection="wheel_1_4_damper";};

		class wheel_2_1_Damage:wheel_1_1_Damage {source="HitRFWheel";selection="wheel_2_1_damper";};
		class wheel_2_2_Damage:wheel_1_1_Damage {source="HitRBWheel";selection="wheel_2_2_damper";};
		class wheel_2_3_Damage:wheel_1_1_Damage {source="HitRMWheel";selection="wheel_2_3_damper";};
		class wheel_2_4_Damage:wheel_1_1_Damage {source="HitRF2Wheel";selection="wheel_2_4_damper";};


		class wheel_1_1_Damper_Damage_BackAnim:wheel_1_1_Damage {selection="wheel_1_1_damper";offset1 = -1.2*DamageOffset;};
		class wheel_1_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLBWheel";selection="wheel_1_2_damper";};
		class wheel_1_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLMWheel";selection="wheel_1_3_damper";};
		class wheel_1_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLF2Wheel";selection="wheel_1_4_damper";};

		class wheel_2_1_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRFWheel";selection="wheel_2_1_damper";};
		class wheel_2_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRBWheel";selection="wheel_2_2_damper";};
		class wheel_2_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRMWheel";selection="wheel_2_3_damper";};
		class wheel_2_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRF2Wheel";selection="wheel_2_4_damper";};

		class Glass1_destruct
		{
			type="hide";
			source="HitGlass1";
			selection="glass1";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class Glass2_destruct
		{
			type="hide";
			source="HitGlass2";
			selection="glass2";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class Glass3_destruct
		{
			type="hide";
			source="HitGlass3";
			selection="glass3";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class Glass4_destruct
		{
			type="hide";
			source="HitGlass4";
			selection="glass4";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class Glass5_destruct
		{
			type="hide";
			source="HitGlass5";
			selection="glass5";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class Glass6_destruct
		{
			type="hide";
			source="HitGlass6";
			selection="glass6";
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			hideValue = 0.99;
		};
		class DrivingWheel
		{
			type="rotation";
			source="drivingWheel";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="drivewheel";
			axis="drivewheel_axis";//*possibly*
			minValue = -1.0;//rad -57.29578
			maxValue = 1.0;//rad 57.29578
			minPhase = -1.0;//rad -57.29578
			maxPhase = 1.0;//rad 57.29578
			angle0 = -4.0;//rad -229.18312;
			angle1 = 4.0;//rad 229.18312;
//				AxisPos[] = {-4.0,4.0,2.8026e-045/*#DEN*/};
//				AxisDir[] = {6.7722983e+022,1.12586835e+024,3.2478835e-009};
//				angle = 1.8314518e+025;
//				axisOffset = 1.1258686e+024
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="wheel_1_1_steering";
			axis="wheel_1_1_steering_axis";//*possibly*
			minValue = -1.5707964;//rad -90.0
			maxValue = 1.5707964;//rad 90.0
			minPhase = -1.5707964;//rad -90.0
			maxPhase = 1.5707964;//rad 90.0
			angle0 = 1.047198;//rad 60.00003;
			angle1 = -1.047198;//rad -60.00003;
//				AxisPos[] = {1.047198,-1.047198,2.8026e-045/*#DEN*/};
//				AxisDir[] = {6.7722983e+022,1.12586835e+024,3.2479404e-009};
//				angle = 1.8314518e+025;
//				axisOffset = 1.1258686e+024
		};
		class Steering_2_1
		{
			type="rotationY";
			source="drivingWheel";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="wheel_2_1_steering";
			axis="wheel_2_1_steering_axis";//*possibly*
			minValue = -1.5707964;//rad -90.0
			maxValue = 1.5707964;//rad 90.0
			minPhase = -1.5707964;//rad -90.0
			maxPhase = 1.5707964;//rad 90.0
			angle0 = 1.047198;//rad 60.00003;
			angle1 = -1.047198;//rad -60.00003;
//				AxisPos[] = {1.047198,-1.047198,1.4013e-045/*#DEN*/};
//				AxisDir[] = {6.7709166e+022,1.2781053e+019,4.6657122e+024};
//				angle = 9.95461e-039/*#DEN*/;
//				axisOffset = 0.0
		};

		class Wheel_1_1
		{
			type="rotationX";
			source="wheel";
			selection="wheel_1_1";
			axis="wheel_1_1_axis";
			memory=1;
			sourceAddress="loop";
			minValue=0;
			maxValue=1;
			angle0=0;
			angle1="rad -360";
		};
		class wheel_2_1: Wheel_1_1
		{
			selection="wheel_2_1";
			axis="wheel_2_1_axis";
		};
		class wheel_1_2: Wheel_1_1
		{
			selection="wheel_1_2";
			axis="wheel_1_2_axis";
		};
		class wheel_1_3: Wheel_1_1
		{
			selection="wheel_1_3";
			axis="wheel_1_3_axis";
		};
		class Wheel_2_2: Wheel_1_1
		{
			selection="wheel_2_2";
			axis="wheel_2_2_axis";
		};
		class Wheel_2_3: Wheel_1_1
		{
			selection="wheel_2_3";
			axis="wheel_2_3_axis";
		};
		class Wheel_1_4: Wheel_1_1
		{
			selection="wheel_1_4";
			axis="wheel_1_4_axis";
		};
		class Wheel_2_4: Wheel_1_1
		{
			selection="wheel_2_4";
			axis="wheel_2_4_axis";
		};
		class Wheel_1_1_Damper
		{
			type="translation";
			source="damper";
			selection="wheel_1_1_damper_land";
			axis="posun wheel_1_1";
			animPeriod = 1;
			minValue="0";
			maxValue="1";
			offset0= "0.5";
			offset1= "-0.5";
			memory=1;
		};
		class wheel_2_1_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_1_damper_land";
		};
		class wheel_1_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_1_2_damper_land";
		};
		class Wheel_2_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_2_damper_land";
		};
		class IndicatorSpeed
		{
			type="rotation";
			source="speed";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="mph";
			axis="mph_axis";//*possibly*
			minValue = 0.0;//rad 0.0
			maxValue = 66.648;//rad 3818.6492
			minPhase = 0.0;//rad 0.0
			maxPhase = 66.648;//rad 3818.6492
			angle0 = 0.0;//rad 0.0;
			angle1 = -4.660029;//rad -267.0;
//				AxisPos[] = {0.0,-4.660029,0.0};
//				AxisDir[] = {1.7259743e+025,7.5632076e+028,4.6485045e+027};
//				angle = 4.6508887e+027;
//				axisOffset = 0.0
		};
		class IndicatorRpm
		{
			type="rotation";
			source="rpm";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="rpm";
			axis="rpm_axis";//*possibly*
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			angle0 = 0.0;//rad 0.0;
			angle1 = 4.310963;//rad 247.0;
//				AxisPos[] = {0.0,4.310963,0.0};
//				AxisDir[] = {1.7259743e+025,7.5632076e+028,7.2392455e+022};
//				angle = 2.9156173e+032;
//				axisOffset = 3.88846e-041/*#DEN*/
		};
		class IndicatorFuel
		{
			type="rotation";
			source="fuel";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="fuel_1";
			axis="fuel_1_axis";//*possibly*
			minValue = 0.0;//rad 0.0
			maxValue = 1.0;//rad 57.29578
			minPhase = 0.0;//rad 0.0
			maxPhase = 1.0;//rad 57.29578
			angle0 = -4.363323;//rad -250.0;
			angle1 = -0.017453292;//rad -1.0;
//				AxisPos[] = {-4.363323,-0.017453292,2.24208e-044/*#DEN*/};
//				AxisDir[] = {1.00893e-043/*#DEN*/,1.4013e-045/*#DEN*/,5.46506e-044/*#DEN*/};
//				angle = 2.8026e-045/*#DEN*/;
//				axisOffset = 2.66247e-044/*#DEN*/
		};
		class daylights
		{
			type="hide";
			source="rpm";
			selection="daylights";
			minValue=-0.8;
			maxValue=0.2;
			unhidevalue=1;
			sourceAddress="clamp";
		};
		class reverse_light
		{
			type="Hide";
			selection="reverse_light";
			sourceAddress="clamp";
			source="Gear";
			minValue = -1;
			maxValue = 0;
			hideValue = "0.2";	
		};
	};//Animations
};//modelclass
};//CfgModels

Share this post


Link to post
Share on other sites

Well, the cfgSkeletons doesn't need the name of the P3d, you can call that anything, instead of using "my_car_model" I would use "my_car_skel" or something similar, then in the cfgModels, make sure to put "my_car_skel" in the skeletonName=""; section.

So something like: skeletonName="my_car_skel";

Made a quick one for your information: http://pastebin.com/u1dj0hdh, Oh and I'm not sure if you put it there for our information, but you don't need .p3d in the class for the CfgModels.

Edited by Kiory

Share this post


Link to post
Share on other sites

Thanks Kiory, but I need to understand better...

I used only the name without .p3d....

I have my model.p3d called "max_ford_crown_victoria"

So how I have to write in model.cfg???

Share this post


Link to post
Share on other sites

Like this: http://pastebin.com/mkn8aTEm

Bare in mind that the crashing issue could be caused by something else entirely, like too many vertices on the model, or a dodgy config, can you also post your config.cpp? There's also a lot of stuff in the model.cfg that probably doesn't apply to your model, such as animations, model selections etc, it's probably best to delete these things and re add them as needed.

Edited by Kiory

Share this post


Link to post
Share on other sites

The config.cpp should be right, because my car works in game also without model.cfg...

I tried your suggestion...but unfortunately It doesn't work....

the same problem :banghead:

Edited by maxjoiner

Share this post


Link to post
Share on other sites

Just to let you know the config should be Config.cpp not .paa (.paa is a texture format)

Share this post


Link to post
Share on other sites

Thanks, I know it...

I wrong only in forum

into my addon It's Config.cpp....

Share this post


Link to post
Share on other sites

After some experiments where I verified my car model 3d memory point and wheels axis are correct...

Now my ArmA3 crashes also without model.cfg, while before it worked with only config.cpp ....

what f@*# is happened?!!

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  

×