My lightsaber blade-color experiments...

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

Schizo

My lightsaber blade-color experiments...

Post by Schizo »

Well, I was just fiddling around with the lightsaber ODFs, and I tried to change around the colors of the saber a bit. I basically took the "bluelightsabre.tga", changed the color to orange, then replaced the "bluelightsabre" blade texture in the lightsaber's ODF with "orangesaber". Then, I put in the code "255 140 0 128" for the trail color so it's orange. Munged it, tested it, and it worked:

Image
Image

But, as you can see here, there's a slight problem.

Image

The blade's just a block! Now, I know for a fact that I did everything just right. I mean, the texture looks exactly like any of the other blades, and as you can see, the colors are all correct. But, I don't know why, but the blade just isn't... well... a blade. I don't know... I might be missing something. Might be in the "Common" assets. I might have to look into it. But, as you can see, I've made fairly good progress. If I can figure out why the blades aren't working in the right shape and fix it, I might release a little source pack for some different colored lightsabers.
darth_chooie

Post by darth_chooie »

It has to do with a Shader type file, because if you look at the other sabers, they all glow.
Schizo

Post by Schizo »

Hmm... you might be right. I'll try to find which file it is. Probably somewhere in there.

EDIT: Nevermind, I think I found the problem. I forgot to put in a .tga.option file. I looked at the "bluelightsabre.tga.option" file, and it contains a line that says "boarderalpha = 0". I think that's our glow effect, right there.
Last edited by Schizo on Sun Feb 26, 2006 9:44 pm, edited 1 time in total.
RevanSithLord
Sith Master
Sith Master
Posts: 2636
Joined: Mon Nov 07, 2005 12:40 am
Projects :: Designated Days + LFC + GT vs SWBFC
Games I'm Playing :: FO3 + FO New Vegas
xbox live or psn: Master Revan
Location: GDSS Philadelphia

Post by RevanSithLord »

Looks great. You should make a total jedi vs sith war or, Jedi/Clones vs Battledroids or something. :P Plus, I sense a Jedi wookiee. :P
Schizo

Post by Schizo »

Nope, turns out adding an "orangesaber.tga.option" file didn't do any good. Still a block. I'm baffled... how did they get their blades to work right?
User avatar
EraOfDesann
Jedi Admin
Jedi Admin
Posts: 2170
Joined: Mon May 30, 2005 5:22 pm
Location: North Texas
Contact:

Post by EraOfDesann »

This happens when you alter lasers, explosions, and lights. The early version of Majin's Thule Moon map had the same problems.
darth_chooie

Post by darth_chooie »

What folder do you put modified textures in? I would like to make some new colored sabers for my map :)
Schizo

Post by Schizo »

Desann, I know what you mean. I tried this same thing in BF1 (trying to change the green saber to a yellow one), and the same thing happened. I was hoping this time, since the Jedis and lightsabers and everything are more supported and customizable, I could pull it off. It's disappointing, really... though, there's got to be some way to fix it. I mean, the devs did it, we might be able to.

Chooie, I basically just ported in the entire Rep side into my project's side folder. Then, in the Mission.lua, I simply put "dc:" infront of "SIDE\\rep.lvl",", so it was "ReadDataFile("dc:SIDE\\rep.lvl",". Then I just worked from there, inserting my different lightsaber blade textures and editing the ODF files to call for them. But, for some reason, lights don't really enjoy being messed around with... :?
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

Post by Teancum »

Do you have an alpha channel on your new texture?
Schizo

Post by Schizo »

If you mean the line in the .tga.option file that says "Boarderalpha", then yes. If not, then no, no I don't.
Lord-Bandu

Post by Lord-Bandu »

if you edited the actual TGA texture you must save it as 32bit not 24bit .

If youve done it in the ODF with the RGBA try messing with the 4th number ( A ) .... if it only has RGB then I dont know .
Schizo

Post by Schizo »

Well, since I needed to use an image converter to get it to .tga format, I couldn't exactly pick 32 bits or 24 bits. So, I'm guessing it's not 32 bits then. Anyway I can change that?
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

Post by Teancum »

No -- the TGA actually needs it's own alpha channel. That's what gets rid of the boxy look.
Schizo

Post by Schizo »

Which is what, exactly?
darth_chooie

Post by darth_chooie »

you would need to copy the original TGA, and save it as orangesaber.tga, then open it in PS or similar program, then recolor it then save it. If you dont have PS i could save it with an alpha channel if you need ;)
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

Post by Teancum »

@ Schizo -- try this one (right click, save as)

http://portfolio.iu.edu/smmelton/orangelightsabre.tga
Schizo

Post by Schizo »

It worked. :D

Image

Thanks for your help, Tean.
darth_chooie

Post by darth_chooie »

looks very nice, you should try making some other shades too, maybe me and you could make a mod with this, i could skin some new jedi and you could make new sabers :)
RevanSithLord
Sith Master
Sith Master
Posts: 2636
Joined: Mon Nov 07, 2005 12:40 am
Projects :: Designated Days + LFC + GT vs SWBFC
Games I'm Playing :: FO3 + FO New Vegas
xbox live or psn: Master Revan
Location: GDSS Philadelphia

Post by RevanSithLord »

Oooh, I want to help skin with you guys too. :) Looks very nice btw. Schizo, maybe you can make a map based on Thule (featured in Star Wars the Clone Wars console game) but it's when Mace was talking about the great sith war and it showed thousands of Jedi/sith on the holoscreen on the ancient battlefield. That'd make an awesome fight right there! :D
Schizo

Post by Schizo »

I'm thinking about making some all-out Jedi vs Sith war maps. Battle of Ruusan, anyone? :P
Post Reply