Page 1 of 1

Weapon not appearing ingame [Solved]

Posted: Mon Aug 10, 2009 11:14 am
by impspy
I cannot get the froce pike for my Royal Guard to show up ingame.

Forcepike ODF:

Code: Select all

[WeaponClass]

ClassLabel      = "melee"
ClassParent		= "com_weap_inf_lightsaber"

[Properties]

HitEffect = "com_sfx_sabrehit"

GeometryName    = "imp_force_pike"
ComboAnimationBank  = "human_sabre melee imp_inf_royalguard"

NumDamageEdges		= "3"
FirePointName       = "hp_fire1"
LightSaberLength    = "1.0"
LightSaberWidth     = "0.02"
LightSaberTexture   = "pikelightsabre"
LightSaberTrailColor = "0 0 0 0"

AttachedFirePoint	= "bone_l_calf 1.0 0.0 0.0 0.35 0.0 0.0"
DamageEdgeLength	= "0.5"
DamageEdgeWidth		= "0.1"
unit ODF:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_jedi_default"
GeometryName = "imp_inf_royalguard.msh"

[Properties]

GeometryName = "imp_inf_royalguard"
GeometryLowRes = "imp_inf_royalguard_low1"
AnimationName = "countdooku"
ClothODF = "imp_inf_royalguard_robe"
PointsToUnlock = 16

MaxHealth = 1200

FleeLikeAHero = 0
NoEnterVehicles = 1
RecoverFromTumble = "1"
ForceMode = 1

EnergyBar = 150.0 // Max energy
EnergyRestore = 5.0 // energy regained per second if moving
EnergyRestoreIdle = 8.0 // energy regained per second if not
EnergyMinSprint = 20.0 // min energy to start sprinting
EnergyDrainSprint = 20.625 // energy spent per second of sprinting
EnergyCostJump = 6.25 // energy cost to jump
EnergyCostRoll = 18.75 // energy cost to roll

MaxSpeed = 9.5
MaxStrafeSpeed = 7.5
MaxTurnSpeed = 7.0
JumpHeight = 3.5

WEAPONSECTION = 1
WeaponName = "imp_weap_Force_Pike"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "cis_weap_inf_buff_damage"
WeaponAmmo = 0
WeaponChannel = 1

/SOUND
SndHeroSelectable = ""
SndHeroSpawned = "hero_imperialGuard_spawn"
SndHeroDefeated = "hero_imperialGuard_exhausted"
SndHeroKiller = "hero_imperialGuard_exhausted"

VOSound = "imp_off_response_hero_command SC_Follow"
VOSound = "imp_off_response_hero_command SC_StopFollow"
VOSound = "imp_off_response_hero_command SC_VehicleWaitUp"
VOSound = "imp_off_response_hero_command SC_GetIn"
VOSound = "imp_off_response_hero_command SC_GetOut"

VOSound = "hero_imperialGuard_AcquiredTarget AcquiredTarget"
VOSound = "hero_imperialGuard_KillingSpree4 KillingSpree4"
SoldierMusic = ""

HurtSound = "imp_inf_com_chatter_wound"
DeathSound = "imp_inf_com_chatter_death"
DamageRegionSound = "impmalechoke"
ChokeSound = "impmaleforcechoke"
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
FoleyFXClass = "imp_inf_trooper"
The msh and teh tga files are in the MSH folder.

Re: Weapon not appearing ingame

Posted: Mon Aug 10, 2009 11:26 am
by Fiodis
Does it crash? Error log messages?

Re: Weapon not appearing ingame

Posted: Mon Aug 10, 2009 12:05 pm
by impspy
There is no crash; the game starts fine and you can play as him, except the weapon msh doesn't appear. ( the attack moves and damage are there though.)


and here is the error log http://www.filefront.com/14246005/BFront2.log

(sorry it's really big...)

Re: Weapon not appearing ingame

Posted: Mon Aug 10, 2009 12:12 pm
by Fiodis
You could post it in Hide tags.

Code: Select all

[Hide]*error log here*[/Hide]
Comes out as
Hidden/Spoiler:
*error log here*
And though it's probably unrelated, you may want to take care of

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\WeaponCannon.cpp(1272)
Weapon "all_weap_FC-1_Flechette_Launche" missing secondary ordnance "0"
And here is the one that gives you trouble:

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(2044)
Weapon "imp_weap_Force_Pike" missing geometry "imp_force_pike"
I had something similar a while back, and that was because the name of my mesh started with a number. Check to make sure the name of your mesh is referenced correctly and does not start with a number.

Re: Weapon not appearing ingame

Posted: Mon Aug 10, 2009 12:34 pm
by impspy
thanks Fiodis! it's fixed :thumbs: