Making a CSM

Ask questions, discuss ideas, get answers
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

Senshi wrote:(though you'd not get a template not found error message, as the plane spawners are inside the Enterprise objects.con) but more fatally (CTD-fatal)
I think im making progress , I know longer get error messages on the server but now I simply get CTD's :D :lol: . So what im understanding is that I need to go into the AC-130's object.con and check the pco's and what ever is listed for the pco's make sure there spawned correct?
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

Well I still cant seem to solve the CTD's, Ive imported the weapons that the object.con file asks for and remmed out the soldier/humvee spawners that I dont want included in the AC-130. Can someone take a look at the object.con list to see if there is something important that I will need to make sure is included in the imports of other folders,thanks

Code: Select all

rem *** DCX_AC-130 ***
ObjectTemplate.create PlayerControlObject DCX_AC-130
ObjectTemplate.NameTagOffset 0/-0.415/4.578
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.drag 2.2
ObjectTemplate.mass 10000
ObjectTemplate.inertiaModifier 1.2/1.2/1.2
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.explosionRadius 12
ObjectTemplate.explosionDamage 5
ObjectTemplate.hasArmor 1
ObjectTemplate.angleMod 1
ObjectTemplate.speedMod 2
rem ObjectTemplate.hitpoints 2000
rem ObjectTemplate.maxhitpoints 2000
ObjectTemplate.hitpoints 1600
ObjectTemplate.maxhitpoints 1600
ObjectTemplate.material 64
rem ObjectTemplate.material 60
ObjectTemplate.criticalDamage 500
ObjectTemplate.hpLostWhileCriticalDamage 4
ObjectTemplate.explosionForceMod 5
ObjectTemplate.hpLostWhileUpSideDown 10
ObjectTemplate.hpLostWhileDamageFromWater 10
ObjectTemplate.addArmorEffect 1530 em_B17Damage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 1530 em_PlaneDamage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 1360 em_B17Damage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 1360 em_PlaneDamage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 1360 em_B17Damage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 1360 em_PlaneDamage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 820 em_B17Damage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 820 em_PlaneDamage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 520 em_B17Damage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 520 em_PlaneDamage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 520 em_B17Damage -9.71/1.28/3.2
ObjectTemplate.addArmorEffect 520 em_PlaneDamage -9.71/1.28/3.2
ObjectTemplate.addArmorEffect 290 em_B17Damage 4.96/1.28/3.2
ObjectTemplate.addArmorEffect 290 em_PlaneDamage 4.96/1.28/3.2
ObjectTemplate.addArmorEffect 290 em_B17Damage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 90 em_PlaneDamage 9.71/1.2/3.2
ObjectTemplate.addArmorEffect 90 em_B17Damage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 90 em_PlaneDamage -4.96/1.28/3.2
ObjectTemplate.addArmorEffect 90 em_B17Damage -9.71/1.28/3.2
ObjectTemplate.addArmorEffect 90 em_PlaneDamage -9.71/1.28/3.2
ObjectTemplate.addArmorEffect 60 e_B17Fire 0/0.75/1.2
ObjectTemplate.addArmorEffect 0 e_StukaFire -1/1/-4
ObjectTemplate.addArmorEffect 0 e_StukaFire 1/1/-4
ObjectTemplate.addArmorEffect 0 e_ExplGas_air 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal_Plane 0/0/0
ObjectTemplate.addArmorEffect 0 e_ScrapC-130 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate DCX_AC-130
rem ObjectTemplate.centerOfMassOffset 0/0/-1
rem -------------------------------------
ObjectTemplate.addTemplate lodDCX_AC-130
rem -------------------------------------
rem --  Radar System Active --
ObjectTemplate.setPcoId 0
rem ObjectTemplate.addPcoPosId 1
rem ObjectTemplate.addPcoPosId 2
ObjectTemplate.sonarPos 1
ObjectTemplate.setSoldierExitLocation 0/-0.625/-3.75 0/0/0
ObjectTemplate.GUIIndex 28
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 106/79
ObjectTemplate.setNumberOfWeaponIcons 1
rem ObjectTemplate.setPrimaryAmmoIcon "ammo/icon_paraspawn.dds"
rem ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
rem ObjectTemplate.setSecondaryAmmoIcon "Ammo/Icon_flare.dds"
rem ObjectTemplate.setSecondaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setCrossHairType CHTIcon
ObjectTemplate.setVehicleCategory VCAir
ObjectTemplate.setVehicleType  VTBomber
ObjectTemplate.setToolTipType  TTBomber
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_plane5_16x16.tga"

rem *** lodDCX_AC-130 ***
ObjectTemplate.create LodObject lodDCX_AC-130
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130Complex
ObjectTemplate.addTemplate DCX_AC-130Simple
ObjectTemplate.addTemplate DCX_AC-130Wreck
rem -------------------------------------
ObjectTemplate.lodSelector DCX_AC-130LodSelector

rem *** DCX_AC-130Complex ***
ObjectTemplate.create Bundle DCX_AC-130Complex
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate lodDCX_AC-130Cockpit
ObjectTemplate.addTemplate DCX_AC-130_GLASS
ObjectTemplate.addTemplate DCX_AC-130_door_piston_upper
ObjectTemplate.setPosition 0/2.521/-10.464
ObjectTemplate.addTemplate DCX_AC-130_nosegear_frontflap
ObjectTemplate.addTemplate DCX_AC-130PilotSeat
ObjectTemplate.setPosition -.3/1.8/9.375
ObjectTemplate.addTemplate DCX_AC-130_Cam_View
ObjectTemplate.setPosition -0.4/2.15/9.25
ObjectTemplate.setRotation 0/0/180
ObjectTemplate.addTemplate DCX_AC-130_Entry
ObjectTemplate.setPosition 0/-1.25/5
ObjectTemplate.addTemplate DCX_AC-130_Entry
ObjectTemplate.setPosition -5/-1.25/10
ObjectTemplate.addTemplate DCX_AC-130_Entry
ObjectTemplate.setPosition -5/-1.25/10
ObjectTemplate.addTemplate DCX_AC-130_Body_Wing
ObjectTemplate.setPosition 0/0/11
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate DCX_AC-130AirbreakR
ObjectTemplate.setPosition 7.5/0.5/-1.75
ObjectTemplate.addTemplate DCX_AC-130AirbreakL
ObjectTemplate.setPosition -7.5/0.5/-1.75
ObjectTemplate.addTemplate DCX_AC-130_Rudder_Front1
ObjectTemplate.setPosition -20.405/2.646/-2.235
ObjectTemplate.setRotation 6/0/0
ObjectTemplate.addTemplate DCX_AC-130_Rudder_Front2
ObjectTemplate.setPosition 20.405/2.646/-2.235
ObjectTemplate.setRotation -6/0/0
ObjectTemplate.addTemplate DCX_AC-130_Rudder_Back3
ObjectTemplate.setPosition 0/2.291/-19.113
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Rudder_Back4
ObjectTemplate.setPosition 0/2.291/-19.113
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Rudder_Back5
ObjectTemplate.setPosition 0/6.914/-18.404
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate DCX_AC-130_Engine1
ObjectTemplate.setPosition -11.575/1.862/3.45
ObjectTemplate.addTemplate DCX_AC-130_Engine2
ObjectTemplate.setPosition -5.56/1.862/3.45
ObjectTemplate.addTemplate DCX_AC-130_Engine3
ObjectTemplate.setPosition 5.56/1.862/3.45
ObjectTemplate.addTemplate DCX_AC-130_Engine4
ObjectTemplate.setPosition 11.575/1.862/3.45

beginrem
ObjectTemplate.addTemplate JATOBooster
ObjectTemplate.addTemplate DCX_AC-130_JatoLeft
ObjectTemplate.setPosition -12.137/1.6/3.25
ObjectTemplate.addTemplate DCX_AC-130_JatoRight
ObjectTemplate.setPosition 12.137/1.6/3.25
endrem
ObjectTemplate.addTemplate DCX_AC-130_Interior
ObjectTemplate.setPosition 0/0/0
rem ObjectTemplate.addTemplate DCX_AC-130_SoldierSpawn
rem ObjectTemplate.setPosition 0/-1.0/5
ObjectTemplate.setRotation -175/0/0
rem ObjectTemplate.addTemplate DCX_USAltParaspawn_Weapon
rem ObjectTemplate.setPosition 0/1/-15
beginrem
ObjectTemplate.addTemplate DCX_Chaff
ObjectTemplate.setPosition 0/0/-25
ObjectTemplate.setRotation -179/0/0
ObjectTemplate.addTemplate DCX_AirplaneFlares
ObjectTemplate.setPosition 0/0/-25
ObjectTemplate.setRotation -179/0/0
endrem
rem -------------------------------------
Rem ** Gun Positions **
ObjectTemplate.addTemplate DCX_AC-130_Gunner4
ObjectTemplate.setPosition -2/-1.125/-6.937
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner
ObjectTemplate.setPosition -1.875/-1/6.125
ObjectTemplate.setRotation -90/20/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner2
ObjectTemplate.setPosition -1.875/-1/4.625
ObjectTemplate.setRotation -90/20/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner3
ObjectTemplate.setPosition -2/-1.437/-4.875
ObjectTemplate.setRotation -90/15/0
ObjectTemplate.addTemplate DCX_AC-130_LoadMaster
ObjectTemplate.setPosition 1.1/-1.125/-6.562
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
rem -- Add Sonar --
ObjectTemplate.addTemplate DestroyerSonar
rem -------------------------------------
rem -- Add MOAB --
rem ObjectTemplate.addTemplate MOABBombRack
rem --- Add a Humvee ---
rem ObjectTemplate.addTemplate LCACHumveeSpawner
rem ObjectTemplate.setPosition 0/-1.5/0.0
rem ObjectTemplate.setRotation 180/0/0

rem *** DCX_AC-130_Cam_View ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Cam_View
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 86/0/0
ObjectTemplate.setMaxSpeed 100/500/0
ObjectTemplate.setAcceleration 200/2000/0
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setInputToYaw c_PIFire
ObjectTemplate.setInputToPitch c_PIFire
ObjectTemplate.setInputToRoll c_PIFire
ObjectTemplate.AddTemplate DCX_AC-130_Camera
ObjectTemplate.setRotation 0/0/180
rem ObjectTemplate.AddTemplate DCX_AltCallArtillary

rem *** lodDCX_AC-130Cockpit ***
ObjectTemplate.create LodObject lodDCX_AC-130Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130CockpitExternal
ObjectTemplate.addTemplate DCX_AC-130CockpitInternal
ObjectTemplate.setPosition 0/1/9.4
rem -------------------------------------
ObjectTemplate.lodSelector DCX_AC-130cockpitSelector

rem *** DCX_AC-130CockpitExternal ***
ObjectTemplate.create SimpleObject DCX_AC-130CockpitExternal
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry DCX_AC-130_fus_M1

rem *** DCX_AC-130CockpitInternal ***
ObjectTemplate.create SimpleObject DCX_AC-130CockpitInternal
ObjectTemplate.geometry DCX_AC-130_Cockpit

rem glass
ObjectTemplate.create SimpleObject DCX_AC-130_GLASS
ObjectTemplate.geometry DCX_AC-130_GLASS

rem _door piston upper
ObjectTemplate.create SimpleObject DCX_AC-130_door_piston_upper
ObjectTemplate.geometry DCX_AC-130_door_piston_upper

rem noseflap front
ObjectTemplate.create SimpleObject DCX_AC-130_nosegear_frontflap
ObjectTemplate.geometry DCX_AC-130_nosegear_frontflap

rem *** DCX_AC-130cockpitSelector ***
LodSelectorTemplate.create DistCompareSelector DCX_AC-130cockpitSelector
LodSelectorTemplate.addLodDistance 20
LodSelectorTemplate.addLodComparison 0.5

rem *** DCX_AC-130_Camera ***
ObjectTemplate.create Camera DCX_AC-130_Camera
ObjectTemplate.setMinRotation -85/-40/0
ObjectTemplate.setMaxRotation 85/30/0
ObjectTemplate.setMaxSpeed 90/-90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.toggleMouseLook 1
ObjectTemplate.OutsideHudOffset 0/0/3.125

rem *** DCX_AC-130_Entry ***
ObjectTemplate.create EntryPoint DCX_AC-130_Entry
ObjectTemplate.setEntryRadius 4

rem *** DCX_AC-130_Upper_Ramp ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Upper_Ramp
ObjectTemplate.setNetworkableInfo DCX_AC-130_Ramp_Info
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/AC-130_Ramp.ssc
ObjectTemplate.geometry DCX_AC-130_upper_ramp
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/30/0
ObjectTemplate.setMaxSpeed 0/40/0
ObjectTemplate.setAcceleration 0/200/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setInputToPitch c_PIPitch

rem *** DCX_AC-130_Lower_Ramp ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Lower_Ramp
ObjectTemplate.setNetworkableInfo DCX_AC-130_Ramp_Info
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/AC-130_Ramp.ssc
ObjectTemplate.geometry DCX_AC-130_lower_ramp
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/30/0
ObjectTemplate.setMaxSpeed 0/40/0
ObjectTemplate.setAcceleration 0/200/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setInputToPitch c_PIPitch
rem--------
ObjectTemplate.addTemplate DCX_AC-130_Lower_Ramp_piston
ObjectTemplate.setPosition 0/-0.35/-3.723


rem *** DCX_AC-130_Lower_Ramp piston***
ObjectTemplate.create RotationalBundle DCX_AC-130_Lower_Ramp_piston
ObjectTemplate.setNetworkableInfo DCX_AC-130_Ramp_Info
ObjectTemplate.setAttachToListener 1
rem ObjectTemplate.loadSoundScript Sounds/AC-130_Ramp.ssc
ObjectTemplate.geometry DCX_AC-130_door_piston_lower
ObjectTemplate.setMinRotation 0/-30/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 0/40/0
ObjectTemplate.setAcceleration 0/-200/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setInputToPitch c_PIPitch



Rem ** DCX_AC-130_Howitzer_COckpit
ObjectTemplate.create LodObject DCX_AC-130_Howitzer_Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Sight_Internal
ObjectTemplate.addTemplate DCX_AC-130_Sight_External
rem -------------------------------------
ObjectTemplate.lodSelector DCX_AC-130_Sight_Selector

rem *** DCX_AC-130_Sight_External***
ObjectTemplate.create SimpleObject DCX_AC-130_Sight_External
LodSelectorTemplate.create DistanceSelector DCX_AC-130_Sight_Selector
LodSelectorTemplate.addLodDistance 1

rem *** DCX_AC-130_Sight_Internal***
ObjectTemplate.create SimpleObject DCX_AC-130_Sight_Internal
ObjectTemplate.geometry DCX_AC-130_Sight

rem *** lodDCX_AC-130Propeller ***
ObjectTemplate.create LodObject lodDCX_AC-130Propeller
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130PropellerStatic
ObjectTemplate.addTemplate DCX_AC-130PropellerBlurred
rem -------------------------------------
ObjectTemplate.lodSelector DCX_AC-130propSelector

rem *** DCX_AC-130PropellerStatic ***
ObjectTemplate.create SimpleObject DCX_AC-130PropellerStatic
ObjectTemplate.geometry DCX_AC-130_prp1

rem *** DCX_AC-130PropellerBlurred ***
ObjectTemplate.create SimpleObject DCX_AC-130PropellerBlurred
ObjectTemplate.geometry DCX_AC-130_prp2
LodSelectorTemplate.create CompareSelector DCX_AC-130propSelector
LodSelectorTemplate.addLodComparison 0.07

rem DCX_AC-130 Landing Gears *****************************

rem *** DCX_AC-130_Gear_Front ***
ObjectTemplate.create LandingGear DCX_AC-130_Gear_Front
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_nosegear
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
rem ObjectTemplate.addTemplate DCX_AC-130_Wheel_Front_Spring
ObjectTemplate.addTemplate DCX_AC-130_Steering
ObjectTemplate.setPosition 0/-1.561/0.02
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-90/0
ObjectTemplate.setMaxSpeed 0/50/0
ObjectTemplate.setAcceleration 0/-90/0
ObjectTemplate.setGearDownHeight 45
ObjectTemplate.setGearUpHeight 15
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7


rem *** DCX_AC-130_Steer ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Steering
rem ObjectTemplate.setNetworkableInfo DCX_C-130_Ramp_Info
rem ObjectTemplate.setAttachToListener 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 0
ObjectTemplate.hasResponsePhysics 1
rem ------------------------------------
rem ObjectTemplate.addtemplate DCX_C-130_Gear_Front
ObjectTemplate.addtemplate DCX_AC-130_Wheel_Front_Spring
rem ------------------------------------
ObjectTemplate.setMinRotation -20/0/0
ObjectTemplate.setMaxRotation 20/0/0
ObjectTemplate.setMaxSpeed 50/0/0
ObjectTemplate.setAcceleration 50/0/0
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setInputToYaw c_PIYaw


rem *** DCX_AC-130_Gear_Back_L ***
ObjectTemplate.create LandingGear DCX_AC-130_Gear_Back_L
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_GEAR_STRUT_L
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Wheel_Back_LR_Spring
ObjectTemplate.setPosition -2.49/-0.542/-9.26
ObjectTemplate.addTemplate DCX_AC-130_Wheel_Back_LF_Spring
ObjectTemplate.setPosition -2.49/-0.542/-10.824
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/5/0
ObjectTemplate.setMaxSpeed 0/10/0
ObjectTemplate.setAcceleration 0/15/0
ObjectTemplate.setGearDownHeight 45
ObjectTemplate.setGearUpHeight 15
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7

rem *** DCX_AC-130_Gear_Back_R ***
ObjectTemplate.create LandingGear DCX_AC-130_Gear_Back_R
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_GEAR_STRUT_R
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Wheel_Back_RF_Spring
ObjectTemplate.setPosition 2.49/-0.542/-9.26
ObjectTemplate.addTemplate DCX_AC-130_Wheel_Back_RR_Spring
ObjectTemplate.setPosition 2.49/-0.542/-10.824
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/6/0
ObjectTemplate.setMaxSpeed 0/10/0
ObjectTemplate.setAcceleration 0/15/0
ObjectTemplate.setGearDownHeight 45
ObjectTemplate.setGearUpHeight 15
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7

rem nose flap
ObjectTemplate.create LandingGear DCX_AC-130_nose_Gear_back_FLAP
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_nosegear_backflap
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-10/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 0/10/0
ObjectTemplate.setAcceleration 0/-15/0
ObjectTemplate.setGearDownHeight 45
ObjectTemplate.setGearUpHeight 15
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7


rem *** DCX_AC-130_Hatch_Left ***
ObjectTemplate.create LandingGear DCX_AC-130_Hatch_Left
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_BayL
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/40
ObjectTemplate.setMaxSpeed 0/0/50
ObjectTemplate.setAcceleration 0/0/50
ObjectTemplate.setGearDownHeight 50
ObjectTemplate.setGearUpHeight 20
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7

rem *** DCX_AC-130_Hatch_Right ***
ObjectTemplate.create LandingGear DCX_AC-130_Hatch_Right
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_BayR
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-40
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 0/0/50
ObjectTemplate.setAcceleration 0/0/-50
ObjectTemplate.setGearDownHeight 50
ObjectTemplate.setGearUpHeight 20
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7

rem *** DCX_AC-130_Hatch_Left ***
ObjectTemplate.create LandingGear DCX_AC-130_Hatch_Left_inner
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_BayL2
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-90
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 0/0/50
ObjectTemplate.setAcceleration 0/0/-50
ObjectTemplate.setGearDownHeight 50
ObjectTemplate.setGearUpHeight 20
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7

rem *** DCX_AC-130_Hatch_Right ***
ObjectTemplate.create LandingGear DCX_AC-130_Hatch_Right_inner
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry DCX_AC-130_BayR2
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/90
ObjectTemplate.setMaxSpeed 0/0/50
ObjectTemplate.setAcceleration 0/0/50
ObjectTemplate.setGearDownHeight 50
ObjectTemplate.setGearUpHeight 20
ObjectTemplate.setGearDownEngineInput 0.4
ObjectTemplate.setGearUpEngineInput 0.7


rem Test rear invisible helpwheel
rem *** DCX_AC-130_Wheel_Rear ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Wheel_Rear
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Wheel_Rear_Spring
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -25/0/0
ObjectTemplate.setMaxRotation 25/0/0
ObjectTemplate.setMaxSpeed 150/0/0
ObjectTemplate.setAcceleration 150/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1

rem ** DCX_AC-130 Gunner Positions **************************************************
rem *****************************************************************************

rem *** DCX_AC-130_Gunner ***
ObjectTemplate.create PlayerControlObject DCX_AC-130_Gunner
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.aiTemplate DCX_AC-130_Gunner
ObjectTemplate.setPcoId 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Entry
ObjectTemplate.setPosition .6.25/0/0
ObjectTemplate.addTemplate DCX_AC-130_GunnerSeat
ObjectTemplate.setPosition 0/-0.5/-1.1
ObjectTemplate.setRotation 0/-20/0
ObjectTemplate.addTemplate DCX_AC-130_Vulcan_Console
ObjectTemplate.setPosition 0/0/.125
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.5/.625/0 -90/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 97/67
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTTank
ObjectTemplate.setToolTipType  VTTank
ObjectTemplate.hasRestrictedExit 0

rem *** DCX_AC-130_Gunner2 ***
ObjectTemplate.create PlayerControlObject DCX_AC-130_Gunner2
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.aiTemplate DCX_AC-130_Gunner2
ObjectTemplate.setPcoId 2
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Entry
ObjectTemplate.setPosition .625/0/0
ObjectTemplate.addTemplate DCX_AC-130_GunnerSeat
ObjectTemplate.setPosition 0/-0.5/-1.1
ObjectTemplate.setRotation 0/-20/0
ObjectTemplate.addTemplate DCX_AC-130_Vulcan_Console
ObjectTemplate.setPosition 0/0/.125
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.5/.625/0 -90/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 91/63
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTTank
ObjectTemplate.setToolTipType  VTTank
ObjectTemplate.hasRestrictedExit 0

rem *** DCX_AC-130_Gunner3 ***
ObjectTemplate.create PlayerControlObject DCX_AC-130_Gunner3
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.aiTemplate DCX_AC-130_Gunner3
ObjectTemplate.setPcoId 3
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Entry
ObjectTemplate.setPosition .625/0/0
ObjectTemplate.addTemplate DCX_AC-130_GunnerSeat
ObjectTemplate.setPosition 0/-0.1/-1.5
ObjectTemplate.setRotation 0/-15/0
ObjectTemplate.addTemplate DCX_AC-130_40mm_Console
ObjectTemplate.setPosition 0/0/.125
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.5/.625/0 0/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 71/47
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTTank
ObjectTemplate.setToolTipType  VTTank
ObjectTemplate.hasRestrictedExit 0

rem *** DCX_AC-130_Gunner4 ***
ObjectTemplate.create PlayerControlObject DCX_AC-130_Gunner4
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.aiTemplate DCX_AC-130_Gunner4
ObjectTemplate.setPcoId 4
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Entry
ObjectTemplate.setPosition .625/0/0
ObjectTemplate.addTemplate DCX_AC-130_GunnerSeat
ObjectTemplate.setPosition 0/0/-1.5
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Howitzer_Console
ObjectTemplate.setPosition 0/0/.125
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 2.5/.625/0 0/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 65/42
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTTank
ObjectTemplate.setToolTipType  VTTank
ObjectTemplate.hasRestrictedExit 0

rem *** DCX_AC-130_LoadMaster ***
ObjectTemplate.create PlayerControlObject DCX_AC-130_LoadMaster
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.aiTemplate DCX_AC-130_Loader
ObjectTemplate.setPcoId 5
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Entry
ObjectTemplate.setPosition .625/0/0
ObjectTemplate.addTemplate DCX_AC-130_GunnerSeat
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 90/0/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Camera
ObjectTemplate.setPosition 0/0.25/0.5
ObjectTemplate.setRotation -170/0/0
ObjectTemplate.addTemplate DCX_AC-130_Lower_Ramp
ObjectTemplate.setPosition -1.1/-.959/-0.973
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Upper_Ramp
ObjectTemplate.setPosition -1.1/2.92/-9.865
ObjectTemplate.setRotation 0/0/0
rem -- Add MOAB --
ObjectTemplate.addTemplate MOABBombRack
ObjectTemplate.setPosition -1/-1/0

rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -1/-.625/-1 -170/0/0
ObjectTemplate.setVehicleIcon "Vehicle/Icon_AC-130.tga"
ObjectTemplate.setVehicleIconPos 60/51
rem ObjectTemplate.setNumberOfWeaponIcons 0
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_MOAB.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setVehicleCategory VCSea
ObjectTemplate.setVehicleType VTLcvp
ObjectTemplate.setToolTipType TTLcvp
ObjectTemplate.hasRestrictedExit 0

rem *** DCX_AC-130_Vulcan_Console ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Vulcan_Console
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/AC-130Turret.ssc
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Rotation_Vulcan
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -40/0/0
ObjectTemplate.setMaxRotation 12/0/0
ObjectTemplate.setMaxSpeed 80/0/0
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setAutomaticYawStabilization 0

rem *** DCX_AC-130_Rotation_Vulcan ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Rotation_Vulcan
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Vulcan
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Camera
ObjectTemplate.setPosition 0/0.2/0.4
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/25/0
ObjectTemplate.setMaxSpeed 0/80/0
ObjectTemplate.setAcceleration 0/5000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** DCX_AC-130_Howitzer_Console ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Howitzer_Console
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/AC-130Turret.ssc
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Rotation_Howitzer
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -35/0/0
ObjectTemplate.setMaxRotation 5/0/0
ObjectTemplate.setMaxSpeed 80/0/0
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setAutomaticYawStabilization 0

rem *** DCX_AC-130_Rotation_Howitzer ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Rotation_Howitzer
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Howitzer
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Howitzer_Cockpit
ObjectTemplate.setPosition 0/2/.8
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Camera
ObjectTemplate.setPosition 0/2/.5
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-10/0
ObjectTemplate.setMaxRotation 0/25/0
ObjectTemplate.setMaxSpeed 0/80/0
ObjectTemplate.setAcceleration 0/5000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** DCX_AC-130_40mm_Console ***
ObjectTemplate.create RotationalBundle DCX_AC-130_40mm_Console
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/AC-130Turret.ssc
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_Rotation_40mm
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -35/0/0
ObjectTemplate.setMaxRotation 15/0/0
ObjectTemplate.setMaxSpeed 80/0/0
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setAutomaticYawStabilization 0

rem *** DCX_AC-130_Rotation_40mm ***
ObjectTemplate.create RotationalBundle DCX_AC-130_Rotation_40mm
ObjectTemplate.setNetworkableInfo DCX_AC-130BodyInfo
ObjectTemplate.setAttachToListener 1
rem -------------------------------------
ObjectTemplate.addTemplate DCX_AC-130_40mm
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate DCX_AC-130_Gunner_Camera
ObjectTemplate.setPosition 0/0.2/0.7
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/25/0
ObjectTemplate.setMaxSpeed 0/80/0
ObjectTemplate.setAcceleration 0/5000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** DCX_AC-130_Gunner_Camera ***
ObjectTemplate.create Camera DCX_AC-130_Gunner_Camera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMenuSelect3
ObjectTemplate.setInputToPitch c_PIMenuSelect3
ObjectTemplate.setInputToRoll c_PIMenuSelect3

rem *** DCX_AC-130_Gunner_Entry ***
ObjectTemplate.create EntryPoint DCX_AC-130_Gunner_Entry
ObjectTemplate.setEntryRadius 3

rem *** DCX_AC-130PilotSeat ***
ObjectTemplate.create SeatObject DCX_AC-130PilotSeat
ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier

rem *** DCX_AC-130GunnerSeat ***
ObjectTemplate.create SeatObject DCX_AC-130_GunnerSeat
ObjectTemplate.seatFlags c_SeatShowStandingSoldier

rem *** DCX_AC-130Simple ***
ObjectTemplate.create SimpleObject DCX_AC-130Simple
ObjectTemplate.geometry DCX_AC-130_fus_L1

rem *** DCX_AC-130_Interior ***
ObjectTemplate.create SimpleObject DCX_AC-130_Interior
ObjectTemplate.geometry DCX_AC-130_Interior

rem *** DCX_AC-130Wreck ***
ObjectTemplate.create SimpleObject DCX_AC-130Wreck
ObjectTemplate.geometry Wreck_DCX_AC-130_1_m1

rem *** DCX_AC-130LodSelector ***
LodSelectorTemplate.create DistCompareSelector2 DCX_AC-130LodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 300
I have the howizer/vulcan/40mm/moab already imported to the map and in the correct file tree with the necessary run.cons, still get CTD's. Any help or suggestions would be more than appreciated,Thanks.
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Making a CSM

Post by freddy »

if the sounds pathway is wrong it will crash, if you not sure just rem out all sound for now and put it back when all else is working

Code: Select all

ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

Thanks for the response freddy, I have remmed out all the soundscrips in the AC-130's object.con and aswell as the weapons that the plane calls for but continue to CTD. I have uploaded the map if someone wants to mabye double check my work or see what may be crashing the game, thanks

BomberHell.rar (6.0 Mb)
http://uploading.com/files/b38345f2/BomberHell.rar/
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Making a CSM

Post by Apache Thunder »

Is this CTD with a error message or just a Windows Error Report type crash?

I've downloaded the map and shall take a look at it. If I can port BF2/BF2142/BFheroes stuff to BF42, I can handle something like this easy. :P
ImageImageImage
I have cameras in your head!
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

No error messages prior to crash, ive graduated beyond that, all I get is a straight CTD :D lol. I figured if there was anyone that could do this on these forums it would be you with the work I seen you do so I greatly appreciate you taking a look at it for me :)
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Making a CSM

