Two different colored shields [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
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Two different colored shields [Solved]

Post by LitFam »

Hello modding community,

Does anyone know how to have two different colored shields in a map, the first colored shield I am using the stock one in the PC folder in effects, however, I made and renamed the .fx file. I can not get the second shield working every time I edit the fx, .tga, .msh file relating to the new shield FX, the shield does not appear in the game, but it works.
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 2 times in total.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

You have to create another .fx file that uses another .tga (I know that you said that you did it but that's how we do it).

Any errors ? Can you send the code in your .fx file ? Thanks ! (and btw check if your effect is named right in your weapon .odf file)
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:You have to create another .fx file that uses another .tga (I know that you said that you did it but that's how we do it).

Any errors ? Can you send the code in your .fx file ? Thanks ! (and btw check if your effect is named right in your weapon .odf file)
I did create another .fx file, also I am using you auto turret shield tutorial it is very useful!

Code: Select all

Shield("DroidekaShield")
{
	Type("droideka");
	Texture("dis_inf_droideka_shield");
	Color(96, 160, 192, 255);
	SpecularColor(216, 240, 255);
	ViewAngleFactor(1.5);
	Radius(1.25);
	Height(1.25);
	TurnOnTime(0.15);
	TurnOffTime(0.15);
	ScrollRate(1.0);
}
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

maybe replace "dis_inf_droideka_shield" by "cis_inf_putsomethinghere"

And can you post the odf for the shield (the weapon odf, in sides/cis/odf) please ? Thanks :)
I am using you auto turret shield tutorial it is very useful!
Thanks man :D
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

Shield ODF

I posted the assets

Link: REMOVED

Code: Select all

[WeaponClass]
ClassLabel          = "shield"

[Properties]
Label               = "Shield"

RoundsPerClip       = "1"
ReloadTime          = "0.0"

MaxShield           = 8000
AddShield           = 0
AddShieldOff        = 1250

ShieldOffset        = "0.0 1.0 0.125"
ShieldRadius        = 1.25

FireSound           = "cis_droideka_shield_on"
FireEmptySound      = ""
FireLoopSound       = ""
ReloadSound         = ""
ChargeSound         = ""
ChangeModeSound     = ""
WeaponChangeSound   = ""
//ShieldSound           = "cis_droideka_shield"
//ShieldSound         = "droid_fx7_hum"
ShieldOffSound      = ""

ShieldEffect        = "rroidekashield"
I just tried this
maybe replace "dis_inf_droideka_shield" by "cis_inf_putsomethinghere"
it did not work.
Last edited by LitFam on Thu Jul 06, 2017 9:26 am, edited 2 times in total.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

well the code of the weapon odf is missing x)
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:well the code of the weapon odf is missing x)
wait do you want every asset of the auto turret posted :shock:
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

yep if possible :lol:
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:yep if possible :lol:
Link: REMOVED

I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my edited textures.
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 1 time in total.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

LitFam wrote: I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my special textures.
Alright don't worry I don't need these files ;)
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:
LitFam wrote: I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my special textures.
Alright don't worry I don't need these files ;)
If you fix this or anyone else I will credit you for my mod, also please provide a new link of the updated assets when corrected.

Link: REMOVED

(Don't forget since I did not provide the auto turret .msh or .tga file you must use the stock one in order to test the fixes in the game.)
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 1 time in total.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

I tried and nothing works... But how is it possible to have the shield working without the effect ?? :shock:
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:I tried and nothing works... But how is it possible to have the shield working without the effect ?? :shock:
I don't know? :shock:

I solved it myself with some poking around.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

LitFam wrote:
I solved it myself with some poking around.
How ? =D
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Two different colored shields

Post by LitFam »

CT108 wrote:
LitFam wrote:
I solved it myself with some poking around.
How ? =D
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Two different colored shields

Post by CT108 »

LitFam wrote:
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.
Alright, but the problem was weird x)
Post Reply