An Incredibly Strange error...

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
Slime615
Lieutenant General
Lieutenant General
Posts: 704
Joined: Thu Jan 07, 2010 9:38 am

An Incredibly Strange error...

Post by Slime615 »

I have been working on a mod recently, and have got this incredibly Strange error...

Dispite modifying the ammo section of my units ODF, when ever I change a weapon, any weapon that does not have infinate ammo, is spawned with 0 ammo, and can not pick up new ammo. This is odd, especialy since I am useing stock weapons. Even more perplexingly, no errors appearing in the Battlefront log appear to be connected with the problem. I have been working on it with THEWULFMAN and dispite numerous ideas and theories, we have been unable to fix this problem...

I was wondering if anyone has had similar problems, and if so, how did you solve it?.
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: An Incredibly Strange error...

Post by Firefang »

Could you post your unit odfs?
Slime615
Lieutenant General
Lieutenant General
Posts: 704
Joined: Thu Jan 07, 2010 9:38 am

Re: An Incredibly Strange error...

Post by Slime615 »

Sure. Here is an example of one of them.
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"

[Properties]

AnimationName = "elite"

MaxHealth = "650.0"
ScanningRange = 30.0

UnitType = "trooper"

WEAPONSECTION = 1
WeaponName = "rep_weap_WESTAR-M5_Blaster_Rifle"
WeaponAmmo = 10

WEAPONSECTION = 2
WeaponName ="rep_weap_PLX-1_Missile_Launcher"
Weapon Ammo = 8

WEAPONSECTION = 3
WeaponName = "rep_weap_DC-17_Hand_Blaster"
WeaponAmmo = 0

WEAPONSECTION = 4
WeaponName ="rep_weap_Pulse_Grenade"
Weapon Ammo = 4
WeaponChannel = 1

VOUnitType = 121
GeometryName = "rep_inf_komrk"
FirstPerson = "REP\reparc;rep_1st_arctrooper"
GeometryLowRes = "rep_inf_komrk"
ClothODF = "006_inf_ARC_trooper_pack"
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: An Incredibly Strange error...

Post by CalvaryCptMike »

There is no space between "Weapon" and "Ammo" It should just be: "WeaponAmmo"
Can you also post a weapon odf? And did you make sure that there is no other odf overriding this one? is this one a classparent and other classes are deriving from it and are changing ammo values?
Slime615
Lieutenant General
Lieutenant General
Posts: 704
Joined: Thu Jan 07, 2010 9:38 am

Re: An Incredibly Strange error...

Post by Slime615 »

This is the Z-6 Cannon that is also being used, and has the same problem.
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"
GeometryName = "rep_inf_underhand_chaingun2.msh"

[Properties]

AnimationBank = "rifle"
HUDTag = "rep_weap_inf_chaingun"
GeometryName = "rep_inf_underhand_chaingun2"
HighResGeometry = "rep_inf_underhand_chaingun2"

OrdnanceName = "rep_weap_inf_z6_ord"

//******************************************************
//*************** SOUND ****************
//******************************************************

ReloadSound = "com_weap_inf_reload_lg"
ChangeModeSound = "com_weap_inf_equip_lg"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_lg"
JumpSound = "com_weap_inf_bazooka_mvt_jump"
LandSound = "com_weap_inf_bazooka_mvt_land"
RollSound = "com_weap_inf_bazooka_mvt_roll"
//ProneSound = "com_weap_inf_bazooka_mvt_lie"
SquatSound = "com_weap_inf_bazooka_mvt_squat"
//StandSound = "com_weap_inf_bazooka_mvt_getup"
//FireSound = "rep_weap_inf_chaingun_fire"
//FireSoundStop = 1
//FireLoopSound = "rep_weap_inf_chaingun_fire"

WarmUpSound = "rep_weap_inf_chaingun_spin"
WarmUpSoundStartPitch = 0.5
WarmUpSoundFadeInTime = 0.2
WarmUpSoundFadeOutTime = 0.2

BarrelSound = "rep_weap_inf_chaingun_fire"
BarrelSoundFadeInTime = 0.2
BarrelSoundFadeOutTime = 0.1

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

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

TargetPerson = "0"
TargetAnimal = "0"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "0"

AITargetPerson = "0"
AITargetAnimal = "0"
AITargetDroid = "1"
AITargetVehicle = "1"
AITargetBuilding = "0"

MinRange = "0"
OptimalRange = "60"
MaxRange = "100"

LockOnRange = "48.0"
LockTime = "0.1"
lockOnAngle = "1.0"

ZoomMin = "3.0"
ZoomMax = "6.0"
ZoomRate = "0.0"

BarrageMin = "90"
BarrageMax = "100"
BarrageDelay = "1"

YawSpread = "0.20"
PitchSpread = "0.20"

SpreadPerShot = "0.110"
SpreadRecoverRate = "4.0"
SpreadThreshold = "1.5"
SpreadLimit = "4.5"

StandStillSpread = "2.0"
StandMoveSpread = "4.0"
CrouchStillSpread = "1.7"
CrouchMoveSpread = "2.3"
ProneStillSpread = "0.0"
ProneMoveSpread = "3.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "500"
ShotDelay = "0.066"
ReloadTime = "3.5"
HeatRecoverRate = "0.28"
HeatThreshold = "0.2105"
HeatPerShot = "0.022"

WarmUpTime = 0.8
CoolDownTime = 1.3

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"
//ShotPatternCount = "1"
//ShotPatternPitchYaw = "-1.3 0.0"


DisplayRefire = "0"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

MuzzleFlash = "small_muzzle_flash"
FlashColor = "0 0 255 255"
FlashLength = 0.3
FlashColor = "100 100 255 255"
FlashLength = 0.3
FlashLightColor = "220 220 255 175"
FlashLightRadius = "3.0"
FlashLightDuration = "0.08"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.15"
RecoilStrengthLight = "1"
RecoilStrengthHeavy = "1.5"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: An Incredibly Strange error...

Post by AQT »

CalvaryCptMike wrote:There is no space between "Weapon" and "Ammo" It should just be: "WeaponAmmo"
Did you even make this change, Slime? Anywhere it would apply?
Slime615
Lieutenant General
Lieutenant General
Posts: 704
Joined: Thu Jan 07, 2010 9:38 am

Re: An Incredibly Strange error...

Post by Slime615 »

Unfortuanatly, this error only affected on weapon of one unit. Th errorr is still in effect on other units, without this error.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: An Incredibly Strange error...

Post by CressAlbane »

Slime615 wrote:Unfortuanatly, this error only affected on weapon of one unit. Th errorr is still in effect on other units, without this error.
????? :faint:
Try re-wording that, please.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: An Incredibly Strange error...

Post by THEWULFMAN »

CressAlbane wrote:
Slime615 wrote:Unfortuanatly, this error only affected on weapon of one unit. Th errorr is still in effect on other units, without this error.
????? :faint:
Try re-wording that, please.

Try
"Unfortunately, this error was only on the one unit, the other unit still has no ammo and does not have the Weapon Ammo error"
Slime615
Lieutenant General
Lieutenant General
Posts: 704
Joined: Thu Jan 07, 2010 9:38 am

Re: An Incredibly Strange error...

Post by Slime615 »

The Weapon Ammo error was a problem for the rocke launcher, but there is not any ammo for the other weapons in other units (and the grenades in this unit) Dispite not have the Weapon Ammo typo in there ODFs.
Post Reply