custom jedi is now working.

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
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

custom jedi is now working.

Post by Xavious »

yeah. read the topic. i followed the docs, but it doesnt work. when i select my custom jedi and select spawn, the game crashes. also, it looks like hes loading a weapon on the select screen.
Last edited by Xavious on Thu Jul 13, 2006 7:27 pm, edited 3 times in total.
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

Post your Jedi's ODF and also run BF2_modtools.exe and see what the log says the error is.
Fiminopter
Sergeant Major
Sergeant Major
Posts: 221
Joined: Sat Apr 29, 2006 11:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Fiminopter »

Same thing happened to me. It turned out that I spelled his weapon name wrong.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

//Luke
[GameObjectClass]
ClassParent = "com_jedi_default"
GeometryName = "jed_inf_jedi.msh"

[Properties]
AISizeType = "HOVER"

GeometryName = "jed_inf_jedi"
GeometryLowRes = "jed_inf_jedi_low1"
OverrideTexture = "jed_inf_jedi03"

AnimationName = "szz_xavious"

HealthType = "person"
MaxHealth = 200.0
AddHealth = 20.0

MaxSpeed = 8.0
MaxStrafeSpeed = 6.0
MaxTurnSpeed = 5.0
JumpHeight = 3.5
RecoverFromTumble = "1"

NoEnterVehicles = 1

//Jet Jump
JetJump = "10.0" //The initial jump-push given when enabling the jet
JetPush = "0.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "10.0" // for characters with jet jump, use this acceleration for in air control
JetEffect = ""
JetFuelRechargeRate = "0.0" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.0" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.0" //4initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.0" //minimum fuel to perform a jet jump(fuel is 0 to 1)
JetShowHud = 0
JetEnergyDrain = 40.0

CollisionScale = "0.0 0.0 0.0" // don't take damage from collisions
//Jet Jump End

WEAPONSECTION = 1
WeaponName1 = "jed_weap_lightsaber_red"
WeaponAmmo1 = 0


//SOUND
VOUnitType = 0181
//SoldierMusic = "all_hero_Luke_lp"
HurtSound = ""
DeathSound = ""
AcquiredTargetSound = ""
HidingSound = ""
ApproachingTargetSound = ""
FleeSound = ""
PreparingForDamageSound = ""
HeardEnemySound = ""
//ShockFadeOutTime = "0.8"
//ShockFadeInTime = "2.0"
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
//LowHealthSound = "com_inf_saber_ambient"
LowHealthThreshold = "1.1"

FoleyFXClass = "rep_inf_soldier"

//SndHeroSelectable = ""
//SndHeroSpawned = "hero_luke_spawn"
//SndHeroDefeated = "hero_luke_exhausted"
//SndHeroKiller = "hero_luke_exhausted"

//VOSound = "hero_luke_AcquiredTarget AcquiredTarget"
//VOSound = "hero_luke_KillingSpree4 KillingSpree4"


the combo-name thing is szz_xavious
Fiminopter
Sergeant Major
Sergeant Major
Posts: 221
Joined: Sat Apr 29, 2006 11:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Fiminopter »

Post your lightsaber odf too.

Right now you probably just need to delete the AnimationName. I've done that and the game still works.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

[WeaponClass]

ClassLabel = "melee"
ClassParent = "com_weap_inf_lightsaber"

[Properties]

ComboAnimationBank = "human_sabre melee szz_hero_xavious"

NumDamageEdges = 1

GeometryName = "imp_weap_inf_lightsabre"

FirePointName = "hp_fire"

LightSaberLength = "1.0"
LightSaberWidth = "0.08"

LightSaberTexture = "redlightsabre"

LightSaberTrailColor = "82 255 7 128"




EDIT: did i screw up the comboanimationbank thing?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

oh yeah i checked the log thing and it says this over and over.

Message Severity: 3
.\Source\DisplaySoldier.cpp(349)
DisplaySoldier 'szz_hero_xavious' failed to find animmap szz_xavious_
danrosen

Post by danrosen »

In the odf should the AnimationName be szz_hero_xavious rather than szz_xavious ?
archer01

Post by archer01 »

Things to check...

First off: Did you create an animation bank for this guy? Are all three of the animation files in your side's "munged" directory? They should all be named "szz_xavious" with different extensions. If not, then either create one or use a different bank.

Second: Is there a .combo file named "szz_hero_xavious" in your side's odf directory?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

no, there is no combo file named "szz_hero_xavious", the combo file is "szz_xavious".
yes, i have the bank, it has three different "szz_xavious" extensions.
so i just have to fix that animation-bank and it should work?
Fiminopter
Sergeant Major
Sergeant Major
Posts: 221
Joined: Sat Apr 29, 2006 11:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Fiminopter »

Code: Select all

[WeaponClass]

ClassLabel          = "melee"
ClassParent			= "com_weap_inf_lightsaber"

[Properties]

ComboAnimationBank	= "human_sabre melee szz_xavious"

GeometryName        = "imp_weap_inf_lightsabre"

FirePointName       = "hp_fire"

LightSaberLength	= "1.0"
LightSaberWidth		= "0.08"

LightSaberTexture 	= "redlightsabre"

LightSaberTrailColor = "82 255 7 128"

I think that should be your lightsaber odf. Someone correct me if I am wrong.
archer01

Post by archer01 »

The line of code in question works like this:

ComboAnimationBank = "human_sabre melee NameOfComboFile"

So the code Fiminopter suggested should be right.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

so the jedi odf looks good? ok i'll try it.
No. Try not. DO. - some famous old jedi
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

its still not working!
Fiminopter
Sergeant Major
Sergeant Major
Posts: 221
Joined: Sat Apr 29, 2006 11:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Fiminopter »

Well, how did you make your own saber combo?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

i used the human_sabre animations(only basepose andstand_idle_emote_full), put them in my soldieranimationbank then double clicked munge.bat, and the animation files showed up in the sides munged folder
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

come on.....can anyone help?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

nvrmind....i forgot the .combo file....how silly....
Post Reply