FriZY_SK 9 Posted February 25, 2008 Hi all, I have problem with animations in my addon. Wheels and steering wheel dont turn. dampers dont work too. No animation work. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define private 0 #define protected 1 #define public 2 #define true 1 #define false 0 #define LockNo 0 #define LockCadet 1 #define LockYes 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define VSoft 0 #define VArmor 1 #define VAir 2 class CfgPatches { class FFSFelicia { units[] = {"FFS_Felicia","FFS_Felicia_tun"}; weapons[] = {}; requiredVersion = 0.1; }; }; class CfgSkeletons { class Car; class FFS_FeliciaBones: Car { isDiscrete=1; skeletonInherit = ""; skeletonBones[]= { "pravy predni","", "pravy zadni","", "levy predni","", "levy zadni","", "volant","", }; }; }; class CfgModels { class Car; class FFS_Felicia: Car { sectionsInherit = ""; sections[] ={"pravy predni","pravy zadni","levy predni","levy zadni","L svetlo", "P svetlo"}; skeletonName = "FFS_FeliciaBones"; class Animations { class FFS_FeliciaFrontWheelR { type = "rotationX"; source = "wheel"; selection = "pravy predni"; axis = ""; memory = true; sourceAddress = "loop"; minValue = 0; maxValue = 1; angle0 = 0; angle1 = "rad -360"; }; class FFS_FeliciaFrontWheelL :FFS_FeliciaFrontWheelR { selection = "levy predni"; }; class FFS_FeliciaRearWheelR :FFS_FeliciaFrontWheelR { selection = "pravy zadni"; }; class FFS_FeliciaRearWheelL :FFS_FeliciaFrontWheelR { selection = "levy zadni"; }; class FFS_FeliciaFrontWheelRTurn { type = "rotationY"; source = "drivingWheel"; selection = "pravy predni"; axis = ""; memory = true; sourceAddress = "clamp"; minValue = -1; maxValue = 1; angle0 = "rad 35"; angle1 = "rad -35"; }; class FFS_FeliciaFrontWheelLTurn :FFS_FeliciaFrontWheelRTurn { selection = "levy predni"; }; class FFS_FeliciaDamperFrontWheelR { type = "translationY"; source = "damper"; selection = "pravy predni"; axis = ""; memory = true; sourceAddress = "clamp"; minValue = 0; maxValue = 1; angle0 = 0; angle1 = "35"; }; class FFS_FeliciaDamperFrontWheelL :FFS_FeliciaDamperFrontWheelR { selection = "levy predni"; }; class FFS_FeliciaDamperRearWheelR :FFS_FeliciaDamperFrontWheelR { selection = "pravy zadni"; }; class FFS_FeliciaDamperRearWheelL :FFS_FeliciaDamperFrontWheelR { selection = "levy zadni"; }; class FFS_FeliciaDrivingWheel { type = "rotationZ"; source = "drivingWheel"; selection = "volant"; axis = "osavolantkon"; sourceAddress = "mirror"; memory = 1; angle0 = "rad -70"; angle1 = "rad 70"; minValue = -1; maxValue = 1; }; }; }; }; class CfgVehicleClasses { class FFSCars { displayName = "FFS Cars"; }; }; class CfgVehicles { class Land; // External class reference class LandVehicle : Land { class AnimationSources; // External class reference }; class Car : LandVehicle {}; class Car_sedan : Car {}; class FFS_Felicia : Car_sedan { vehicleClass = "FFSCars"; side = TCivilian; displayName = "Skoda Felicia"; model = "\FFS_Felicia\felicia"; picture="\FFS_Felicia\pic\felicia_ico_ca"; icon="\FFS_Felicia\pic\felicia_mapico_ca"; mapsize = 6; crew = "Civilian"; transportSoldier = 3; magazines[] = {}; maxSpeed = 100; // max speed on level road, km/h extCameraPosition[] = {0, 2, -7}; driverAction = "sedan_Driver"; typicalCargo[] = {"Civilian"}; }; class FFS_Felicia_tun : FFS_Felicia { displayName = "Skoda Felicia (Tuning)"; model = "\FFS_Felicia\felicia_tun"; picture="\FFS_Felicia\pic\felicia_ico_ca"; icon="\FFS_Felicia\pic\tun_mapico_ca"; crew = "Civilian4"; soundEngine[]={"\FFS_Felicia\motor.wav",db-40,2.0}; magazines[] = {}; maxSpeed = 170; // max speed on level road, km/h turnCoef = 4; brakeDistance = 10; typicalCargo[] = {"Civilian"}; }; }; Do i Have anything wrong in my config??? Share this post Link to post Share on other sites
DPS -CCCP- 0 Posted March 5, 2008 You should create model.cfg More information at http://community.bistudio.com/wiki/Model_Config Share this post Link to post Share on other sites
Maceme 0 Posted March 6, 2008 Some days ago I posted a sample config of cfgmodels and cfgskeletons for working wheels, dampers... in a car: http://www.flashpoint1985.com/cgi-bin....t=71906 Share this post Link to post Share on other sites
FriZY_SK 9 Posted March 9, 2008 Thx for help I tried to fix it but I still dont know why animations dont work. If anybody want help me with this car contact me via PM or write here and i will send him this addon. Here is pic of the car (Skoda Felicia): Share this post Link to post Share on other sites
FriZY_SK 9 Posted March 11, 2008 OK problem is fixed,(thx to Vilas) The problem was that name of p3d model (felicia.p3d) was different as name in CfgModels (FFS_Felicia). Stupid mistake... Share this post Link to post Share on other sites