Lightsaber Help...

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
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Lightsaber Help...

Post by theultimat »

Right. When I put some heros on my map, for some reason the lightsaber attack goes straight through the person I'm trying ot hit...? How do I fix that?

BTW, the weapon hits on saber throw, but not on close combat.

PLEASE HELP!!!
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 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: At RCTC
Contact:

Re: Lightsaber Help...

Post by Master Fionwë »

I wonder...
That is a wierd issue. Did you edit the lightsaber odfs for the heroes at all? It might also just be some munging glitch.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Lightsaber Help...

Post by MandeRek »

Sounds like you're playing as them in a space map.. There's the issue at well. Paste some lines from a land-map lua, talking about ComboState, and paste these in your lua. I don't know them by heart, maybe someone else can post them..

Good luck ;)
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Lightsaber Help...

Post by theultimat »

Thanks, I will try that out :thumbs:

Edit
... it doesn't work... :faint:

EDIT2
Still no luck...
This is the code I copied:

Code: Select all

	SetMemoryPoolSize ("ClothData",20)
    SetMemoryPoolSize ("Combo",50)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",650)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",650)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",550)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",6000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",100)     -- should be ~1x #combo  
EDIT3
Oh sorry - I fixed it :D
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Lightsaber Help...

Post by MandeRek »

Please man, don't triple post we've got a nice edit button here ;)

How did you fix it? This might help others :)
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Lightsaber Help...

Post by theultimat »

Sorry about tripple post...
Anyway, here's how you do it. Open your ground maps lua (e.g. ABC*_con) and copy the lines below:

Code: Select all

 SetMemoryPoolSize ("ClothData",20)
    SetMemoryPoolSize ("Combo",50)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",650)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",650)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",550)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",6000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",100)     -- should be ~1x #combo  
Now open your pace lua called ABC*_Diet Dr. Pepper.lua. Find the line below:

Code: Select all

	DisableSmallMapMiniMap()
Paste the lines of code from above under that line. Your file should now look like this:

Code: Select all

	DisableSmallMapMiniMap()


	SetMemoryPoolSize ("ClothData",20)
    SetMemoryPoolSize ("Combo",50)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",650)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",650)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",550)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",6000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",100)     -- should be ~1x #combo 
end
Hope that help all you guys out there :D :P .
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lightsaber Help...

Post by Maveritchell »

You can really put that almost anywhere in ScriptInit. It doesn't look like you did anything different than before, had you just pasted it into the very beginning of the .lua or something?
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Lightsaber Help...

Post by theultimat »

Nope...I put all the combo code in the wrong lua. Stupid me...
Post Reply