Jump to content

Home

Creating a new stunbaton: FX problem


Gavroche

Recommended Posts

Yep modders, I've a question which I think will be quickly answered as it's something quite simple.

 

I'm trying to make a new stun baton (w_melee_60.uti), with it's own skin (w_Stunbaton_060.tga). Of course, I have to create a .mdl, to edit it with Hex Editor to change any "w_Stunbaton_001" into "w_Stunbaton_060", so I did this.

Still here? Cool.

While doing this, I noticed in the Hex code something called "fx_tex_11". I checked with KotOR Tool: this is the texture of the blue lightnings glowing on stun batons. I n00bily thought "Hey, let's do something cool and turn in into red". So I extract fx_tex_11.tga and the .txi which comes along, I Gimp it a bit, call it fx_tex_60.tga, go back to the Hex code of the .mdl and change all the tex_11 by tex_60.

SO

When I test it in-game, the stun baton as its own skin, the lightnings are red but... They aren't moving. They are static. All the other stun batons have blue and moving lightnings, mine has static red ones.

 

Where is the problem? Is it in the .mdl I edited? In the .txi I extracted?

Link to comment
Share on other sites

the lightnings are red but... They aren't moving. They are static. All the other stun batons have blue and moving lightnings, mine has static red ones.

 

Where is the problem? Is it in the .mdl I edited? In the .txi I extracted?

 

What does the txi file for your modified texture look like? It should be:

proceduretype cycle
numx 4
numy 4
fps 32
blending additive

 

If it's not then that would likely be the problem :)

Link to comment
Share on other sites

... Okaaay indeed that's not exactly that :p

What my .txi contains is

2

Not really the same thing '^^

 

I can't understand why I don't have the right thing. When I double-click on the .tpc file in the KotOR Tool, I do have this.

I guess I have to use other tools when it comes to extracting .txi files... Can't find one on SWK though.

 

Thanks a lot stoffe!

 

<edit />Indeed, works a lot better this way.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...