Missing weapon (but its not!)

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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7: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
Contact:

Missing weapon (but its not!)

Post by ryukaji »

Errors:
Hidden/Spoiler:
[code]Message Severity: 3
.\Source\EntitySoldier.cpp(10680)
Soldier "bst_inf_ryu" weapon 1 "ryu_rifle" not found[/code]
[code]Message Severity: 3
.\Source\DisplaySoldier.cpp(346)
DisplaySoldier 'bst_inf_ryu' has no weapon 0[/code]
[code]Message Severity: 3
.\Source\DisplaySoldier.cpp(135)
DisplaySoldier::Setup 'bst_inf_ryu' with no primary weapon![/code][/size]
Unit Odf:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"

[Properties]
Label = "Republic Trooper"
UnitType = "trooper"
IconTexture = "rep_trooper_icon"

GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"

WEAPONSECTION = 1
WeaponName = "ryu_rifle"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "ryu_pistol"
WeaponAmmo = 0


VOUnitType = 121
Weapon Odf:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"
GeometryName = "m16_hires.msh"

[Properties]

AnimationBank = "rifle"
GeometryName = "m16_hires"
HighResGeometry = "m16_hires"
OrdnanceName = "m16_ord"

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

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

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

BarrageMin = "3"
BarrageMax = "6"
BarrageDelay = "0.13"

MinRange = "0"
OptimalRange = "100"
MaxRange = "550"

ZoomMin = "2.5"
ZoomMax = "2.5"
ZoomRate = "0.0"

YawSpread = "0.225"
PitchSpread = "0.225"

KickSpread = "0.6"
SpreadRecover = "2.0"

KickStrength = "0.4"
KickBuildup = "999.0"

SpreadPerShot = "0.2"
SpreadRecoverRate = "1.0"
SpreadThreshold = "1.2"
SpreadLimit = "1.2"

StandStillSpread = "0.5"
StandMoveSpread = "2.0"
CrouchStillSpread = "0.3"
CrouchMoveSpread = "0.75"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

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

RoundsPerClip = "30"
ReloadTime = "1.5"
ShotDelay = "0.075"
TriggerSingle = "1"

DisplayRefire = "0"

SalvoCount = "3"
SalvoDelay = "0.08"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"


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

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 223 0 180"
FlashLength = 0.025
FlashColor = "255 223 0 180"
FlashLength = 0.025
FlashLightColor = "255 220 220 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.3"
RecoilStrengthLight = "0.1"
RecoilStrengthHeavy = "0.3"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"



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

FireSound = "M16_fire"
ReloadSound = "M16_reload"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
Why does it not find it? I have spent over an hour on this frustrating issue
Last edited by ryukaji on Thu Feb 05, 2009 8:10 pm, edited 1 time in total.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Missing weapon (but its not!)

Post by obiboba3po »

there may be somethign wrong with yer rifle odf. if not, try a manual clean and munge.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Missing weapon (but its not!)

Post by Fiodis »

Is the rifle odf's name exactly the way that the unit's odf calls for it?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7: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
Contact:

Re: Missing weapon (but its not!)

Post by ryukaji »

Fiodis wrote:Is the rifle odf's name exactly the way that the unit's odf calls for it?


Of course, im not a noob, but dont worry about it it seems the Manual fixed it :)
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Missing weapon (but its not!)

Post by obiboba3po »

yup its a really stubborn thing munge does. cleaning fixes almost all errors when it claims it cant find something :yes:
Post Reply