I can't enter my vehicle

Ask questions, discuss ideas, get answers
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

I can't enter my vehicle

Post by Shrooms »

I scaled the sherman to a large size now I can't drive it..... ???? I also set up a spawn point for the allied team on this map which enters the vehicle on spawn but that spawn point does not show up! The debugger doesn't give me any errors on map load. How should I go about seeing how to fix this? It can blow up and be repaired like normal too.


Image
Last edited by Shrooms on Sat Nov 08, 2014 8:23 am, edited 2 times in total.
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: I can't enter my vehicle

Post by BotHunter »

Enter on spawn I think is only for bots. The reason you cant get in is probably because the entry radius is too small. Try enlarging that.
Walk quietly and carry a sniper rifle
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

Re: I can't enter my vehicle

Post by Shrooms »

I've tried changing the entry radius to many differing values and positions. Is there a possibility that if a pco has an animated bundle assigned and the .ske and .skn for that object aren't properly made would that lead to shutting down pco operations?
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: I can't enter my vehicle

Post by Vilespring »

I don't know what your problem is, I'm betting the entry radius. Put it's code in for us.
I know that a PCO can run with barely anything, because I made a barrel that somebody can hide in, and it could be pushed around, smashed, and exploded. So, I doubt a bad animated bundle is the problem.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

Re: I can't enter my vehicle

Post by Shrooms »

OK here's the code

Code: Select all

rem *** Sherman ***
ObjectTemplate.create PlayerControlObject BigSherman
ObjectTemplate.NameTagOffset 0/-0.3/0
ObjectTemplate.setNetworkableInfo BigShermanBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 8
ObjectTemplate.explosionDamage 5
ObjectTemplate.exitTimer 1
ObjectTemplate.drag 2
ObjectTemplate.mass 25000000000
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 100000
ObjectTemplate.maxhitpoints 100000
rem ObjectTemplate.material 50
ObjectTemplate.speedMod 1
ObjectTemplate.criticalDamage 12
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 13
ObjectTemplate.hpLostWhileUpSideDown 10
ObjectTemplate.hpLostWhileDamageFromWater 10
ObjectTemplate.addArmorEffect 50 e_PanzDamage 0/0.9/-1.8
ObjectTemplate.addArmorEffect 12 e_PanzFire 0/1.2/-1.4
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetalsmoke 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate BigSherman
rem -------------------------------------
ObjectTemplate.addTemplate lodBigSherman
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 25
ObjectTemplate.setVehicleIcon "Vehicle/Icon_sherman.tga"
ObjectTemplate.setVehicleIconPos 54/103
ObjectTemplate.setNumberOfWeaponIcons 2
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setSecondaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setSecondaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTLightTank
ObjectTemplate.setToolTipType  TTLightTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** lodSherman ***
ObjectTemplate.create LodObject lodBigSherman
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanComplex
ObjectTemplate.addTemplate BigShermanSimple
ObjectTemplate.addTemplate BigShermanWreck
rem -------------------------------------
ObjectTemplate.lodSelector BigShermanLodSelector


rem *** ShermanComplex ***
ObjectTemplate.create Bundle BigShermanComplex
ObjectTemplate.geometry BigSherman_Hull_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanEntry
ObjectTemplate.addTemplate BigShermanEngine
ObjectTemplate.addTemplate BigShermanTower
ObjectTemplate.setPosition 0/-70.251/0
ObjectTemplate.addTemplate BigSherman_Hull_Hatch
ObjectTemplate.setPosition -71.9195/83.4231/107.1329
rem -------------------------------------


rem *** ShermanEntry ***
ObjectTemplate.create EntryPoint BigShermanEntry
ObjectTemplate.setEntryRadius 100


rem *** ShermanTrackL ***
ObjectTemplate.create AnimatedBundle BigShermanTrackL
ObjectTemplate.loadSoundScript Sounds/ShermanTrackL.ssc
ObjectTemplate.geometry BigSherman_TrackL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/BigShermanTrackL.ske
ObjectTemplate.setAnimatedTextureSpeed -0.006/0
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanWheelL1
ObjectTemplate.setPosition -83.3352/57.0789/-228.228
ObjectTemplate.addTemplate BigShermanWheelL2
ObjectTemplate.setPosition -78.9445/63.2259/213.3875
ObjectTemplate.addTemplate BigShermanWheelL3Dummy
ObjectTemplate.setPosition -87.7259/10.5376/180.0183
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL3
ObjectTemplate.setPosition -87.7259/10.5376/105.3766
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL3DummyMiddle
ObjectTemplate.setPosition -87.7259/10.5376/-39.4283
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL3Dummy
ObjectTemplate.setPosition -87.7259/10.5376/26.3442
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL3
ObjectTemplate.setPosition -87.7259/10.5376/-109.6794
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL3Dummy
ObjectTemplate.setPosition -87.7259/10.5376/-179.9304
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelL4
ObjectTemplate.setPosition -96.5073/70.251/100.9859
ObjectTemplate.addTemplate BigShermanWheelL4
ObjectTemplate.setPosition -96.5073/70.251/-43.819
ObjectTemplate.addTemplate BigShermanWheelL4
ObjectTemplate.setPosition -96.5073/70.251/-184.3211
rem -------------------------------------