Post by Apache Thunder »

No problem at all....Straight crash huh? You tried running it in windowed mode right?

EDIT:

Ok made some progress. Turns out, for some reason it isn't recognizing the effect type for the engine sound scripts. Normal EXE crashes to desktop with Windows Error Report. (you must have this prompt turned off entirely since it would normally display this). I think perhaps only the debugger says something about this. I ran the debugger in windowed mode and recieved that error. When I clicked Retry/Ignore, I would then get the Windows Error Report type CTD.


I also copied a couple missing geometries that the AC-130 referenced. The L1 mesh and wreck mesh. They used the original DesertCombat meshes and you forgot to copy those. The pilot position is also missing the ammo icon. ;)

Also, the vehicle as it appears ingame is all screwed up. The cockpit lod doesn't seem to work and it is displaying the interior and the exterior and it looks really messed up. I would fix this, but I do not have DCX installed right now. I would have probably just deleted the whole vehicle and such and re copy it for you. But alas, I lack the files to do so. :P

I also corrected a few run.con files you made. There was entries that said this:

Code: Select all

run Sounds
There is no sounds con file and you do not need to run sound scripts from there. They are loaded from each PCO's con files respectively. As for the engine sounds. The engine sound scripts are to blame for your CTD. The engine sound scripts have include commands that include a enginemap SSC file. You did not correct/or include the respective sound scripts that it called for. Therefor, the engine type on the sound script effect was undefined. This is what is causing your CTD.

