Author Topic: Vehicle has no torque.  (Read 2009 times)

So, I'm currently working on a modded Jeep, so I pretty much copied all of the Jeep's script to mine to begin. Of course, I changed datablock and image names. But now when I load it up in game, both my Jeep and the default Jeep are literally as slow as turtles. I will see about uploading the script here later, on my iPod at the moment. I also may try deleting the Jeep so it redownloads a fresh copy from the server. Any help on the matter is appreciated.

Disable Gamemode_Speedkart?

Disable Gamemode_Speedkart?
I always load it up as 'Custom' with very few addons enabled. I'm pretty sure that no gamemodes were enabled.

I always load it up as 'Custom' with very few addons enabled. I'm pretty sure that no gamemodes were enabled.
In that case post your script.

In that case post your script.
Ok, will do next time I get on the computer.

this may be a dumb qustion but....did you chang the datablocks? :P

this may be a dumb qustion but....did you chang the datablocks? :P
I changed datablock and image names


Ok, so here's the code. It's literally almost an exact duplicate of the Jeep (which doesn't work in singleplayer for me either). I'm about to try deleting the default Jeep and reload it to see if that helps.



Code: [Select]
//%error = ForceRequiredAddOn("Vehicle_Jeep");

//if(%error == $Error::AddOn_Disabled)
//{
//   JeepVehicle.uiName = "";
//}
exec("./jeep_Tire.cs");
exec("./jeep_Spring.cs");

// Vehicle //
/////////////
datablock WheeledVehicleData(RocketJeepVehicle)
{

   category = "Vehicles";
displayName = " ";
shapeFile = "./jeep.dts"; //"~/data/shapes/skivehicle.dts"; //
emap = true;
minMountDist = 3;
   
   numMountPoints = 3;
   mountThread[0] = "sit";
   mountThread[1] = "sit";
   mountThread[2] = "sit";

maxDamage = 200.00;
destroyedLevel = 200.00;
speedDamageScale = 1.04;
collDamageThresholdVel = 20.0;
collDamageMultiplier   = 0.02;

massCenter = "0 0 0";
   //massBox = "2 5 1";

maxSteeringAngle = 0.9785;  // Maximum steering angle, should match animation
integration = 4;           // Force integration time: TickSec/Rate
tireEmitter = VehicleTireEmitter; // All the tires use the same dust emitter

// 3rd person camera settings
cameraRoll = false;         // Roll the camera with the vehicle
cameraMaxDist = 13;         // Far distance from vehicle
cameraOffset = 7.5;        // Vertical offset from camera mount point
cameraLag = 0.0;           // Velocity lag of camera
cameraDecay = 0.75;        // Decay per sec. rate of velocity lag
cameraTilt = 0.4;
   collisionTol = 0.1;        // Collision distance tolerance
   contactTol = 0.1;

useEyePoint = false;

defaultTire = RocketJeepTire;
defaultSpring = RocketJeepSpring;
//flatTire = jeepFlatTire;
//flatSpring = jeepFlatSpring;

   numWheels = 4;

// Rigid Body
mass = 300;
density = 5.0;
drag = 1.5;
bodyFriction = 0.6;
bodyRestitution = 0.6;
minImpactSpeed = 10;        // Impacts over this invoke the script callback
softImpactSpeed = 10;       // Play SoftImpact Sound
hardImpactSpeed = 15;      // Play HardImpact Sound
groundImpactMinSpeed    = 10.0;

// Engine
engineTorque = 12000; //4000;       // Engine power
engineBrake = 2000;         // Braking when throttle is 0
brakeTorque = 50000;        // When brakes are applied
maxWheelSpeed = 30;        // Engine scale by current speed / max speed

rollForce = 900;
yawForce = 600;
pitchForce = 1000;
rotationalDrag = 0.2;

   // Advanced Steering
   steeringAutoReturn = true;
   steeringAutoReturnRate = 0.9;
   steeringAutoReturnMaxSpeed = 10;
   steeringUseStrafeSteering = true;
   steeringStrafeSteeringRate = 0.1;

// Energy
maxEnergy = 100;
jetForce = 3000;
minJetEnergy = 30;
jetEnergyDrain = 2;

splash = vehicleSplash;
splashVelocity = 4.0;
splashAngle = 67.0;
splashFreqMod = 300.0;
splashVelEpsilon = 0.60;
bubbleEmitTime = 1.4;
splashEmitter[0] = vehicleFoamDropletsEmitter;
splashEmitter[1] = vehicleFoamEmitter;
splashEmitter[2] = vehicleBubbleEmitter;
mediumSplashSoundVelocity = 10.0;   
hardSplashSoundVelocity = 20.0;   
exitSplashSoundVelocity = 5.0;

//mediumSplashSound = "";
//hardSplashSound = "";
//exitSplashSound = "";

// Sounds
//   jetSound = ScoutThrustSound;
//engineSound = idleSound;
//squealSound = skidSound;
softImpactSound = slowImpactSound;
hardImpactSound = fastImpactSound;
//wheelImpactSound = slowImpactSound;

//   explosion = VehicleExplosion;
justcollided = 0;

   uiName = "Rocket Jeep ";
rideable = true;
lookUpLimit = 0.65;
lookDownLimit = 0.45;

paintable = true;
   
   damageEmitter[0] = VehicleBurnEmitter;
damageEmitterOffset[0] = "0.0 0.0 0.0 ";
damageLevelTolerance[0] = 0.99;

   damageEmitter[1] = VehicleBurnEmitter;
damageEmitterOffset[1] = "0.0 0.0 0.0 ";
damageLevelTolerance[1] = 1.0;

   numDmgEmitterAreas = 1;

   initialExplosionProjectile = jeepExplosionProjectile;
   initialExplosionOffset = 0;         //offset only uses a z value for now

   burnTime = 4000;

   finalExplosionProjectile = jeepFinalExplosionProjectile;
   finalExplosionOffset = 0.5;          //offset only uses a z value for now

   minRunOverSpeed    = 4;   //how fast you need to be going to run someone over (do damage)
   runOverDamageScale = 8;   //when you run over someone, speed * runoverdamagescale = damage amt
   runOverPushScale   = 1.2; //how hard a person you're running over gets pushed

   //protection for passengers
   protectPassengersBurn   = false;  //protect passengers from the burning effect of explosions?
   protectPassengersRadius = true;  //protect passengers from radius damage (explosions) ?
   protectPassengersDirect = false; //protect passengers from direct damage (bullets) ?
};

which doesn't work in singleplayer for me either
Well obviously the problem is somewhere else than your script if the default jeep doesn't work either.

Ok, just deleted and re-downloaded the default Jeep model. It (and my custom one) both seem to be broken, regardless of whether I'm hosting LAN or singleplayer. This doesn't make sense to me; a freshly downloaded Vehicle_Jeep.zip should work just fine in singleplayer.

Ok, just deleted and re-downloaded the default Jeep model. It (and my custom one) both seem to be broken, regardless of whether I'm hosting LAN or singleplayer. This doesn't make sense to me; a freshly downloaded Vehicle_Jeep.zip should work just fine in singleplayer.
Post in the Help forum that your default Jeep doesn't work. Remember to include your console log.