Page 1 of 1

Side edits causing crash

Posted: Fri Jan 03, 2014 7:04 am
by hiddenslayer
So, I've been having an issue with my force lightning...I basically increased the range to 40, and some other tiny edits (stamina usage, and damage)....when I munged it and put the sides into my server, it would continuously crash both Dooku, and Emperor. So I went back and replaced it with stock lightning files, and ONLY changed the force usage and damage.....after munging it still crashes them, for some reason.

P.S. It's not the damage, b/c I used the same value as all the other forces(?).
P.SI. Is Vader "CLICK" (instead of "HOLD") supported?

Re: Stupid Side Issue...

Posted: Fri Jan 03, 2014 5:33 pm
by Kingpin
Can you post your LUA?

Re: Side edits causing crash

Posted: Sat Jan 04, 2014 10:48 am
by hiddenslayer
Alright

com_weap_inf_force_lightning
Hidden/Spoiler:
][WeaponClass]

ClassLabel = "cannon"

[Properties]
HUDTag = "hud_force_lightning"
GeometryName = ""
HighResGeometry = ""

FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
Discharge = "med_smoke_effect"

RoundsPerClip = "0"
ReloadTime = "0.0"
HeatRecoverRate = "0.3"
HeatThreshold = "0.25"

OrdnanceName = "com_weap_inf_force_lightning_ord"

TriggerSingle = "0"
ShotDelay = "0.0"
HeatPerShot = "0.1"

EnergyDrain = 0.0

InstantPlayFireAnim = 1
OffhandWeapon = 1

PitchSpread = "0.0"
YawSpread = "0.0"

SpreadPerShot = "0.0"//1.2
SpreadRecoverRate = "0.0"//0.08
SpreadThreshold = "0.0"//0.03
SpreadLimit = "0.0"

StandStillSpread = "0.0"//0.4
StandMoveSpread = "0.0"//0.9
CrouchStillSpread = "0.0"//0.1
CrouchMoveSpread = "0.0"//0.6
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

LockOnRange = "64.0"
LockTime = "0.0"
AutoAimSize = "2.0"

SalvoCount = "1"
ShotsPerSalvo = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5" // must have one or no animation - Mike Z
SalvoTime = "0.0"

//ChargeRateLight = "1.0"
//MaxChargeStrengthLight = "1.0"
//ChargeDelayLight = "0.0"
//ChargeRateHeavy = "1.0"
//MaxChargeStrengthHeavy = "0.5"
//ChargeDelayHeavy = "2.2"

//RecoilLengthHeavy = "0.25"
//RecoilStrengthHeavy = "2"
//RecoilDecayHeavy = "0.0"

FireSound = "force_lightning_fire"
ReloadSound = ""
WeaponChangeSound = ""
ChangeModeSound = ""
FireEmptySound = ""
ChargeSound = ""
ChargeSoundPitch = "0.05"
OverheatSound = ""
OverheatSoundPitch = "0.5"
OverheatStopSound = ""

TargetEnemy = "1"
TargetNeutral = "1"
TargetFriendly = "1"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "0"[/spoiler]


And here's the ORD (I didn't even open the EXP).
[spoiler][OrdnanceClass]

ClassLabel = "emitterordnance"

[Properties]
Explosion = "com_weap_inf_force_lightning_exp"

ImpactEffectWater = "com_sfx_watersplash_ord"

ConeLength = "15"
ConeAngle = "80"
FirstRadius = "0.0"
MaxTargets = "10" // Max number of targets to hit. Chaining is off so the damage will be split between the number of targets
NoChaining = "1" // No chaining - all bolts coming from the attacker

//OrdnanceSound = "com_weap_launcher_energy_dumbfire"

Damage = "3000" // This is the min damage. Even if the initial damage is split between the number of targets, it will never go below this number for each target
MaxDamage = "3100" // This is the max damage
JumpDeduction = "0" // No jump deduction. This is for chaining only
DamageThreshold = "0" // Always do damage (no threshold)
MaxJumpDistance = "0" // No max jump distance because the chaining is off

VehicleScale = "0.0"
ShieldScale = "1.0"
PersonScale = "1.0"
AnimalScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.0"

SmolderEffectTimer = "3.0"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_ribcage"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_pelvis"

Push = "0.0"
LightningEffect = "com_sfx_lightning"
LightningEffectScale = "0.15"
NoTargetLightningEffectCount = "5" // The number of ligthning effects to display when the ordinance has no targets to hit
NoTargetLightningEffectRandomSpread = "0.4" // The random rotation spread the ligthning effects does when the ordinance has no targets to hit
EDIT
Well, Sorry for the DBle post...
But thanks for editing my title...whoever it was :P
And, if you could fix my post...I dunno how to add spoiler tags!! :(

Double posting is against the RULES; please EDIT your post instead -Staff

Re: Side edits causing crash

Posted: Sat Jan 04, 2014 10:48 am
by Anakin
he asked for a lua file and you posted an odf file.

and the spoiler tags are called hide on this board

Re: Side edits causing crash

Posted: Sat Jan 04, 2014 10:58 am
by JimmyAngler
the lua is found here:
BF2ModTools/data_XXX/Common/scripts/XXX.

XXX can be substituted for your map name.