Your also missing the "US_SMAW_Backpack" kitpart template and this generates a error message.

You will need to copy that for the map to run without a CTD when fullscreen.

Don't forget, since this vehicle uses projectiles from DCX, there's a decent chance they use custom mat IDs defined in DesertCombat or DCX. You will need to define these in the map or the projectiles may not work correctly! You can run the damage system con files just like with the rest of the files, so this shouldn't be that big an issue to fix. You might have already done this or not. I haven't really checked. :P

Once I correct the engine sound scripts, I will recompile the RFA and send it back to you.

EDIT:

I finished uploading the map.

Things that I have fixed:

1. Corrected Sound Scripts for AC-130 Engines.
2. Added missing geometries and textures for AC-130.
3. Added missing kitpart and it's respective geometries/textures.
4. Corrected the alternative texture path in your level. The "../../" is not needed for that command and may cause problems.
5. Generated a Precache.con file for you. ;)
6. Map now loads without a CTD.


Download Link:

BomberHell.rar

The map now loads ingame with no CTD. Though you still got a lot of work to do beyond that. :D
ImageImageImage
I have cameras in your head!
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

Much thanks, I knew there was a good chance that it was the sound scripts as it was mentioned to me in a earlier post but for the life of me I couldnt figure out how to correct it, was it the path?
Apache Thunder wrote:No problem at all....Straight crash huh? You tried running it in windowed mode right?
Sorry, Not familiar with this windowed mode yet but will research it, sounds like it is a way to test for errors?
Apache Thunder wrote:Don't forget, since this vehicle uses projectiles from DCX, there's a decent chance they use custom mat IDs defined in DesertCombat or DCX. You will need to define these in the map or the projectiles may not work correctly! You can run the damage system con files just like with the rest of the files, so this shouldn't be that big an issue to fix. You might have already done this or not. I haven't really checked. :P
I had a very stong feeling that I would have to take care of this eventually, I was taking baby steps with this, first to get the damn thing on the map without a CTD and then start fixing any missing textures ect ect to get it 100%
Apache Thunder wrote:4. Corrected the alternative texture path in your level. The "../../" is not needed for that command and may cause problems.
5. Generated a Precache.con file for you. ;)
I was tinkering with that line of code "../../" tryin to problem solve and at the time I uploaded the rar that was were I was at with it lol, Also thanks for the Precache.con, not to sure why there wasnt one there in the first place lol.
Apache Thunder wrote:6. Map now loads without a CTD.
Thanks a bunch, Im gonna check it out and see how you did things and hopefully will have learned the proper way of doing things lol, Thanks for your massive effort Apache :D
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Making a CSM

Post by Apache Thunder »

Glad I could help. The paths was what was wrong with your sound scripts. I copied the SSC files to the vehicle folder and adjusted the path. :P

I think the other aircraft you have (or was it a land vehicle? can't recall now. :P) had correct paths. So for any new vehicles. look at that for the correct include paths. :D

This is the new path for the engine sound scripts:

Code: Select all

#include EngineMap.ssc
(This command is found in the sound scripts themselves, not in the con files).

And here is the Ju88a has it set up as:

Code: Select all

#include ../../../../../../Objects/Vehicles/Common/Sounds/EngineMap.ssc
So for any new vehicles its a safe bet to use the path the Ju88a uses. ;)
ImageImageImage
I have cameras in your head!
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Making a CSM

Post by tekk »

Apache Thunder wrote:This is the new path for the engine sound scripts:

Code: Select all
#include EngineMap.ssc



(This command is found in the sound scripts themselves, not in the con files).
Nice, I did'nt even know that was a path lol, learned something new and what to watch out for from now on :)

And yes, I have alot of work to do on the AC-130, for some reason the top mesh or texture is backwards and none of the weapons are showing up even thou I have imported the files, Well I got a full pot of coffee and its the weekend so I shall get right on these issues, thanks Apache :D
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
Post Reply