rem *** ShermanWheelL1 ***
ObjectTemplate.create SimpleObject BigShermanWheelL1
ObjectTemplate.geometry BigSherman_whe1L_M1


rem *** ShermanWheelL2 ***
ObjectTemplate.create SimpleObject BigShermanWheelL2
ObjectTemplate.geometry BigSherman_whe2L_M1


rem *** ShermanWheelL4 ***
ObjectTemplate.create SimpleObject BigShermanWheelL4
ObjectTemplate.geometry BigSherman_whe4L_M1


rem *** ShermanTrackR ***
ObjectTemplate.create AnimatedBundle BigShermanTrackR
ObjectTemplate.loadSoundScript Sounds/ShermanTrackR.ssc
ObjectTemplate.geometry BigSherman_TrackR_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/BigShermanTrackR.ske
ObjectTemplate.setAnimatedTextureSpeed -0.006/0
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanWheelR1
ObjectTemplate.setPosition 83.4231/57.079/-228.228
ObjectTemplate.addTemplate BigShermanWheelR2
ObjectTemplate.setPosition 79.0324/63.2259/213.3875
ObjectTemplate.addTemplate BigShermanWheelR3Dummy
ObjectTemplate.setPosition 87.8138/10.5377/180.0182
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR3
ObjectTemplate.setPosition 87.8138/10.5377/105.3765
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR3DummyMiddle
ObjectTemplate.setPosition 87.8138/10.5377/-39.4284
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR3Dummy
ObjectTemplate.setPosition 87.8138/10.5377/26.3441
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR3
ObjectTemplate.setPosition 87.8138/10.5377/-109.6794
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR3Dummy
ObjectTemplate.setPosition 87.8138/10.5377/-179.9304
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate BigShermanWheelR4
ObjectTemplate.setPosition 96.5952/70.251/100.9858
ObjectTemplate.addTemplate BigShermanWheelR4
ObjectTemplate.setPosition 96.5952/70.251/-43.8191
ObjectTemplate.addTemplate BigShermanWheelR4
ObjectTemplate.setPosition 96.5952/70.251/-184.3211
rem -------------------------------------


rem *** ShermanWheelR1 ***
ObjectTemplate.create SimpleObject BigShermanWheelR1
ObjectTemplate.geometry BigSherman_whe1R_M1


rem *** ShermanWheelR2 ***
ObjectTemplate.create SimpleObject BigShermanWheelR2
ObjectTemplate.geometry BigSherman_whe2R_M1


rem *** ShermanWheelR4 ***
ObjectTemplate.create SimpleObject BigShermanWheelR4
ObjectTemplate.geometry BigSherman_whe4R_M1


rem *** ShermanTower ***
ObjectTemplate.create RotationalBundle BigShermanTower
ObjectTemplate.setNetworkableInfo ShermanTurretInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/ShermanTower.ssc
ObjectTemplate.geometry BigSherman_Tow_M1
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanGunBase
ObjectTemplate.setPosition 0/171.2368/67.6167
ObjectTemplate.addTemplate BigshermanBrowning_PCO1
ObjectTemplate.setPosition 45.6631/218.6563/10.9767
rem -------------------------------------
ObjectTemplate.setMaxSpeed 35/25/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX


rem *** ShermanGunBase ***
ObjectTemplate.create RotationalBundle BigShermanGunBase
ObjectTemplate.setNetworkableInfo BigShermanGunInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/ShermanGunBase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodBigShermanCockpit
ObjectTemplate.addTemplate BigShermanGunBarrel
ObjectTemplate.addTemplate BigShermanCamera
ObjectTemplate.setPosition -0.304/0/0.06
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/5/0
ObjectTemplate.setMaxSpeed 20/20/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** lodShermanCockpit ***
ObjectTemplate.create LodObject lodBigShermanCockpit
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanCockpitExternal
ObjectTemplate.addTemplate BigShermanCockpitInternal
ObjectTemplate.setPosition 0.234/-0.019/0.14
rem -------------------------------------
ObjectTemplate.lodSelector BigshermancockpitSelector


rem *** ShermanCockpitExternal ***
ObjectTemplate.create SimpleObject BigShermanCockpitExternal
ObjectTemplate.geometry BigSherman_Canon2_M1
ObjectTemplate.hasCollisionPhysics 1

