Problems with auto recon droids...

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Problems with auto recon droids...

Post by Sky_216 »

Okay, for a while I've been trying to make an automatic recon droid. It's spawned by a dispenser, all the weapons work and the droid is loaded in the req and lua files. However, the rotten thing still keeps crashing.If anyone has got one to work could you please help?

Here is the script for the recon droid itself:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "hover"
GeometryName = "com_weap_probedroid.msh"

[Properties]

FLYERSECTION = "BODY"
VehicleType = "light"

PilotType = "self"

Label = "Speederbike"

MapTexture = "speederbike_icon"
HealthTexture = "HUD_speederbike_icon"
MapScale = 1.5

ExplosionName = "rbt_weap_inf_emp_chucker_exp_conc"
GeometryName = "com_weap_probedroid"
CollisionThreshold = "2.0 2.0 0.0"
CollisionScale = "0.0 -0.0001 -0.1"
//CollisionScale = "1.0 -0.5 0"
//FirstPerson = "rep\repspbk;rep_1st_cockpit_speederbike"
VehiclePosition = "common.vehiclepositions.pilot"
WakeEffect = "dustwake"
WaterEffect = "com_sfx_waterwake_sm"


MaxHealth = 80.0
//HitLocation = "p_crithit 0"

TimeRequiredToEject = "0.5"
EjectResistance = "0.01"
TimeTilReboard = "5.0"

DamageStartPercent = 70.0
DamageStopPercent = 50.0
DamageEffect = "com_sfx_vehiclespark"
DamageEffectScale = 0.4
DamageInheritVelocity = 0.75
DamageAttachPoint = "hp_damage_1"

SetAltitude = 2.0
GravityScale = 1.0//2

Acceleration = 4.0
Deceleration = 4.0
Traction = 4.0
ForwardSpeed = 8.0
ReverseSpeed = 6.0
StrafeSpeed = 4.0

EnergyBar = 0
EnergyAutoRestore = 0
EnergyBoostDrain = 0
BoostSpeed = 0
BoostAcceleration = 0.0
BoostFOV = 0

AddSpringBody = "0.0 0.7 1.5 1.4"
BodyOmegaXSpringFactor = -2.0

AddSpringBody = "-0.5 0.7 -1.0 1.4"
AddSpringBody = "0.5 0.7 -1.0 1.4"

VelocitySpring = 5
VelocityDamp = 2.5
OmegaXSpring = 3.0
OmegaXDamp = 2.5
OmegaZSpring = 5.0
OmegaZDamp = 1.8

SpinRate = 1.3
TurnRate = 1.4
BoostTurnMultiplier = 1.0
TurnFilter = 15.0
PitchRate = 1.0
StrafeRollAngle = 0.0
ThrustPitchAngle = 0.0
BankAngle = 0.002
BankFilter = 3.0
LevelSpring = 5.0
LevelDamp = 3.0

JumpTimeMin = 0.0
JumpTimeMax = 0.0
JumpForce = 0.0
JumpMinSpeedMult = 0.0
JumpEnergyPerSec = 0.0


//PCPitchRate = 15.0
//PCSpinRate = 15.0
//PCTurnRate = 25.0


EyePointOffset = "0.0 1.0 0.0"
TrackCenter = "0 2.5 -6"
TrackOffset = "0.0 0.0 0.0"
TiltValue = "5.0"

CockpitTension = "12"

NormalDirection = "0.0 -10.0 0.0"

PitchLimits = "-5.0 5.0"
YawLimits = "-15.0 15.0"



WeaponName = "rbt_weap_inf_drone_blaster"
WeaponAmmo = "0"

AimerPitchLimits = "-90 90"
AimerYawLimits = "-90 90"

NextAimer = "-"



AISizeType = "SOLDIER"
NoCombatInterrupt = 1
//AvailableForAnyTeam = 1


GroundedSound = ""
GroundedHeight = ""
//BoostSound = "imp_hover_speederbike_boost_on 0.5 1"
//BoostSound = "imp_hover_speederbike_boost_on_max 0.9 1"
//BoostSound = "imp_hover_speederbike_boost_off_max 0.8 0"
//BoostSound = "imp_hover_speederbike_boost_off 0.4 0"
FoleyFXGroup = "metal_foley"

Oh yeah, and another thing. Anyone know how to get the orbital strike beacon working or make an orbital strike grenade/bomb?
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Re: Problems with auto recon droids...

Post by Syth »

ehhh... i forgot where i saw but someone somewhere posted a reply on how to do auto droids, and its not as simple as changing a couple lines. You have to do stuff with the maps LUA
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Problems with auto recon droids...

Post by MercuryNoodles »

Is there an error associated with the crash?

Idea: after looking at the odfs for your droid, the speederbike, and the trooptrans, I noticed something. You're calling for NextAimer, but you have no AimerNodeName line following it. See if removing the NextAimer line fixes anything, because this engine is notorious for being picky about details like that.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Problems with auto recon droids...

Post by Sky_216 »

Did as you said Merc, didn't help though. :x

Anyone got any other ideas?


Also, does anyone know how to get the orbital strike beacon working or make an orbital strike grenade/bomb?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Problems with auto recon droids...

Post by MercuryNoodles »

I was just thinking about this: You didn't use the AimerNodeName parameter at all, did you? I didn't really notice this before.

Here is one of the trooptrans weapon sections for reference:
Hidden/Spoiler:
WEAPONSECTION = "1"

WeaponName ="imp_weap_fly_trooptrans_recoilless"
WeaponAmmo = "0"

AimerNodeName = "hp_gunr2"
NextAimer = "-"

AimerNodeName = "hp_gunl2"
NextAimer = "-"

AimerNodeName = "hp_gunr1"
NextAimer = "-"

AimerNodeName = "hp_gunl1"
I'm guessing you need to have at least one AimerNodeName line present for the weapon to work. Figure out the name of the hardpoint you need to call for and plug it in. Maybe after this we'll actually get somewhere. For now, I'm under the impression it's a weapon error, because I've yet to see any error messages. So, I'm assuming it's a silent crash, which has only a handful of known causes.
Darth_Cow
Private Third Class
Posts: 48
Joined: Tue Aug 14, 2007 8:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aboard the Red October

Re: Problems with auto recon droids...

Post by Darth_Cow »

There's a shootable orbital strike beacon in ARC_Commander's BFX mod, ask him about it. :mrgreen:
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Problems with auto recon droids...

Post by Sky_216 »

Thanks, Darth Cow. And you too, Merc.
Recon droid loaded in the 'rep' side in the lua, weapons tested and definitely work and BF2log doesn't record any errors about it. Oh dear.
Post Reply