Jump to content
Sign in to follow this  
Jantemplar

Wheel animation, animates incorrectly

Recommended Posts

Would not the view cargo lod suffice, or do you require view cargo and view pilot.

Share this post


Link to post
Share on other sites

Well i just re did the the model definitions, and the config etc in buldozer its fine and the animations are working perfectly, soon as i throw it into game it goes back to what happened before.

Gnat m8, i think i will send you the file, just let me know how and ill send them over.

Share this post


Link to post
Share on other sites

Sent you a pm Gnat with the Download link Unpbod and unbinarized.

---------- Post added at 08:16 PM ---------- Previous post was at 07:05 PM ----------

Never mind, Problem solved thanks to NZDF Crash, Thanks for all your guys help and effort. A beta version should be released momentarily.

Share this post


Link to post
Share on other sites

geez .... after scratching my head over the wrong files (p3d and model.cfg) for hours it turns out its just 1 line in the config.cpp

autocenter = false;

Delete it !!

Best of luck mate.

Share this post


Link to post
Share on other sites

LOL!!!, thanks

Turns out Crash, still only got one of the animations working, so thanks for that Gnat, it fixed them all, woot!!!!1

Share this post


Link to post
Share on other sites

I can't get my car to appear in editor (can't find it in selections)... Can't figure out what's wrong, this is my config.cpp:

class CfgPatches
{
class Murcielago
       {
         units[] = {Murcielago};
         weapons[] = {};
         requiredVersion = 1.00;
       };
};

class CfgVehicleClasses
{
class Murcielago
{
	displayName = "Murcielago";
};

class CfgVehicles
{
    class Land;
    class LandVehicle: Land {};
    class Car: LandVehicle {};
    class VWGolf : Car {};
    class Murcielago : VWGolf
       {
extCameraPosition[] = {0, 0.5, -8};
terrainCoef = 2.0;
crew = "Civilian2";
       vehicleClass="Murcielago";
maxSpeed = 330;
model=\Murcielago\Murcielago;
DisplayName="Murcielago";
side=TCivilian;
       transportSoldier=1;
       };
};

And this is model.cfg:

class CfgSkeletons
{
//skelRefClass
class car;

class Murcielago:car
{

	isDiscrete=1;
	skeletonInherit = "";
	skeletonBones[]=
	{

		"dr_weel","",
		"ind_fuel","",
		"ind_rpm","",
		"ind_spd","",
		"damp_fr","","damp_br","",
		"damp_fl","","damp_bl","",
                       "l_b_wheel","damp_bl",
		"l_f_clp","",
		"l_f_wheel","damp_fl",
		"r_b_wheel","damp_br",
		"r_f_clp","",
		"r_f_wheel","damp_fr",
	};
};
//skelClass2

};
class CfgModels
{
class Default
{
	sectionsInherit = "";
	sections[] = {};
};

//modelRefClass
class car;

class Murcielago:car
{

