PDA

View Full Version : Pinto Not Working


billy240clint@hotmail
22nd May 2006, 04:18 PM
HI out there in Unreal land I have a rather perplexing problme on my hands with a 1976 Pinto that I am trying to code for my game. The problems is that when I compile the code I get he following set of errors.

Importing Defaults for ONSPinto
ObjectProperty Engine.SVehicle.Wheels.Wheels: unresolved reference to 'SVehicleWheel'Pinto.Pinto.RRWheel''
ObjectProperty Engine.SVehicle.Wheels.Wheels: unresolved reference to 'SVehicleWheel'Pinto.Pinto.LRWheel''
ObjectProperty Engine.SVehicle.Wheels.Wheels: unresolved reference to 'SVehicleWheel'Pinto.Pinto.RFWheel''
ObjectProperty Engine.SVehicle.Wheels.Wheels: unresolved reference to 'SVehicleWheel'Pinto.Pinto.LFWheel''
ObjectProperty Engine.Actor.KParams: unresolved reference to 'KarmaParamsRBFull'Pinto.Pinto.KParams0''

Now the SVehicle errors are new, the KParams error was one that I have had for a long time now and cant seam to get rid of it. I am using the code form the scorpin to power the pinto. Below is the code that I used whats wrong.

//-----------------------------------------------------------
// 1976 Ford Pinto
//-----------------------------------------------------------
class ONSPinto extends ONSWheeledCraft;

#exec OBJ LOAD FILE=..\Animations\Pinto.ukx
#exec OBJ LOAD FILE=..\textures\VehicleFX.utx
#exec OBJ LOAD FILE=..\textures\EpicParticles.utx
#exec OBJ LOAD FILE=..\textures\VMVehicles-TX.utx
#exec OBJ LOAD FILE=..\sounds\ONSVehicleSounds-S.uax

// This function is for server update as well as client update of
// textures and materials as well as the dust that is generated by the wheels
static function StaticPrecache(LevelInfo L)
{
Super.StaticPrecache(L);

L.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.RVgun');
L.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.RVrail');
L.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.Rvtire');
L.AddPrecacheStaticMesh(StaticMesh'AW-2004Particles.Debris.Veh_Debris2');
L.AddPrecacheStaticMesh(StaticMesh'AW-2004Particles.Debris.Veh_Debris1');
L.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp2_frames');
L.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp1_frames');
L.AddPrecacheMaterial(Material'ExplosionTex.Framed.we1_frames');
L.AddPrecacheMaterial(Material'ExplosionTex.Framed.SmokeReOrdered');
L.AddPrecacheMaterial(Material'AW-2004Particles.Fire.NapalmSpot');
L.AddPrecacheMaterial(Material'EpicParticles.Fire.SprayFire1');
L.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVcolorRED');
L.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.NEWrvNoCOLOR');
L.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVblades');
L.AddPrecacheMaterial(Material'VMVehicles-TX.Environments.ReflectionTexture');
L.AddPrecacheMaterial(Material'VMWeaponsTX.RVgunGroup.RVnewGUNtex');
L.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.MuzzleSpray');
L.AddPrecacheMaterial(Material'VehicleFX.Particles.DustyCloud2');
L.AddPrecacheMaterial(Material'VMParticleTextures.DirtKICKGROUP.dirtKICKTEX');
L.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVcolorBlue');
L.AddPrecacheMaterial(Material'Engine.GRADIENT_Fade');
L.AddPrecacheMaterial(Material'XEffectMat.Link.link_spark_green');
}


// Change this to your custom explosion mesh use meshpackage.meshgroup.meshname
// or meshpackage.meshname
simulated function UpdatePrecacheStaticMeshes()
{
Level.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.RVgun');
Level.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.RVrail');
Level.AddPrecacheStaticMesh(StaticMesh'ONSDeadVehicles-SM.RVexploded.Rvtire');
Level.AddPrecacheStaticMesh(StaticMesh'AW-2004Particles.Debris.Veh_Debris2');
Level.AddPrecacheStaticMesh(StaticMesh'AW-2004Particles.Debris.Veh_Debris1');

Super.UpdatePrecacheStaticMeshes();
}