rem *** ShermanCockpitInternal ***
ObjectTemplate.create SimpleObject BigShermanCockpitInternal
ObjectTemplate.geometry 1P_Sherman_Gunner_M1


rem *** shermancockpitSelector ***
LodSelectorTemplate.create DistCompareSelector BigshermancockpitSelector
LodSelectorTemplate.addLodDistance 1
LodSelectorTemplate.addLodComparison 0.5


rem *** ShermanCamera ***
ObjectTemplate.create Camera BigShermanCamera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** shermanBrowning_PCO1 ***
ObjectTemplate.create PlayerControlObject BigshermanBrowning_PCO1
ObjectTemplate.NameTagOffset 0/-0.4/0
ObjectTemplate.setNetworkableInfo BigShermanBodyInfo
ObjectTemplate.aiTemplate BigShermanTopMG
rem -------------------------------------
ObjectTemplate.addTemplate BigShermanBrowning_Holder
ObjectTemplate.setPosition -1.5785/-0.7025/-30.9983
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.8/-0.5/0 0/0/0
ObjectTemplate.GUIIndex 47
ObjectTemplate.setVehicleIcon "Vehicle/Icon_sherman.tga"
ObjectTemplate.setVehicleIconPos 32/61
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTLightTank
ObjectTemplate.setToolTipType  TTLightTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** shermanBrowning_Holder ***
ObjectTemplate.create RotationalBundle BigshermanBrowning_Holder
ObjectTemplate.setNetworkableInfo BigShermanTurretInfo
ObjectTemplate.loadSoundScript Sounds/shermanTurret.ssc
ObjectTemplate.geometry Bigsherman_Mgun_con_m1
rem -------------------------------------
ObjectTemplate.addTemplate Bigsherman_Browning_console
ObjectTemplate.setPosition 0/10.0107/-34.0717
ObjectTemplate.addTemplate BigShermanBrowningSeat
ObjectTemplate.setRotation -179.999/0/0
rem -------------------------------------
ObjectTemplate.setMaxSpeed 90/0/0
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setAutomaticYawStabilization 1


rem *** sherman_Browning_console ***
ObjectTemplate.create RotationalBundle Bigsherman_Browning_console
ObjectTemplate.setNetworkableInfo BigShermanGunInfo
ObjectTemplate.geometry BigSherman_MGun_mount_M1
rem -------------------------------------
ObjectTemplate.addTemplate Bigbrowning
ObjectTemplate.setPosition 0/0/-30.647
ObjectTemplate.setRotation -179.999/0/0
ObjectTemplate.addTemplate BigShermanCamera2
ObjectTemplate.setPosition 0/0.3/0.5
ObjectTemplate.setRotation -179.999/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-10/0
ObjectTemplate.setMaxRotation 0/45/0
ObjectTemplate.setMaxSpeed 0/90/0
ObjectTemplate.setAcceleration 0/-5000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.setAutomaticPitchStabilization 1


rem *** ShermanCamera2 ***
ObjectTemplate.create Camera BigShermanCamera2
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** ShermanBrowningSeat ***
ObjectTemplate.create SeatObject BigShermanBrowningSeat
ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside


rem *** Sherman_Hull_Hatch ***
ObjectTemplate.create RotationalBundle BigSherman_Hull_Hatch
ObjectTemplate.geometry BigSherman_Hull_Hatch_M1
ObjectTemplate.setMaxSpeed 60/60/60


rem *** ShermanSimple ***
ObjectTemplate.create SimpleObject BigShermanSimple
ObjectTemplate.geometry BigSherman_Hull_M1


rem *** ShermanWreck ***
ObjectTemplate.create SimpleObject BigShermanWreck
ObjectTemplate.geometry Wreck_Sherman_m1


rem *** ShermanLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 BigShermanLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 2500



Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

Re: I can't enter my vehicle

Post by Shrooms »

I just found out part of the problem now but it's impractical to pilot at the shape it's in. You can see how it floats and it also shakes..

Image
Django
Posts: 29
Joined: Mon Dec 10, 2012 2:58 pm

Re: I can't enter my vehicle

Post by Django »

I believe you just scaled the mainmesh up in 3DSMAX. And you moved the origin of the mesh this way. All invisible parts of the vehicle ( the invisible wheels, the springs, the player positions...) are usually bound to the origin. So the origin should be still at 0/0/0.
If you open your vehicle via the vehicle Importer of the MDT you will get the idea.
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: I can't enter my vehicle

Post by Vilespring »

you scaled the position of all the parts, didn't you?
some positions do not get scaled
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

Re: I can't enter my vehicle

Post by Shrooms »

I did scale all of the parts and I've accommodated the positions for each object. Here I've added a box to the geometry of the pco and it has balanced the tank.

Image
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: I can't enter my vehicle

Post by BotHunter »

How did adding a box help?
Walk quietly and carry a sniper rifle
Post Reply