Jump to content


Photo

TSL Darksaber


  • Please log in to reply
15 replies to this topic

#1 JDub96

JDub96

    Jedi Apprentice

  • Members
  • PipPip
  • 26 posts

Posted 13 March 2018 - 07:08 PM

So... while I do take the Clone Wars/Rebels canon with a grain of salt, I did enjoy the idea of the darksaber. However, since I acknowledge the EU as the true canon, it seems that Mira was the first Mandalorian Jedi on record. So I thought it might be interesting to have the Darksaber implemented in TSL for Mira's use. No idea if making such a lightsaber is actually possible on the TSL engine, but if anyone thinks it's a possibility....


For the Jedi!


#2 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 411 posts

Posted 13 March 2018 - 07:29 PM

There were mods that attempted it in the past, but it was never really feasible as you suspected. However, that may have changed thanks to recent tool updates. The main problem before was that it was difficult to compile a lightsaber model - it could only be done in a specific, limited way or else the blending mode of the blade would break, making the game render it behind things instead of on top of things. So we were mostly limited to changing the hilt and nothing else. But that has changed.

 

I've actually been thinking about making one. I haven't attempted it yet because I'm not a very good modeler and would need some practice before taking a shot at the hilt (the geometry isn't too complicated, but the texture mapping is a bit). But I do have a pretty good idea of how to make the blade.

 

The way I'd do it is I'd keep the existing saber blades, using a silver texture, and I'd add another mesh that would be solid black (illumination values set to 0). The trick is getting that to animate properly, but I believe that is doable with the new tools.


  • jc2 likes this

#3 Roth9

Roth9

    Jedi Knight

  • Members
  • PipPipPipPip
  • 174 posts

Posted 13 March 2018 - 10:28 PM

I made one darksaber for TSL, the hilt is something between the darksaber of clone wars and rebels, the blade I was unable to make the same from both series, so I gave it a regular one but with a black color with white contour. I gave it to Mandalore and during the fight against Hanhar close to the ending I gave to Mira.

 

I will try to upload an image latter.



#4 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 411 posts

Posted 13 March 2018 - 10:36 PM

Here's my proof of concept:

 



#5 Domino5555

Domino5555

    Jedi Knight

  • Members
  • PipPipPipPip
  • 383 posts
  • LocationColumbia, SC

Posted 13 March 2018 - 10:37 PM

Yeah, I watched it as soon as I got the notification from YouTube.

 

P.S. Who do you think the voice actress for the female PC is?



#6 LucyTheAlien

LucyTheAlien

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 906 posts
  • LocationNorthern Ireland

Posted 14 March 2018 - 01:20 AM

Here's my proof of concept:


That actually looks really good if you ask me, maybe these new tools can finally fix the blade tips too.
One will make the choice- all will make the journey.

#7 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 411 posts

Posted 14 March 2018 - 10:45 PM

Well, I finished it!

 

I've submitted the K1 version (just waiting for administrative oversight now) and I'll probably send the K2 version along later today. Getting it into the game is a bit more involved because of bad file naming practices.

 

For future reference, I'll go over how I managed the blade. There are three key points that made it possible:

  1. The Darksaber must have two sets of saber blades. One is for the black core, the other for the white outline. Past attempts in other mods have utilized a blade texture with both the black and white on it - which by necessity loses the additive blending that makes the sabers glow - or a black mesh for the core - which won't animate properly. Adding more blades wasn't really an option before, but it was made possible thanks to new tools. For my Darksaber, I simply cloned all the saber blades and changed the texture.
  2. I noticed the blades on the game saber model w_lghtsbr_001 weren't quite right. Some of them were not saber objects, but rather plain old trimeshes. I believe that was causing some other blending problems. I resolved this by deleting the offending objects and putting proper saber objects (cloned one of the good ones) in their places.
  3. The dark blades must be at the bottom of the model hierarchy. This part is key. The white set of blades has an additive property, so the white gets added to whatever's rendered behind it. Normally that would mean the white would be drawn on top of the black, rather than the reverse that we want. Or since the two sets of blades occupy the same space, there would be other issues such as Z-fighting. Putting the dark blades lower in the hierarchy is a sort of exploit to avoid all those problems. Objects with this additive property will be occluded by any objects that were rendered more recently, rather than blending with them. It's actually not supposed to work this way, but it does. That means if the dark set of blades is lower in the model's hieraarchy, the game will render the white blades first, then the dark blades, and hey, the dark blades set is the more recent one, so it'll be rendered on top of the white. To ensure the hierarchy order is the way we want it, we have to link the blades to the model base in order - first the white set, then the dark set. If you load the model in MDLEdit, you should see the dark blade objects way at the bottom. They must be below the white ones for this to work.