// This section is dealing with explosions and updating materials server and client side
simulated function UpdatePrecacheMaterials()
{
Level.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp2_frames');
Level.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp1_frames');
Level.AddPrecacheMaterial(Material'ExplosionTex.Framed.we1_frames');
Level.AddPrecacheMaterial(Material'ExplosionTex.Framed.SmokeReOrdered');
Level.AddPrecacheMaterial(Material'AW-2004Particles.Fire.NapalmSpot');
Level.AddPrecacheMaterial(Material'EpicParticles.Fire.SprayFire1');
Level.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVcolorRED');
Level.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.NEWrvNoCOLOR');
Level.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVblades');
Level.AddPrecacheMaterial(Material'VMVehicles-TX.Environments.ReflectionTexture');
Level.AddPrecacheMaterial(Material'VMWeaponsTX.RVgunGroup.RVnewGUNtex');
Level.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.MuzzleSpray');
Level.AddPrecacheMaterial(Material'VehicleFX.Particles.DustyCloud2');
Level.AddPrecacheMaterial(Material'VMParticleTextures.DirtKICKGROUP.dirtKICKTEX');
Level.AddPrecacheMaterial(Material'VMVehicles-TX.RVGroup.RVcolorBlue');
Level.AddPrecacheMaterial(Material'Engine.GRADIENT_Fade');
Level.AddPrecacheMaterial(Material'XEffectMat.Link.link_spark_green');

Super.UpdatePrecacheMaterials();
}
defaultproperties
{

defaultproperties
{
WheelSoftness=0.040000
WheelPenScale=1.500000
WheelPenOffset=0.010000
WheelRestitution=0.100000
WheelInertia=0.100000
WheelLongFrictionFunc=(Points=((InVal=100.000000,OutVal=1.000000),(InVal=200.000000,OutVal=0.900000) ,(InVal=10000000000.000000,OutVal=0.900000)))
WheelLongSlip=0.010000
WheelLatSlipFunc=(Points=((InVal=30.000000,OutVal=0.009000),(InVal=45.000000),(InVal=10000000000.000 000)))
WheelLongFrictionScale=1.100000
WheelLatFrictionScale=1.500000
WheelHandbrakeSlip=0.010000
WheelHandbrakeFriction=0.100000
WheelSuspensionTravel=25.000000
WheelSuspensionOffset=-5.000000
WheelSuspensionMaxRenderTravel=25.000000
FTScale=0.030000
ChassisTorqueScale=0.400000
MinBrakeFriction=4.000000
MaxSteerAngleCurve=(Points=((OutVal=25.000000),(InVal=1500.000000,OutVal=8.000000),(InVal=1000000000 .000000,OutVal=8.000000)))
TorqueCurve=(Points=((OutVal=9.000000),(InVal=200.000000,OutVal=10.000000),(InVal=1500.000000,OutVal =11.000000),(InVal=2500.000000)))
GearRatios(0)=-0.500000
GearRatios(1)=0.400000
GearRatios(2)=0.650000
GearRatios(3)=0.850000
GearRatios(4)=1.100000
TransRatio=0.110000
ChangeUpPoint=2000.000000
ChangeDownPoint=1000.000000
LSDFactor=1.000000
EngineBrakeFactor=0.000100
EngineBrakeRPMScale=0.100000
MaxBrakeTorque=20.000000
SteerSpeed=110.000000
TurnDamping=35.000000
StopThreshold=100.000000
HandbrakeThresh=200.000000
EngineInertia=0.100000
IdleRPM=500.000000
EngineRPMSoundRange=10000.000000
SteerBoneAxis=AXIS_Z
SteerBoneMaxAngle=90.000000
RevMeterScale=4000.000000
bMakeBrakeLights=True
BrakeLightOffset(0)=(X=-75.000000,Y=18.000000,Z=5.000000)
BrakeLightOffset(1)=(X=-75.000000,Y=-18.000000,Z=5.000000)
BrakeLightMaterial=Texture'EpicParticles.Flares.FlashFlare1'
DaredevilThreshInAirSpin=90.000000
DaredevilThreshInAirTime=1.200000
bDoStuntInfo=True
bAllowBigWheels=True
AirTurnTorque=35.000000
AirPitchTorque=55.000000
AirPitchDamping=35.000000
AirRollTorque=35.000000
AirRollDamping=35.000000
IdleSound=Sound'ONSVehicleSounds-S.PRV.PRVEng01'
StartUpSound=Sound'ONSVehicleSounds-S.PRV.PRVStart01'
ShutDownSound=Sound'ONSVehicleSounds-S.PRV.PRVStop01'
StartUpForce="PRVStartUp"
ShutDownForce="PRVShutDown"
DestroyedVehicleMesh=StaticMesh'ForkLift.Body'
DestructionEffectClass=Class'Testing.ONSVehDeathTesting'
DisintegrationEffectClass=Class'Testing.ONSVehDeathTesting'
DisintegrationHealth=-100.000000
DestructionLinearMomentum=(Min=250000.000000,Max=400000.000000)
DestructionAngularMomentum=(Min=100.000000,Max=150.000000)
DamagedEffectScale=1.200000
DamagedEffectOffset=(X=100.000000,Y=-10.000000,Z=35.000000)
ImpactDamageMult=0.001000
HeadlightCoronaOffset(0)=(X=20.000000,Y=30.000000,Z=90.000000)
HeadlightCoronaOffset(1)=(X=20.000000,Y=-30.000000,Z=90.000000)
HeadlightCoronaMaterial=Texture'EpicParticles.Flares.FlashFlare1'
HeadlightCoronaMaxSize=100.000000
HeadlightProjectorMaterial=Texture'VMVehicles-TX.NEWprvGroup.PRVprojector'
HeadlightProjectorOffset=(X=145.000000,Z=11.000000)
HeadlightProjectorRotation=(Pitch=-1000)
HeadlightProjectorScale=0.650000


// OBJECT class

// RIGHT REAR WHEEL
Begin Object Class=SVehicleWheel Name=RRWheel
bPoweredWheel=True
bHandbrakeWheel=True
BoneName="tire02"
BoneRollAxis=AXIS_Y
BoneOffset=(Y=7.000000)
WheelRadius=24.000000
SupportBoneName="RrearStrut"
SupportBoneAxis=AXIS_X
End Object
Wheels(0)=SVehicleWheel'Pinto.Pinto.RRWheel'
//LEFT REAR WHEEL
Begin Object Class=SVehicleWheel Name=LRWheel
bPoweredWheel=True
bHandbrakeWheel=True
BoneName="tire04"
BoneRollAxis=AXIS_Y
BoneOffset=(Y=-7.000000)
WheelRadius=24.000000
SupportBoneName="LrearStrut"
SupportBoneAxis=AXIS_X
End Object
Wheels(1)=SVehicleWheel'Pinto.Pinto.LRWheel'
//RIGHT FRONT WHEEL
Begin Object Class=SVehicleWheel Name=RFWheel
bPoweredWheel=True
SteerType=VST_Steered
BoneName="tire"
BoneRollAxis=AXIS_Y
BoneOffset=(Y=7.000000)
WheelRadius=24.000000
SupportBoneName="RFrontStrut"
SupportBoneAxis=AXIS_X
End Object
Wheels(2)=SVehicleWheel'Pinto.Pinto.RFWheel'


//LEFT FRONT WHEEL
Begin Object Class=SVehicleWheel Name=LFWheel
bPoweredWheel=True
SteerType=VST_Steered
BoneName="tire03"
BoneRollAxis=AXIS_Y
BoneOffset=(Y=-7.000000)
WheelRadius=24.000000
SupportBoneName="LfrontStrut"
SupportBoneAxis=AXIS_X
End Object
Wheels(3)=SVehicleWheel'Pinto.Pinto.LFWheel'
VehicleMass=3.500000
bDrawDriverInTP=True
bCanDoTrickJumps=True
bDrawMeshInFP=True
bHasHandbrake=True
bSeparateTurretFocus=True
DrivePos=(X=2.000000,Z=38.000000)
ExitPositions(0)=(Y=-165.000000,Z=100.000000)
ExitPositions(1)=(Y=165.000000,Z=100.000000)
ExitPositions(2)=(Y=-165.000000,Z=-100.000000)
ExitPositions(3)=(Y=165.000000,Z=-100.000000)
EntryRadius=160.000000
FPCamPos=(X=15.000000,Z=25.000000)
TPCamDistance=375.000000
CenterSpringForce="SpringONSSRV"
TPCamLookat=(X=0.000000,Z=0.000000)
TPCamWorldOffset=(Z=100.000000)
DriverDamageMult=0.800000
VehiclePositionString="In a 1976 Pinto...Enjoy the ride!!!! HAHAHAHAHA"
VehicleNameString=" 1976 Pinto "
//Reference new scripts made in your classes folder that are derived for the scripts below just changed so that the names correspond to the correct scripts
RanOverDamageType=Class'Onslaught.DamTypeRVRoadkill'
CrushedDamageType=Class'Onslaught.DamTypeRVPancake'
MaxDesireability=0.400000
ObjectiveGetOutDist=1500.000000
HornSounds(0)=Sound'ONSVehicleSounds-S.Horns.Horn06'
HornSounds(1)=Sound'ONSVehicleSounds-S.Horns.Dixie_Horn'
GroundSpeed=940.000000
HealthMax=300.000000
Health=300
bReplicateAnimations=True
//Change here to change car look
Mesh=SkeletalMesh'Pinto.Pinto'
SoundVolume=180
CollisionRadius=100.000000
CollisionHeight=40.000000
Begin Object Class=KarmaParamsRBFull Name=KParams0
KInertiaTensor(0)=1.000000
KInertiaTensor(3)=3.000000
KInertiaTensor(5)=3.000000
KCOMOffset=(X=-0.250000,Z=-0.400000)
KLinearDamping=0.050000
KAngularDamping=0.050000
KStartEnabled=True
bKNonSphericalInertia=True
bHighDetailOnly=False
bClientOnly=False
bKDoubleTickRate=True
bDestroyOnWorldPenetrate=True
bDoSafetime=True
KFriction=0.500000
KImpactThreshold=700.000000
End Object

//IF YOU DO NOT HAVE THIS YOUR CAR WILL GO NO WHERE REALLY FAST
KPrams=KarmaParamsRBFull'Pinto.Pinto.KParams0'
}

Thanks in advance

Sam

Wulff
22nd May 2006, 04:33 PM
Rather simple mistake you made, you're not referencing your own vehicle, your vehicle class is ONSPinto, not Pinto, your packageclass I don't know, so for KParams it should be '(your packageclass).ONSPinto.KParams0', same goes for the wheels, so for the left front wheel it should be '(your packageclass).ONSPinto.LFWheel'.

Logiq121
22nd May 2006, 04:34 PM
have you tried the package suffix yet

#exec OBJ LOAD FILE=..\Animations\Pinto.ukx package=Pinto.Pinto

billy240clint@hotmail
22nd May 2006, 04:40 PM
Okay I was jsut trying out the ONS Pinto Now I have everything saying Pinto not ONS Pinto and I still get the same error

billy240clint@hotmail
22nd May 2006, 04:50 PM
OKay Fast update to the problems IT works now but instead of putting Pinto.Pinto i jsut put Pinot in and it worked. All excet for the KParams I still get the same error

Sam

matariel
22nd May 2006, 04:50 PM
ughhhh dude?? you got defaultproperties written up twice eh??
Super.UpdatePrecacheMaterials();
}
defaultproperties
{

defaultproperties
{
WheelSoftness=0.040000
WheelPenScale=1.500000
WheelPenOffset=0.010000
WheelRestitution=0.100000
WheelInertia=0.100000
might give you juz a 'lil' bit of a problem :D

billy240clint@hotmail
22nd May 2006, 05:09 PM
Yep saw that and went back and checked that must have been a typo...I Have no idea as to why it keeps telling me that I have an unresovled refferance to KParams0 I did what you said for me to do and it still does not work...What I am doing now is putting some new code from a forklift that I am working on...So hers the code and it does work but what can I do to ge it to act more like the scoripon and less like the hellbender...Do i change its start up force to that if the scoripons...I still would still liek to know why its giving me this error with the Kparams.

Sam

billy240clint@hotmail
22nd May 2006, 05:17 PM
Okay So it works now that error still bugs me but i did get it to work finally. As to go about changing the perams of everything all i did was go back to the scripts and get what i need and then I put it inplace of information that i wanted to change. Thanks for all the help out there.


Sam