Page 1 of 1

Custom Vehicle Help

Posted: Sat Aug 27, 2011 4:26 am
by hunpeter12
Hey Gametoast! I have a problem with my LAAT which I want to fire the Tie Interceptor's lasers and the Rep. Fightertank's Missiles. I copied the files for the cannons (imp_weap_fly_tieinter_cannon, it's ordnance and explosion). I wanted it to have the model with the opened doors. I edited the odf, so it looks like this:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "flyer"
GeometryName = "uta1_prop_gunship.msh"

[Properties]
FLYERSECTION = "BODY"

ReserveOneForPlayer = "0"

VehicleType = "transport"
MapTexture = "gunship_icon"
HealthTexture = "HUD_rep_gunship_icon"
MapScale = 2.0

GeometryName = "uta1_prop_gunship"
//FirstPerson = "REP\repgunsh;rep_1st_cockpit_gunship"
FirstPersonFOV = "60"
CockpitTension = "12"
ThirdPersonFOV = "55"

PathFollowerClass = "rep"
PathFollowerBranchMaxAngle = "60"
PathFollowerFlyerVsFlyer = "0"

CollisionScale = "2.5"
CollisionThreshold = "5.0"

CollisionInflict = "0.1"

MaxHealth = 2340.0
HealthType = "vehicle"
//HitLocation = "p_crithit 0"


PilotSkillRepairScale = 0.01

Acceleraton = 20.0
MinSpeed = 30.0
MidSpeed = 45.0
MaxSpeed = 60.0
StrafeSpeed = 0.0

PitchRate = 0.8
PitchFilter = 1.75
TurnRate = 1.0
TurnFilter = 5.75

//TurnRate = 1.25 // Max turn //3.25 mouse!
//TurnFilter = 5.75 // Speed of turn //5.75 mouse!


//ThrustPitchAngle = 0.2
//StrafeRollAngle = 0.1
BankAngle = 0.55
BankFilter = 5.5
LevelFilter = 2.0

PCPitchRate = 15.0
PCSpinRate = 15.0
PCTurnRate = 25.0

TakeoffTime = 1.5
TakeoffSpeed = 5.0
LandingTime = 1.5
LandingSpeed = 8.0
TakeoffHeight = 3.0

EyePointOffset = "0.0 0.0 10.0"
TrackCenter = "0.0 10.0 -24.0"
TrackOffset = "0.0 0.0 0.0 "
TiltValue = "4.0"

AimTension = "30.0"
MoveTension = "4.5"

WEAPONSECTION = "1"

WeaponName = "imp_weap_fly_tieinter_cannon"
WeaponAmmo = "0"

AimerNodeName = "front_gun_1"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

NextAimer = "-"

AimerNodeName = "front_gun_2"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

WEAPONSECTION = "2"

WeaponName = "rep_weap_hover_fightertank_missile"
WeaponAmmo = "0"

AimerNodeName = "hp_cannon_1"
AimerYawLimits = "-0.0 0.0"
AimerPitchLimits = "-0.0 0.0"
BarrelLength = "1.0"

NextAimer = "-"

AimerNodeName = "hp_cannon_2"
AimerYawLimits = "-0.0 0.0"
AimerPitchLimits = "-0.0 0.0"
BarrelLength = "1.0"

VehiclePosition = "common.vehiclepositions.pilot"

//********************************
//********** CO PILOT *********
//********************************
FLYERSECTION = "TURRET1"

//FirstPerson = "rep\repsccam;rep_1st_cockpit_securitycam"
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


PitchLimits = "-20 50"
YawLimits = "-89 89"
EyePointOffset = "0.0 10.0 0.0"
TrackCenter = "0.0 7.0 -10.0"
TrackOffset = "0.0 1.0 14.0"
TiltValue = "5.0"

WEAPONSECTION = "1"
WeaponName = "rep_weap_fly_gunship_wing"
WeaponAmmo = "0"

AimerNodeName = "wing_turret_2"
AimerYawLimits = "-160.0 20.0"//"-160.0 -20.0"
AimerPitchLimits = "-80.0 80.0"
BarrelLength = "1.0"

//WEAPONSECTION = "2"
NextAimer = "-"

WeaponName = "rep_weap_fly_gunship_wing"
WeaponAmmo = "0"

AimerNodeName = "wing_turret_1"
AimerYawLimits = "-20.0 160.0"//"20.0 160.0"
AimerPitchLimits = "-80.0 80.0"
BarrelLength = "1.0"

VehiclePosition = "common.vehiclepositions.copilot"
//********************************
//******** R BALL TURRET *******
//********************************

FLYERSECTION = "TURRET2"

PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


//FirstPerson = "REP\repguntr;rep_1st_cockpit_gunshipgnr"
YawLimits = "-115.0 0.0"
PitchLimits = "-30.0 70.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"


EyePointOffset = "0.0 0.3 0.25"
TrackOffset = "0.0 0.0 0.0"
TrackCenter = "0.0 1.2 -1.0"
ThirdPersonFOV = "55"
TiltValue = "0.0"
TurretNodeName = "ball_turret_2"
FirePointName = "hp_turret_right"


WeaponName = "rep_weap_fly_gunship_ball"
WeaponAmmo = "0"

BarrelLength = "0.0"

PilotPosition = "hp_gunner2"
PilotAnimation = "drive"
IsPilotExposed = "0"

TurretYawSound = "turret_whir_yaw_lp"
TurretYawSoundPitch = "0.7"
TurretPitchSound = "turret_whir_pitch_lp"
TurretPitchSoundPitch = "0.7"
TurretAmbientSound = ""
TurretActivateSound = "vehicle_equip"
TurretDeactivateSound = ""
TurretStartSound = ""
TurretStopSound = ""

VehiclePosition = "common.vehiclepositions.rightturret"

//********************************
//******** L BALL TURRET *******
//********************************
FLYERSECTION = "TURRET3"

PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


//FirstPerson = "REP\repguntr;rep_1st_cockpit_gunshipgnr"
YawLimits = "0.0 115.0"
PitchLimits = "-30.0 70.0"

//YawLimits = "0.0 170.0"
//PitchLimits = "10.0 70.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

//PitchTurnFactor = "1.0"
//YawTurnFactor = "1.0"

EyePointOffset = "0.0 0.3 0.25"
TrackOffset = "0.0 0.0 0.0"
TrackCenter = "0.0 1.2 -1.0"
ThirdPersonFOV = "55"
TiltValue = "0.0"
TurretNodeName = "ball_turret_1"
FireNodeName = "hp_turret_left"

WeaponName = "rep_weap_fly_gunship_ball"
WeaponAmmo = "0"

BarrelLength = "0.0"

PilotPosition = "hp_gunner1"
PilotAnimation = "drive"
IsPilotExposed = "0"

TurretYawSound = "turret_whir_yaw_lp"
TurretYawSoundPitch = "0.7"
TurretPitchSound = "turret_whir_pitch_lp"
TurretPitchSoundPitch = "0.7"
TurretAmbientSound = ""
TurretActivateSound = "vehicle_equip"
TurretDeactivateSound = ""
TurretStartSound = ""
TurretStopSound = ""

VehiclePosition = "common.vehiclepositions.leftturret"
//*****************************

////////////////////////////////

//FLYERSECTION = "TURRET3"

////////////////////////////////



//YawLimits = "-40 40"
//PitchLimits = "-10.0 40.0"
//YawLimits = "-140.0 -45.0"
//PitchLimits = "-15.0 35.0"
//PitchTurnFactor = "1.0"
//YawTurnFactor = "1.0"

//EyePointOffset = "0.0 -1.0 -8.0"
//TrackOffset = "0.0 0.5 1.5"

//EyePointOffset = "0.0 0.2 2.3" by Trey 6/11/04
//TrackOffset = "0.0 0.0 0.0"

//EyePointOffset = "0.0 10.0 -3.0"
//TrackCenter = "1.5 -0.5 -1.0"
//TrackOffset = "0.0 0.0 -1.0"
//ThirdPersonFOV = "55"

//WeaponName = "rep_weap_fly_gunship_wing"
//WeaponAmmo = "0"

//AimerNodeName = "wing_turret_2"
//AimerYawLimits = "-170.0 -30.0"
//AimerPitchLimits = "-40.0 50.0"

//BarrelLength = "1.0"

//PilotPosition = "hp_passenger2"
//PilotAnimation = "standing"

//VehiclePosition = "common.vehiclepositions.rightturret"

////////////////////////////////
//FLYERSECTION = "TURRET4"
////////////////////////////////

//YawLimits = "60 140"
//PitchLimits = "10.0 40.0"

//PitchTurnFactor = "1.0"
//YawTurnFactor = "1.0"

//EyePointOffset = "0.0 0.2 2.3"
//TrackOffset = "0.0 0.0 0.0"

//WeaponName = "rep_weap_fly_gunship_wing"
//WeaponAmmo = "0"

//AimerNodeName = "wing_turret_1"
//AimerYawLimits = "60.0 140.0"
//AimerPitchLimits = "-40.0 -10.0"

//BarrelLength = "1.0"

//PilotPosition = "hp_passenger3"
//PilotAnimation = "standing"

//VehiclePosition = "common.vehiclepositions.leftturret"

//*****************************
////////////////////////////////
FLYERSECTION = "TURRET4"
////////////////////////////////
//PassengerSlots = "6"
//PassengerEyePoint = "hp_passenger1"

ForceMode = 1
ThirdPersonFOV = 59.5
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75

YawLimits = "-95 -60"
PitchLimits = "-10.0 20.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

PitchTurnFactor = "1.0"
YawTurnFactor = "1.0"

EyePointOffset = "0.0 10.0 -3.0"
MountPos = "1.5 -0.75 1.75"
TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 0.0"

//ControlsUnit = "1"
PilotPosition = "hp_passenger1"
PilotAnimation = "standing"

VehiclePosition = "common.vehiclepositions.passenger"

///////////////////////////////////////////////////////////////


CHUNKSECTION = "CHUNK1"
ChunkGeometryName = "gunship_chunk1"
ChunkNodeName = "Wing_gun_housing_2"
ChunkTerrainCollisions = "5"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.0 1.5"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "10.0"
ChunkUpFactor = "0.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

CHUNKSECTION = "CHUNK2"
ChunkGeometryName = "gunship_chunk2"
ChunkNodeName = "main_backdoor_R"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.5 2.0"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "8.0"
ChunkUpFactor = "0.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

CHUNKSECTION = "CHUNK3"
ChunkGeometryName = "REP_LA_AT_Gunship_hulk"
ChunkNodeName = ""
ChunkTerrainCollisions = "0"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkPhysics = "FULL"
ChunkOmega = "1.0 1.0 1.0"
ChunkSpeed = "12.0"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke1"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke2"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke3"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke4"

//////////////////////////
////DAMAGE///////////
///////////////

// SPARK

DamageStartPercent = "85"
DamageStopPercent = "25"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage1"

DamageStartPercent = "75"
DamageStopPercent = "15"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage2"

DamageStartPercent = "65"
DamageStopPercent = "5"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage3"

// SMOKE

DamageStartPercent = "75"
DamageStopPercent = "35"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage1"

DamageStartPercent = "65"
DamageStopPercent = "25"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage2"

DamageStartPercent = "55"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage3"

// FLAME

DamageStartPercent = "35"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehicleflame_sc"
DamageEffectScale = "0.75"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage1"

DamageStartPercent = "25"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehicleflame_sc"
DamageEffectScale = "0.75"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage2"



//ExplosionCritical = "rep_fly_gunship_exp"
ExplosionDestruct = "rep_fly_gunship_exp"


VOUnitType = 131
EngineSound = "wrong_gunship_loaded"
TakeoffSound = "rep_fly_gunship_takeoff"
LandSound = "rep_fly_gunship_land"
HurtSound = "imp_weap_ord_exp_lg"
DeathSound = "imp_weap_ord_exp_lg"
VehicleCollisionSound ="com_veh_collision_lg"
TurnOnSound = ""
TurnOffSound = ""
CISMusic ="cis_vehicle"
RepMusic ="rep_vehicle"
MusicSpeed = ".30"
MusicDelay = "3.0"
FoleyFXGroup = "metal_foley"
Cockpit1stPersonSound = "rep_inf_com_space_chatter"
Cockpit3rdPersonSound = "rep_inf_com_space_chatter"
ProximityMinDist = "25" // Distance from target where proximity parameter of engine is 0.
ProximityMaxDist = "100" // Distance from target where proximity parameter of engine is 1.
BoostSound = "rep_fly_gunship_shift_up_low_property 0.11 1"
BoostSound = "rep_fly_gunship_shift_up_property 0.47 1"
BoostSound = "rep_fly_gunship_shift_up_high_property 0.62 1"
BoostSound = "rep_fly_gunship_shift_down_low_property 0.11 0"
//BoostSound = "rep_fly_gunship_shift_down_high_property 0.17 0"
BoostSound = "rep_fly_gunship_shift_down_property 0.34 0"

Of course I have the sides correctly and I added the "rep_fly_gunship" and the dc: to the lua.
I have a control zone for cp1 (cp1_control) and a vehicle spawner in it with the gunship's name.
When I munge (with common and the rep side selected) it doesn't say anything, but the gunship doesn't show up ingame. :x
Can you tell me what's wrong?

Re: Custom Vehicle Help

Posted: Sat Aug 27, 2011 4:36 am
by DarthD.U.C.K.
can you give us your bfron2log? in 90% of such cases you can find in information about the problem in it.

Re: Custom Vehicle Help

Posted: Sat Aug 27, 2011 5:06 am
by hunpeter12
Opened logfile BFront2.log 2011-04-21 0638

This is a text filec in LucasArts\Star Wars Battlefront II\GameData

Where is my Bfront2 log???

Re: Custom Vehicle Help

Posted: Sat Aug 27, 2011 6:03 am
by DarthD.U.C.K.
you just wrote where it is... when you make posts you always have to put yourself into the position of somebody on the forum who only know your problem from the posts you made in this very topic and check if it makes as much sense to him/her as it makes to you.

Re: Custom Vehicle Help

Posted: Wed Aug 31, 2011 7:09 am
by hunpeter12
So this is it. Thank you.

EDIT
I tried it with the default gunship and it didn't work.
I can think of only one thing: Do I have to change the SetMemoryPoolSize("EntityFlyer", 32)
from 32? And if I have to, what number I should write in there?

Re: Custom Vehicle Help

Posted: Wed Aug 31, 2011 9:09 am
by DarthD.U.C.K.
if you are adding the space gunship (rep_fly_gunship_sc), you need to add this memorypool:

Code: Select all

SetMemoryPoolSize ("CommandFlyer",number)
thats necessary because they are mobile commandposts. if you add commandhovers or commandwalkers you also haveto ste this memorypol.

Re: Custom Vehicle Help

Posted: Wed Aug 31, 2011 12:07 pm
by Tears2Roses
Off topic: A qucik note on battlefront 2 logs:
WHAT TO DO TO GET A LOG AND WHAT TO POST:
- To get an error log, go to your battlefront 2 mod tools folder. It should be C:\bf2_modtools. Now, find BF2_modtools.exe ( it should have a clone helmet beside it ) and double click that. It should launch the game. Play your map, let it crash or exit out to generate a log.
-You mentioned where the log is located, double click that and it should open in notepad.
-Scroll thru until you find Message Severity 3: errors. These "sev 3" errors are what cause most of your problems. You can post those for us. You always get a log, just starting the game creates one.
- generally, reading what it says can solve most of your problems.
WHAT NOT TO POST:
- Gnerally, you SHOULD NOT need to post Message Severity 2: errors. This doesn't mean never post them, if someone asks for them, then post the "sev 2" errors.
- All sev 2 errors that have something like " can not find vehicle modifier "in vehicle" can be ignored.
- a wall of text at the begining of the log that looks something like
Hidden/Spoiler:
[code] Opened logfile BFront2.log 2011-08-24 1038
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy english 0
ifs_era_handler - Entered
ifs_era_handler - Exited
shell_interface: No custom_gc_0.lvl
shell_interface: No custom_gc_1.lvl
shell_interface: No custom_gc_2.lvl
shell_interface: No custom_gc_3.lvl
shell_interface: No custom_gc_4.lvl
shell_interface: No custom_gc_5.lvl
shell_interface: No custom_gc_6.lvl
shell_interface: No custom_gc_7.lvl
shell_interface: No custom_gc_8.lvl
shell_interface: No custom_gc_9.lvl
shell_interface: Found custom_gc_10.lvl
custom_gc_10: Entered
custom_gc_10: Found custom_gc_11.lvl
custom_gc_11: Entered
ifs_freeform_init_dt.lua
ifs_freeform_start_dt.lua
custom_gc_11: Taking control of custom_GetGCButtonList()...
custom_gc_11: Taking control of custom_PressedGCButton()...
custom_gc_11: Exited
custom_gc_10: No custom_gc_12.lvl. Will stop searching for any more cGC scripts.
custom_gc_10: Exited
custom_EraButtonList(): Finished building era button table Known eras buttons: 28
custom_GetGMapEras(): Finished building era table Known eras: 28
custom_GetGMapModes(): Finished building game mode table Known Modes: 39
custom_GetMPGameModeList(): Finished building game mode list table List Length: 40
custom_SetMovieLocation()
custom_gc_11: custom_GetGCButtonList(): Entered
custom_GetGCButtonList()
custom_gc_11: custom_GetGCButtonList(): Exited
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
Found ..\..\addon\BDT\data\_LVL_PC\SIDE\lead.lvl. Adding ETR's extra Dark Times missions
Found ..\..\addon\BF1\data\_LVL_PC\SIDE\sen.lvl. Adding SEN's extra Dark Times missions
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
ifs_legal.Exit

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main[/code]
the hidden spoiler can be ignored.
- about it on BF2 logs. I would do what darth duck said, and happy modding!

Re: Custom Vehicle Help

Posted: Sun Sep 04, 2011 11:47 am
by hunpeter12
I edited the ground/atmosphere gunship: "rep_fly_gunship"

EDIT: I tried it with the space gunship, and it didn't work. Should I add the memorypool to a specific place?