	sectionsInherit = "";
	sections[] = 
	{
                       "damp_fl","damp_fr","damp_bl","damp_br",
		"bck_lights","",
		"body","",
		"dr_weel","",
		"exhaust","",
		"frt_lights","",
		"gear","",
		"hand_brake","",
		"ind_fuel","",
		"ind_oil","",
		"ind_rpm","",
		"ind_spd","",
		"ind_wtemp","",
		"l_b_clp","",
		"l_b_wheel","",
		"l_f_clp","",
		"l_f_wheel","",
		"mirrors","",
		"panel","",
		"panel_undr","",
		"pedals","",
		"r_b_clp","",
		"r_b_wheel","",
		"r_f_clp","",
		"r_f_wheel","",
		"seats","",
	};
	skeletonName = "Murcielago";
	class Animations
	{
		class FrontWheelR
		{
			type = "rotationX";
			source = "wheel";
			memory = "false";
			angle0 = "0";
			angle1 = "rad -360";
			maxValue = "1";
			minValue = "0";
			selection = "r_f_wheel";
			sourceAddress = "loop";
		};
		class FrontWheelL : FrontWheelR
                       {
                               selection = "l_f_wheel";
                       };
                       class FrontWheelRTurn
		{
			type = "rotationY";
			source = "drivingWheel";
			memory = "false";
			angle0 = "rad 35";
			angle1 = "rad -35";
			maxValue = "1";
			minValue = "-1";
			selection = "r_f_wheel";
			sourceAddress = "clamp";
		};
                       class FrontWheelLTurn : FrontWheelRTurn
                       {
                               selection = "l_f_wheel";
                       };
		class BackWheelR
		{
			type = "rotationX";
			source = "wheel";
			memory = "false";
			angle0 = "0";
			angle1 = "rad -360";
			maxValue = "1";
			minValue = "0";
			selection = "r_b_wheel";
			sourceAddress = "loop";
		};
                       class BackWheelL : BackWheelR
                       {
                               selection = "l_b_wheel";
                       };
		class FrontCaliperR
		{
			type = "rotation";
			source = "drivingWheel";
			memory = "true";
			angle0 = "rad 35";
			angle1 = "rad -35";
			axis = "r_f_clp_axis";
			maxValue = "1";
			minValue = "-1";
			selection = "r_f_clp";
			sourceAddress = "clamp";
		};
		class SteeringWheel
		{
			type = "rotation";
			source = "drivingWheel";
			memory = "true";
			angle0 = "rad -120";
			angle1 = "rad 120";
			axis = "dr_weel_axis";
			maxValue = "1";
			minValue = "-1";
			selection = "dr_weel";
			sourceAddress = "clamp";
		};
		class IndicatorFuel
		{
			type = "rotation";
			source = "fuel";
			memory = "true";
			angle0 = "0";
			angle1 = "rad 100";
			axis = "ind_fuel_axis";
			maxValue = "1";
			minValue = "0";
			selection = "ind_fuel";
			sourceAddress = "clamp";
		};
		class IndicatorRpm
		{
			type = "rotation";
			source = "rpm";
			memory = "true";
			angle0 = "0";
			angle1 = "rad 250";
			axis = "ind_rpm_axis";
			maxValue = "1";
			minValue = "0";
			selection = "ind_rpm";
			sourceAddress = "clamp";
		};
		class IndicatorSpeed
		{
			type = "rotation";
			source = "speed";
			memory = "true";
			angle0 = "0";
			angle1 = "rad 250";
			axis = "ind_spd_axis";
			maxValue = "1";
			minValue = "0";
			selection = "ind_spd";
			sourceAddress = "clamp";
		};
		class FrontCaliperL
		{
			type = "rotation";
			source = "drivingWheel";
			memory = "true";
			angle0 = "rad -35";
			angle1 = "rad 35";
			axis = "l_f_clp_axis";
			maxValue = "1";
			minValue = "-1";
			selection = "l_f_clp";
			sourceAddress = "clamp";
		};
                       class Wheel_Damper_rf
		{
			type="translationY";
			source="damper";
			selection="damp_fr";
			axis="";
			minValue=-0.08;
			maxValue=0.06;
			memory=false;
		};
		class Wheel_Damper_front_left : Wheel_Damper_rf
		{
			selection="damp_fl";
		};
		class Wheel_Damper_back_right : Wheel_Damper_rf
		{
			selection="damp_br";
		};
		class Wheel_Damper_back_left : Wheel_Damper_rf
		{
			selection="damp_bl";
		};
		//animsMurcielago
	};
};
//modelClass2

*EDIT*

Solved on another thread.

Edited by Minoza

Share this post


Link to post
Share on other sites

Hi again!

I have little problem which I can not solve...

I got my car in game, but speed indicator shows max value whenever I hit gas, it wont show real speed value although I defined in model.cfg

source = ''speed''; for my speed indicator...

And also my bigger problem is that whenever I exit my car the game crashes to desktop... no error, just CTD...

Can anyone help me out on this, I tried different threads, forums etc... Please?!

Share this post


Link to post
Share on other sites
maxValue = "1";

minValue = "0";

That wont work.

The "value" being used here is "speed", therefore maxValue should be something like 250

BTW, it wont get to 250 in ArmAII without "boost" scripts, 120 is about max without scripts.

As for CTD ...... I can't remember the reason for that right now ... sorry.

Share this post


Link to post
Share on other sites

FYI, the speed source's unit is not km/h but m/s.

So your maxvalue should be: maxSpeed / 3.6 :)

Cheers TeRp

Share this post


Link to post
Share on other sites

OK guys thanks a lot! Now if anyone could help me with my biggest problem at the moment; CTD when exiting car...

And also... I have no bloody idea how to make such a script (''boost'' script)... Could anyone explain it to me?

Thanks in advance and I must say that you have been very helpful to me and I really appreciate your efforts.

*EDIT*

Oh and also, I'm not sure who is doing wrong calculations here, but if my car top speed is 330 kph (which it should be), than I have to turn it in meters per second which is (if I'm correct) -> 330 * 0,27778 = 91,6674 m/s

So that means my maxValue parameter for speed indicator should be 91,6674 ?

Also game accepted maxSpeed parameter for car to be in kph which is 120 atm... I don't think maxSpeed is defined in m/s... only maxValue parameter

Edited by Minoza

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  

×