I hope that helps, hypothetical future people. :D

 

 

P.S. Who do you think the voice actress for the female PC is?

No idea. :question:



#8 The Cyber Pyro

The Cyber Pyro

    Jedi Apprentice

  • Members
  • PipPip
  • 20 posts

Posted 15 March 2018 - 12:04 AM

I think if you REALLY want this mod to stand out, make it restricted to certain characters For KOTOR 1, how about restricting it to the PC and Canderous only since they've fought in the Mandalorian Wars (if restricting items to certain characters is a thing in K1 anyway) and for TSL, restrict it to Mira and Mandalore since they're both Mandalorian and the PC doesn't have as much experience with Mandalorian fighting as K1's PC (and the TSL PC is buffed enough). You don't HAVE to do it this way, of course. It's just my silly personal opinion! <P

 

...wow I sound like a complete nerd, don't I? ._.'



#9 JDub96

JDub96

    Jedi Apprentice

  • Members
  • PipPip
  • 26 posts

Posted 15 March 2018 - 08:41 AM

Not to push my luck or anything... but I don't suppose you were able to integrate the SFX the Darksaber uses in the Clone Wars?


For the Jedi!


#10 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 411 posts

Posted 15 March 2018 - 02:38 PM

No, that wouldn't be possible without making a new item type, and then you wouldn't be able to use Force jump with it, or deflect blasters, or receive bonuses from lightsaber feats.



#11 JDub96

JDub96

    Jedi Apprentice

  • Members
  • PipPip
  • 26 posts

Posted 16 March 2018 - 06:08 AM

These new modding tools... are they capable of say... adding a new companion slot to the original amount?


For the Jedi!


#12 Sith Holocron

Sith Holocron

    M4-78

  • Administrators
  • 4,354 posts
  • LocationKodiak, AK (Hoth)

Posted 16 March 2018 - 06:09 AM

These new modding tools... are they capable of say... adding a new companion slot to the original amount?

:offtopic:


My Mods . . . the complete list Please leave reviews as I like to know when I've done something right, for a change.

#13 jc2

jc2

    Kyramud

  • Members
  • PipPipPipPipPip
  • 434 posts
  • LocationAlderaan 19 BBY (USA CT)

Posted 16 March 2018 - 06:32 AM

These new modding tools... are they capable of say... adding a new companion slot to the original amount?

Don't kill me though.....

 

 

No, it's hardcoded into the game how many companions you can have, in both games. But as always you can recruit other characters instead, going further off topic, would be neat to have some characters on the Ebon Hawk that were not officially companions, but still along for the ride. (basically what ME has).


KOTOR FOR LIFE

"To ponder and find relevance, one must seek out a quote," because his own words lack the credibility to endeavor to explain his rather odd disposition.

 

Grey Jedi "Shanilia" > http://deadlystream..../1044-shanilia/

 

Quick Link to my mods > http://deadlystream....7d5a7b201f4077f

 

Thank you FS for past and current modding help! 


#14 JDub96

JDub96

    Jedi Apprentice

  • Members
  • PipPip
  • 26 posts

Posted 16 March 2018 - 07:15 AM

Sorry. I wasn't sure if it was necessarily off-topic since the tools were referenced earlier in the post, and I wasn't sure the question warranted a new thread of its own. Won't happen again... except this apology.


For the Jedi!


#15 LucyTheAlien

LucyTheAlien

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 906 posts
  • LocationNorthern Ireland

Posted 16 March 2018 - 07:08 PM

Don't kill me though.....


No, it's hardcoded into the game how many companions you can have, in both games. But as always you can recruit other characters instead, going further off topic, would be neat to have some characters on the Ebon Hawk that were not officially companions, but still along for the ride. (basically what ME has).


Aka what the Disciple should have been IMO.
One will make the choice- all will make the journey.

#16 Roth9

Roth9

    Jedi Knight

  • Members
  • PipPipPipPip
  • 174 posts

Posted 17 March 2018 - 04:28 AM

Well, I finished it!

 

I've submitted the K1 version (just waiting for administrative oversight now) and I'll probably send the K2 version along later today. Getting it into the game is a bit more involved because of bad file naming practices.

Just wanted to thank you. I have been wanting this hilt for some time, I even made one but yours is much better. So, thanks again.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users