Two modding questions

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
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 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:

Two modding questions

Post by Silas »

1. how do you make it so any unit that has a lightsaber/sword can use secondary weapons like grenades? mine refuses to let me right click to throw a grenade.

2. How do you fix the Clone Commander so grenades that he throws use the normal animations?

(if you haven't figured it out, im trying to do both at the same time)
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Two modding questions

Post by RepSharpshooter »

I know it has something to do with weapon channels

Code: Select all

WEAPONSECTION = 1
WeaponName     = "orp_weap_vibrosword"
WeaponAmmo     = 6

WEAPONSECTION = 2
WeaponName     = "kot_weap_inf_fraggrenade"
WeaponAmmo     = 4
WeaponChannel  = 1
This works for me, although the animations are wrong (force push). Someone will have to help you there.
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: Two modding questions

Post by woner11 »

If I'm not mistaken, you will have to make custom animations for the characters with the grenade throw in instead of force push or whatever.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 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: Two modding questions

Post by Silas »

Well, i can't make anims on my own, so ill just ignore it i guess.

So i should give the sword, lightsaber, etc. ammo to fix it? im a little confused
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Two modding questions

Post by Maveritchell »

Melee animationsets use the force power animation for the secondary (offhand) weapon. No way around that unless you want to either make custom animationbanks or edit the .combo to change the force power animation to the lightsaber throw animation. The second is much easier, just change the lines in the combo (there are two, right at the top) that say:

Code: Select all

OffhandAnimation("stand_useforce", "FIRE2");
OffhandAnimation("stand_useforce", "CHARGE");
to:

Code: Select all

OffhandAnimation("stand_throw", "FIRE2");
OffhandAnimation("stand_throw", "CHARGE");
To do the second, you need to not use the commander animationbank (Delete this line: "AnimationName = "clonecommander"").
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 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: Two modding questions

Post by Silas »

well, i got my clone ingame with the right animations. but when i switched the force to throw thing, nothign changed except when i throw a grenade using "r", its more realistic. I still can't use the right mouse button to throw a 'nade
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Two modding questions

Post by Maveritchell »

Do you have this unit with a ranged weapon and a melee weapon?
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 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: Two modding questions

Post by Silas »

Well, right now yes. in the end i plan to have the following weapons:
doublesaber
grenade
droideka shield
buff: defense

i have the chaingun right now, but im gonna remove it.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Two modding questions

Post by Maveritchell »

Then remove it. Problem solved. (It's an issue related to having another primary weapon with a melee weapon.)
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 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: Two modding questions

Post by Silas »

sounds good. well, with that problem fixed, another pops up, lol. my game crashes on loading. when i look at the log, i have no level 3 arrors, only 2's. this is the main one i am getting:

Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 108

the number goes from 108 or whatever to about 403.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Two modding questions

Post by Teancum »

SetMemoryPoolSize("SoldierAnimation", 1800)


Add that to the bottom of the memory pools in your LUA. I always use 1800, that way no matter how many units I have there's always enough memory (and it's not very expensive on memory)
Post Reply