Custom Saber issue [Solved]

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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Custom Saber issue [Solved]

Post by jedimoose32 »

now that I have learned some xsi i am trying to make some custom models and learn the ropes a bit
now i made a reverse hilt lightsaber today and gave it to obi-wan
but the only thing that works about it is block and saber throw
all the anims are fine, but no damage is happening or any spark effects
i'm guessing there is something in the combo file that needs tweaking?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Custom Saber issue

Post by woner11 »

Someone else made a reverse lightsaber, I beleive Fragme or Ace, but I'm not sure. Anyways, I bet you could find that in the released asests forum and compare your odf to that one and your combo to his.
MetalcoreRancor
Brigadier General
Brigadier General
Posts: 628
Joined: Thu Jun 07, 2007 11:13 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf origin
xbox live or psn: No gamertag set

Re: Custom Saber issue

Post by MetalcoreRancor »

Did you give the lightsaber a firepoint or hardpoint for the deflect coding and damage to be dealt with? it's got nothing to do with Combo, its all about your lightsabre odf.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Custom Saber issue

Post by FragMe! »

You will have to rotate the hp_fire (or whatever you called it) so it lines up with way you have the saber pointing.
If you find it too hard to tell using the default cross for nulls you can change it by selecting the null in XSI tree, press enter and a pop up will allow you to change how the null is displayed. The one arrow on is good as, if I remember correctly it points down the Z axis which is what you want for the hp
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Custom Saber issue

Post by jedimoose32 »

yeah, i'll try comparing to the released one
firepoints should be fine, and the rotation is good
the blade shows up and swings but no damage
do i need to change something in the parent odf? so far i've only changed the rep_weap_lightsabre_obiwan.odf file.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Custom Saber issue

Post by Frisbeetarian »

Anything in the child ODF will override the parent ODF. Thus if you put a modifier in the child ODF, it will overwrite the same modifier in the parent ODF, making it so that you should not need to edit the parent ODF.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Custom Saber issue

Post by jedimoose32 »

okay, so what line must i add?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Custom Saber issue

Post by MercuryNoodles »

Look at your lua.

Code: Select all

SetMemoryPoolSize("Combo::DamageSample", 0)
You need to give that a non-zero value for the saber to do damage. I knew there was a reason I made note of that in the other thread. O_o

Code: Select all

 SetMemoryPoolSize ("Combo",20)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",300)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",300) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",300)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",150)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",1800)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",50)
That's straight out of the mission lua guide. You'll need those, though you might want to refer to one of the game's luas to see how they set the values.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Custom Saber issue

Post by jedimoose32 »

yay it worked!! :shock:
thanks
**LOCK PLEASE**
Post Reply