Jump to content
Sign in to follow this  
Phantom

Problem with Towing Tractor

Recommended Posts

Hey all,

i'm new in modelling, i have read many tutorials (pmc) and have build simple "things"... now the A2 Content is free for porting, so i decide to port first the Towing Tractor. I have an phsyx lod in the car, everything seems ok, but the vehicle is crooked to the left side (see pictures) !! Because it's under APL, i can post or send the project data if someone wants to help me !! :)

http://mods.24th-sts.eu/external/a3_a.jpg

http://mods.24th-sts.eu/external/a3_b.jpg

Thanks for helping me...

Regards, Phantom

edit : the config.cpp (have try many things... it can be chaotic...)

#include "basicdefines.hpp"

#include "CrewAnimations.hpp"

class CfgPatches

{

class STS24_TowingTractor

{

units[] ={"TowingTractor"};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {"A3_Soft_F"};

};

};

class CfgVehicles

{

class LandVehicle;

class Car: LandVehicle

{

class HitPoints;

class NewTurret;

};

class TowingTractor: Car

{

_generalMacro = "Offroad_Base";

scope=2;

side = 1;

maxspeed = 25;

armor=20;

cost=2000;

accuracy=1000;

wheelCircumference=2.283;

crew = "B_Helipilot_F";

typicalCargo[]={"B_Helipilot_F"};

transportSoldier = 0;

driverAction = "TowingTractor_Driver";

class Turrets {};

weapons[]={MiniCarHorn};

magazines[]={};

hasGunner = 0;

faction="BLU_F";

terrainCoef=4.0;

model="\sts24_towingtractor\TowingTractor";

picture="\sts24_towingtractor\data\UI\Picture_TowingTractor_CA.paa";

Icon="\sts24_towingtractor\data\UI\Icon_TowingTractor_CA.paa";

mapSize = 2;

displayName= "Towing Tractor";

soundGear[]={,db-85,1};

soundEngineOnInt[] = {"\sts24_towingtractor\sounds\ext-tractor-start-2", db-5, 1.0};

soundEngineOnExt[] = {"\sts24_towingtractor\sounds\ext-tractor-start-2", db-5, 1.0, 200};

soundEngineOffInt[]= {"\sts24_towingtractor\sounds\ext-Tractor-stop-1", db-5, 1.0};

soundEngineOffExt[]= {"\sts24_towingtractor\sounds\ext-Tractor-stop-1", db-5, 1.0, 200};

soundGetIn[]= {"\sts24_towingtractor\sounds\ext-Tractor-getout-1",db-20,1};

soundGetOut[]= {"\sts24_towingtractor\sounds\ext-Tractor-getout-1",db-20,1, 30};

buildCrash0[]={"\sts24_towingtractor\sounds\crash_building_01", db-3, 1, 200};

buildCrash1[]={"\sts24_towingtractor\sounds\crash_building_02", db-3, 1, 200};

buildCrash2[]={"\sts24_towingtractor\sounds\crash_building_03", db-3, 1, 200};

buildCrash3[]={"\sts24_towingtractor\sounds\crash_building_04", db-3, 1, 200};

soundBuildingCrash[]={buildCrash0, 0.25, buildCrash1, 0.25, buildCrash2, 0.25, buildCrash3, 0.25};

WoodCrash0[]={"\sts24_towingtractor\sounds\crash_mix_wood_01", db-3, 1, 200};

WoodCrash1[]={"\sts24_towingtractor\sounds\crash_mix_wood_02", db-3, 1, 200};

WoodCrash2[]={"\sts24_towingtractor\sounds\crash_mix_wood_03", db-3, 1, 200};

WoodCrash3[]={"\sts24_towingtractor\sounds\Crash\crash_mix_wood_04", db-3, 1, 200};

WoodCrash4[]={"\sts24_towingtractor\sounds\crash_mix_wood_05", db-3, 1, 200};

WoodCrash5[]={"\sts24_towingtractor\sounds\crash_mix_wood_06", db-3, 1, 200};

soundWoodCrash[]={woodCrash0, 0.166, woodCrash1, 0.166, woodCrash2, 0.166, woodCrash3, 0.166,woodCrash4, 0.166,woodCrash5, 0.166};

ArmorCrash0[]={"\sts24_towingtractor\sounds\crash_vehicle_01", db-3, 1, 200};

ArmorCrash1[]={"\sts24_towingtractor\sounds\crash_vehicle_02", db-3, 1, 200};

ArmorCrash2[]={"\sts24_towingtractor\sounds\crash_vehicle_03", db-3, 1, 200};

ArmorCrash3[]={"\sts24_towingtractor\sounds\crash_vehicle_04", db-3, 1, 200};

soundArmorCrash[]={ArmorCrash0, 0.25, ArmorCrash1, 0.25, ArmorCrash2, 0.25, ArmorCrash3, 0.25};

class SoundEvents

{

class AccelerationIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-Tractor-acce-1", db-5, 1.0};

limit = "0.5";

expression = "(engineOn*(1-camPos))*gmeterZ";

};

class AccelerationOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-Tractor-acce-1", db-5, 1.0, 250};

limit = "0.5";

expression = "(engineOn*camPos)*gmeterZ";

};

};

class Sounds

{

/* --------------------------------- */

// EXTERNAL SOUNDS TRACTOR */

/* --------------------------------- */

class EngineLowOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tractor-low-4", db0, 1.1, 300};

frequency = "(randomizer*0.05+0.95)*rpm";

volume = "engineOn*camPos*(thrust factor[0.7, 0.2])";

};

class EngineHighOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tractor-high-2a", db0, 0.8, 400};

frequency = "(randomizer*0.05+0.95)*rpm";

volume = "engineOn*camPos*(thrust factor[0.5, 1.0])";

};

class IdleOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tractor-idle-5", db-5, 1.0, 200};

frequency = "1";

volume = "engineOn*camPos*(rpm factor[0.35, 0])";

};

class TiresRockOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-rock2", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*rock*(speed factor[2, 20])";

};

class TiresSandOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-sand2", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*sand*(speed factor[2, 20])";

};

class TiresGrassOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-grass3", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*grass*(speed factor[2, 20])";

};

class TiresMudOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-mud2", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*mud*(speed factor[2, 20])";

};

class TiresGravelOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-gravel2", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*gravel*(speed factor[2, 20])";

};

class TiresAsphaltOut

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-asphalt3", db-15, 1.0, 40};

frequency = "1";

volume = "camPos*asphalt*(speed factor[2, 20])";

};

class NoiseOut

{

sound[] = {"\sts24_towingtractor\sounds\noise2", db-10, 1.0, 40};

frequency = "1";

volume = "camPos*(damper0 max 0.04)*(speed factor[0, 8])";

};

/* --------------------------------- */

// INTERNAL SOUNDS TRACTOR */

/* --------------------------------- */

class EngineLowIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-Tractor-low-4", db0, 1.1};

frequency = "(randomizer*0.05+0.95)*rpm";

volume = "((engineOn*thrust) factor[0.7, 0.2])*(1-camPos)";

};

class EngineHighIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-Tractor-high-2a", db0, 0.8};

frequency = "(randomizer*0.05+0.95)*rpm";

volume = "((engineOn*thrust) factor[0.5, 1.0])*(1-camPos)";

};

class IdleIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-Tractor-idle-4", db-5, 1.0};

frequency = "1";

volume = "engineOn*(rpm factor[0.35, 0])*(1-camPos)";

};

class TiresRockIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-rock2", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*rock*(speed factor[2, 20])";

};

class TiresSandIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-sand2", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*sand*(speed factor[2, 20])";

};

class TiresGrassIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-grass3", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*grass*(speed factor[2, 20])";

};

class TiresMudIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-mud2", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*mud*(speed factor[2, 20])";

};

class TiresGravelIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-gravel2", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*gravel*(speed factor[2, 20])";

};

class TiresAsphaltIn

{

sound[] = {"\sts24_towingtractor\sounds\ext-tires-asphalt3", db-15, 1.0};

frequency = "1";

volume = "(1-camPos)*asphalt*(speed factor[2, 20])";

};

class NoiseIn

{

sound[] = {"\sts24_towingtractor\sounds\noise2", db-15, 1.0};

frequency = "1";

volume = "(damper0 max 0.04)*(speed factor[0, 8])*(1-camPos)"; //definice INSIDE zvuku

};

};

dammageHalf[] =

{

"\sts24_towingtractor\data\skodovka_skla_CA.paa","\sts24_towingtractor\data\skodovka_sklabr1_CA.paa",

"\sts24_towingtractor\data\skodovka_skla_CA.paa","\sts24_towingtractor\data\skodovka_sklabr1_CA.paa"

};

dammageFull[] =

{

"\sts24_towingtractor\data\skodovka_skla_CA.paa","\sts24_towingtractor\data\skodovka_sklabr2_CA.paa",

"\sts24_towingtractor\data\skodovka_skla_CA.paa","\sts24_towingtractor\data\skodovka_sklabr2_CA.paa"

};

class Damage

{

tex[]={};

mat[]={

"\sts24_towingtractor\data\skodovka.rvmat",

"\sts24_towingtractor\data\skodovka.rvmat",

"\sts24_towingtractor\data\skodovka_destruct.rvmat"

};

};

rarityUrban=-1;

//simulation = "carx";

class Wheels

{

class LF

{

boneName = "levy predni tlumic";

steering = 1;

center = "wheel_1_1_steering_axis";

boundary = "wheel_1_1_bound";

};

class RF: LF

{

boneName = "pravy predni tlumic";

steering = 1;

center = "wheel_1_2_steering_axis";

boundary = "wheel_1_2_bound";

side = "right";

};

class LR: LF

{

boneName = "levy zadni tlumic";

steering = 0;

center = "wheel_2_1_steering";

boundary = "wheel_2_1_bound";

};

class RR: LF

{

boneName = "pravy zadni tlumic";

steering = 0;

center = "wheel_2_2_steering";

boundary = "wheel_2_2_bound";

side = "right";

};

};

};

};

Edited by Phantom

Share this post


Link to post
Share on other sites

Have you checked where the CG (Center of gravity) is on the Geometry LOD?

For that, Select All (Ctrl + A) and look where the pink/blue (cannot remember) point is in the 3D preview (Without Direct3D active).

Share this post


Link to post
Share on other sites
Hey

have look at it... seems to be ok !!

http://mods.24th-sts.eu/external/tractor.jpg

Any other ideas ??

Other point : if i write simlulation=carx in config, the tractor don't move... an idea why ??

Thanks for helping me...

Do you have the PhysX LOD with the components? (Structure -> Topology -> Find Components). If you use carx you need to do that.

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  

×