LucasForums (
-   Holowan Laboratories (
-   -   [WIP] Ӄhrizby's Mod Projects Thread (

Ӄhrizby 06-26-2009 10:26 PM

Ӄhrizby's Mod Projects Thread
Hello, everyone. I made an HK-47 Melee Mod (See this thread), and was wondering if there's anybody who's skilled in modeling, bones, weighting, etc. with gmax who could help work out the bugs.

Mostly the problem is clipping, elbows floating in space, shoulders going through body, etc. If it can't be fixed, I guess I'll just have to release it as-is.

Trench 06-26-2009 11:35 PM

This mod is one of the best I've seen, and if someone were to fix the animation issues it just might take first place. I took a look at the model, but due to my lack of experience with bone structures and whatnot I was unable to do anything.

Darth Cryptic 06-27-2009 11:32 PM

I have one question, ran the saved game, and despite taking a lot of hits from all three sith HK suffered no damage. There any lingering Zalbar in him besides the moves?Si

Ӄhrizby 06-28-2009 01:09 AM

Oh, forgot, I probably have the invulnerability cheat on in that save, because I didn't buff up HK's stats, and he was pretty weak.

Darth Cryptic 06-28-2009 08:27 AM

lol, ok. I'll do a cheat free run then.

Ӄhrizby 07-01-2009 01:47 PM


There any lingering Zalbar in him besides the moves?
Alright, I found one other thing left over from him; His shadow :).

Not sure I can fix that, though, without messing up the bones and stuff.

Ӄhrizby 07-04-2009 02:08 PM

Okay, this WIP is no longer IP. It's finished, and a majority of the problems have been resolved. It's submitted to KotORFiles, and should show up sometime soon. Thanks, everyone!

Edit: Wow, that was fast. Thanks Marius Fett!

Marius Fett 07-04-2009 02:19 PM

KotORFiles link: http://knightsoftheoldrepublic.filef...ber_Mod;100713


TbirdMan 08-29-2009 01:06 AM

Any chance this could be converted to Kotor II?

Godric Volturi 08-29-2009 10:59 AM

Well, I suppose in theory it could be, if the original modder were to do everything he did with Zaalbar's animations and stuff with the other wookie (forgot his name. -.-) in the game... I'm not sure however, as I have no clue how to do all this stuff.

Darth Cryptic 08-29-2009 03:31 PM

He was thinking about doing it himself, but RL was slowing him down. He did however tell me how he made it work. I think it will be ok if i post his directions here so someone could do it.


Originally Posted by Ӄhrizby
I used gmax. I imported both Zaalbar's and HK-47's Models in. Then I started with one place, like the wookiee torso, and under editable mesh, selected all, and used hide mesh. Then I attached to it the equivalent on the HK-model, so the bones on the wookiee model are still there. Then I selected all the remaining mesh (newly attached) and moved it down, or left, or whatever, it doesn't matter, enough to get it away from all the other mesh. Use the type in at the bottom to get it exact, like about 30. Then apply the skin. On some models, like wookiee and PC models, weighting can be a real pain, but on HK-47 it's mostly in 1.0 weights. Select the appropriate bone, and under abs. effect, change it to 1.0. Most of these are pretty obvious where they apply, but if you need a reference, open up another gmax screen, import HK-47, and select skins, and check it out.

I think that's mostly it:D! Guess it turned into a tutorial . . . sorry if it's hard to understand, I whipped it up in a hurry, and from memory; I don't have access to gmax, or anything else, for that matter (I'm out of the country for a couple of weeks). Also, this is assuming you know how to model/weight in gmax, and I'm not sure how much you know. If you don't know something, or need clarification, let me know and I can go into more detail.

D4R7H 5K3L370R 09-01-2009 03:07 PM

this is rad!

thanx for all the work and effort you put into this, i've wanted the option to use lightsabers available to hk for a long time now. ;D
it only makes sense seeing as he's a sith lords' assassin droid.

Ӄhrizby 09-17-2009 10:26 PM

If anyone's still reading this thread . . .

Thanks D4R7H 5K3L370R!

Anyone who wants it in KotOR II:

Yes, I haven't had time lately, but I may get around to it eventually . . .
If anyone does want to try, the instructions I sent Darth Cryptic are outdated now, and probably sketchy in the first place, I've found better ways to do it, so PM me if you want them.

Thanks everyone!

Edit: I finally got the k2 version done.

Ӄhrizby 11-27-2009 02:45 PM

WIP Change
Alright, sorry for the double-post, but I'm going to announce that this thread will now be for my projects/WIPs, not just the HK mods. Here I'll announce stuff and ask questions/get feedback for all my projects, rather than making more threads.

Quanon 11-27-2009 03:21 PM

Hell, it's about time!
*fat sigar smoke - helm closes*

Ӄhrizby 11-27-2009 04:10 PM

Switching Models' Animations Tutorial
Okay, I thought (and people requested ;)) that I'd share how I changed animations between models. I went through a lot of trial and error to get to this procedure, as there aren't many tutorials at all on this topic, but I'm sure some easier shortcuts and ways to refine it may be found; however, this is how I've managed to get it to work so far. Let me know if you find a better way. This works for both the original KotOR and TSL. Note that this is not creating animations, or replacing/adding some animations, but replacing all of the animations on a model. Now that I've had my little monologue, let's get to work.

What you'll need:
gmax or 3dsmax (Modeling program of your choice. I use gmax because it's free, but it should be basically the same in 3dsmax.)
And the NWMax plugin
KotOR Tool
Recommended: KotOR Save Game Editor
Patience and some spare time :)

Save your models often, and with different names. If you mess up, or gmax messes up your files (I've had it happen), it's nice not to have to start over.

Here's an overview of what I believe we're doing. There are six 'super models' in the game for humanoid models, but in the end they all connect to one, 's_male01'. The super models contain all the animations you can use, or at least that the PC uses. Most of the other models use these models' animations. Actually, their bones do. Their skin is weighted to follow the bones. However, some models have their own animations stored in their own model instead, such as HK-47 and Nihilus, as well as all creatures. For example, HK-47 was made to move robotically, so the programmers gave him his own set of animations, and deemed it unnecessary to give him melee animations. My mod put his skin over a Wookiee's bones and gave him melee animations, but you may notice that he moves more like a Wookiee than a droid as a consequence.

SMAT: Part 1: Prep

Alright, let's get started. First you need to find your models. You need the model you want to put animations on, and one model with all the animations already on it. If the model you want animations on is an only body model (no head on it), you should extract a player body, like clothing or an armor. This ensures that you can change clothing/heads on the model. To make it easy, let's use PMBAM, the basic male 'underwear' model. If your unanimated (or underanimated) model is female, you can use PFBAM if it makes you feel good, but I don't think it'll make any difference. However, if your unanimated model includes a head, you need a model with animations and a head. For KotOR, I've used the Wookiee model, and for TSL I've used the Wookiee model and the Weequay model. I find the Weequay model superior because it doesn't have a hunched posture like the Wookiee, which you can see I used in my HK-47 Melee/Saber Mods. If the model you want to give animations has a cape, I'd use the Jedi robe model, which also has a robe/cape. You can use any model if you check them by this method first: import them into gmax/3dsmax. Choose the 'modify' tab and select the Aurorabase (named after the model). Look for 'super' (Screenie 1). If it says 'NULL', this model has it's own animations and can't be used for animating another model. Also, I'd recommend extracting the textures of your models into the same folder as them. It just helps to see what's what.

SMAT: Part 2: Setting the Bones

Now that you have chosen your models, extract them with KotOR Tool and compile them with MDLOps. Once you have your -ascii models, open two windows of NWMax. Yes, two (2). In one, import your unanimated model, the one you want to put animations on. In the other, import the ones with the animations you want. Just the geo only. Be sure to click 'set environ' in both windows (Also screenie 1). For now, select the skin (all textured parts, be sure to include the eyes, teeth, and tongue). In the already animated model, delete it. You won't need it, and it's easy to forget to delete it, which makes a mess. In the unanimated model, make a group out of it. Type an easy-to-remember name (how many of you will choose 'skin'? :)) in the box in the upper toolbar and hit enter (See Screenie 2). Now you can select it all at once by clicking that name. Do that now, and hide it. You'll be left with just the bones and helpers. Now you need to get the bones of the animated model into the same position as that of the unanimated model. This prevents warping and stretching in the skin, as well as oddly placed and randomly floating parts. Usually this happens around the fingers. Anyway, I like to start with the torso, and work my way down the arms and legs. In the window containing the animated model, choose the move tool and select your first bone. Click the 'unlink' function (Screenie 3). Along the bottom, you can see the location of the object. Copy all three numbers from the unanimated model and paste them into that spot on the same bone on the animated model. The object should move to the same location as it is in the unanimated model. You'll notice that some other bones move with it. That's okay, as long as you remember to unlink the one you're moving. Otherwise it'll try to move and stay linked at the same time, and just rotate randomly. After you move a bone, you can hide it, just to get them out of the way. Do this until you've moved every single bone into place. Also remember to do this with the weapon placement helpers, the blue boxes usually named 'rhand' and 'lhand', or you'll have floating weapons. Usually I don't worry about rotation, but in the case of the weapon placement helpers I rotate them the same way they are in the original model, so the weapons point in the correct direction. Now you're set for the fun part, weighting the skin! (Don't get too excited, there)

SMAT: Part 3: Skinning

Remember the skin that we hid in the unanimated model at the beginning? Time to bring it back. Flip to the unanimated model, right click and hit 'unhide all'. If you haven't done it yet, save this. Now go to your animated model window. Select everything, and group it under a good name. Hide it all. Click file > merge. Select the other model you saved, and select all the skin geometry; head, torso, etc. Be sure to include the eyes, teeth, and tongue. When you open it, click 'yes to all' if a dialogue box pops up. This keeps everything pretty much where it should be. You'll notice that gmax didn't obey you; there's a lot of bones it imported too! Not to worry, that's supposed to happen. Those are the bones that the skin is currently attached to. Don't delete them! Normally weighting is a tedious, time consuming task, but I've found fairly simple way to shortcut this, so hold onto those bones. Select the skin again, and group it in this window the same way it was in your other one. Now hide it. Group the remaining bones that were imported to something that'll make you remember which ones they are, so you can get rid of them later. Something like 'trash bones' or so. Now unhide everything. Hide just these new bones, so you're left with the new skin and the original bones. Often times the eyes/teeth/tongue (what a troublesome lot!) are out of place, so you'll need to take a look at your unanimated model to get them in the correct place. Move these the same way you did the bones. Now we can start actually taking the skin off it's old bones and putting it on it's new body. Ugh, that sounds gruesome, doesn't it? Anyway, select a piece of skin, any piece; it may be distorted and mangled looking, but double-click on the 'editable mesh' modifier and it should snap into shape. No, we're not actually going to edit it, but we need it selected, with the blue vertices showing, or else what we're going to do won't work. Now, with the vertices still showing, select the 'skin' modifier. Now click 'edit envelopes'. It should overlay the model in blue, with different shades of red and yellow where the skin is attached to a certain bone. In the list on the right, select the top bone. Delete it. Only delete that bone. Now click 'add bone', and select the exact same one as you just deleted. Actually, if you remember, the one it was originally weighted to is hidden, so the one you selected is the same one of the original bones from the animated model. When you add the bone, you should see that the same colors as were there before you deleted the old ones reappeared. If you have the vertices showing, when you delete a bone then add a new one, the new one takes on all the weighting left in the area around it . . . which are the places now vacant from the deleted bone. So you saved all the time of weighting the skin one vertex at a time, or the randomness painting the weights, which usually turn out horribly inaccurate, and got the weighting from one set of bones to another. Do this to every bone on the list, then move on to each other piece of skin. Well, that doesn't include the eyes or teeth (But does include the tongue this time). They're rather special, so we'll get to them later. Just hide them if you want and get back to skinning. I'd recommend saving a lot, 'cause at least for me, gmax tends to crash sometimes when doing skins. Once you do all the bones in all the skins, unhide everything. Now select the new 'trash' bones and delete them. If you see sudden distortion among the skin, you missed some bones. Go back and try it again. You did save, right? ;) If nothing changed (except for the bones disappearing of course), then you did good. At least, as far as we know; often things happen differently in-game.

SMAT: Part 4: Re-Linking

Now we get to re-link everything. All the pieces in a model are linked to each other so they move together; for example, when an arm moves up, the hand follows it. When we rearranged the bones, you should've unlinked mostly everything so they can move without changing alignment. Now we need to fix that. Refer to you unanimated model window for what's linked to what (look to the right panel when an object is selected), and link the one in the animated model that way. Do this by selecting your bone, clicking 'link' (next to 'unlink', big surprise) and selecting the parent by name (hotkey 'h'). It'll be fairly easy to know if you missed a piece in-game, because that part will stand static in one place while the rest of the model twists and turns past it. When you've linked every bone the way they should be, select all of the skin except for the eyes and teeth. Now link the selected parts to your aurorabase (The blue box on the bottom named after you model). Otherwise, the skin will be invisible. Next, select all pieces of your eyes and your upper teeth and link them to the 'head_g', and link your lower teeth to 'f_jaw_g'. That's all for linking!

SMAT: Part 5: Finishing Up

Next is exporting and preparing our finished model. Select your aurorabase. It's currently named after the model you used to steal animations from, the pre-animated model. Rename it to be the model whose skin is on it, the previously unanimated model. Now click 'export geom only', to a different location than your original files. The exported file will be a .mdl. But it isn't really. Gmax deals in -ascii.mdl files. So rename this file to filename-ascii.mdl. That's just adding "-ascii" before the extension. Now put it in the same location as your original .mdl and .mdx files of the originally animated model, not the model you used the skin of. If there's already any -ascii models from when you compiled models at the beginning, delete them. Rename the original .mdl and .mdx to that of the originally unanimated model. Now open MDLOps. Select your new -ascii file and click 'read and write'. You should have 2 new files in the same directory labeled filename-ascii-k2-bin.mdl and an .mdx of the same name. This example is for TSL, but if this is a model for the original KotOR, it'll have 'k1' in it's name instead of 'k2'. Move these two files to your override folder. Remove the 'ascii-k2-bin'. It should now be named the same thing as the original files you extracted. Congrats! Now you have your model, complete with animations! Drop it in the override, change your appearance with KSE if necessary, and fire it up! We'll soon know how closely you paid attention...

SMAT: That's All!

Here's some common problems and possible solutions that I encountered:

Nothing at all shows up in-game -- You probably forgot to link the skin to the aurorabase.

There are no animations on just the arm/leg/upper torso etc. -- If you didn't link one piece, it affects the whole section. For example, if you didn't link the bicep to the collar, the whole arm won't work.

Thanks for taking the time to read all this. I hope it helps out some people, though I know that there's only so many models that fit the criteria for this. If you have any questions or comments, ask in my thread. Thanks everyone for your support, and to the whole community for making modding such a great thing!


Marius Fett 11-27-2009 06:21 PM

Great tutorial, Ӄhrizby. :)

I posted it in the tutorial forum, for easy access and use:

Ӄhrizby 11-27-2009 11:15 PM

Thanks, Marius! :)

Ӄhrizby 11-29-2009 10:07 PM

Alright, here's a question for anyone who might know:

How do you apply animated textures to a model? For example, if I tried to apply the stun baton animated texture to anything else it simply shows up in-game as the grid of pictures shown in the .tga, but it isn't animated. I can't find anything already here for this, so any help is appreciated.

Quanon 11-30-2009 05:08 AM

Ooh, the animation is done via the .TXI file.
Let me go and grab one from my own.

Here it is:

proceduretype cycle
defaultwidth 256
defaultheight 256
numx 4
numy 4
fps 15
blending additive
decal 1

Okay; you mentioned it yourself, the texture is like in a grid, that is what the Numx and NumY are for.
Colums and rows, stuff like that :p
Then there is the speed => fps.

I forgot to mention the Width and Height, this is of the full texture, not just one frame of it.
In my example given, I got 16 frames for my animation ( 4 x 4 =16)

When you UVWmap a texture like this to a 3D object do it to its full size, not 1 frame.
Else you'll get funky stuff, know this from own experience ;)

The last two bits, blending additive and Decal 1 are optionale.
This is for the see-through effect, well to get a nicer effect.

IIRC, this was for a force field I made. And you needed to see the player behind it.
IF you let Kotor use its standard transparent shader, you don't see the player and its party behind it.

I hope this made some sense. :lol:

Ӄhrizby 11-30-2009 11:57 PM

Quanon you are AWESOME!!! Thank you!!!

I could never figure out what to do with the code stuff and .txi's. I put the code in a .txt then renamed it to .txi and it worked fine.

Thanks a lot!

P.S. Yes that did make a lot of sense :lol: You explained it very well!

Quanon 12-01-2009 07:41 AM

Glad to be off help!

I found the texture animation thing in an old thread here on Holowan.
Search function can be off great help; to narrow done the massive amount of threads on this part of the forum :)

Another method used by the game is by animated UVWmaps, but saddly we don't have the tools, who can handle that info.

Ӄhrizby 12-01-2009 09:20 PM

Yeah I tried searching, that's where I found out about codes and .txi's and stuff first, but I found it confusing. I guess I wasn't sure what to do with the code, or how to use a .txi.

Thanks again!

Quanon 12-02-2009 08:09 AM

Héhéhé, I didn't get it right from the first go though :p

But its more fun when somebody can tell you what to do and get it right from the start.
Instead of researching a whole night on how it works :p

Ӄhrizby 12-20-2009 04:15 PM

Nihlus Mod
Alright, some of you may have seen this thread, which is about fixing Nihilus' animations. I know that's a while ago, and the mod's finished but as of yet unreleased. Unfortunately, I don't know if it works the way it should because I don't have a suitable saved game, and it doesn't work right when I use cheats because of the way my party is. So what I need is a person willing to test this mod with the following saved game:

Before you kill Nihilus', on Ravager.
Include Visas in your party (this is where I had trouble with cheats/KSE).

I have the model working, I just need to figure out some of the other stuff.
If you're interested, contact me and I'll fill you in on exactly what you need to do.

Edit: Never mind, I don't need testers anymore.


Quanon 12-20-2009 04:18 PM

Nice update, good to hear you're making good progress on this whole, switch skeletons business. Though I won't volunteer, got enough to do modding wise, I'm sure you know why ;)

Anyway, be prepared, your PM box might get swamped, putting out such a request. :lol:

Ӄhrizby 12-20-2009 04:43 PM

Yeah, I understand.

Normally I probably wouldn't make a request like this, but with the unique circumstances this testing requires, that the usual people can't meet right now, I figured somebody out there ought to be able to do it.

Alright I figured since I was finishing up the Nihilus' mod I'd feature another mod I'm working on. Alright, actually I'm working on a lot, many of which I've started and will probably not finish. But anyway, this is the one I chose, it's a model rather than the animation ones I've been doing lately;
Show spoiler

Alright, you'll probably recognize the Bryar pistol from the Jedi Knight games. And yes, I know that Inyri Forge made a model here. That's the original look and was used in the cinematics, and I suppose the "official" version, and it's a good mod by Inyri, but personally the one that always stuck in my mind is the Jedi Outcast version for some reason. The one on top is my model, the one on bottom is the original I'm aiming for. As you can see, it's still under construction (most notably on the front half) and untextured . . . Just thought I'd share, get some feedback :)

PS I still do need testers for the Nihilus mod, see a couple posts down :)

Marius Fett 12-21-2009 04:38 AM

Nice job on that gun model. I personally like the Bryar pistol a lot. :D

jonathan7 12-21-2009 06:38 PM


Originally Posted by Ӄhrizby (Post 2695292)
Alright, some of you may have seen this thread, which is about fixing Nihilus' animations. I know that's a while ago, and the mod's finished but as of yet unreleased. Unfortunately, I don't know if it works the way it should because I don't have a suitable saved game, and it doesn't work right when I use cheats because of the way my party is. So what I need is a person willing to test this mod with the following saved game:

Before you kill Nihilus', on Ravager.
Include Visas in your party (this is where I had trouble with cheats/KSE).

I have the model working, I just need to figure out some of the other stuff.
If you're interested, contact me and I'll fill you in on exactly what you need to do.


You may find this resource useful ;)

Ӄhrizby 12-22-2009 09:25 PM


Originally Posted by jonathan7 (Post 2695541)
You may find this resource useful ;)

Many thanks jonathan7, that's exactly what I needed!

No need for the testers now.

Ӄhrizby 12-24-2009 05:24 PM

Okay, update, now the Bryar is starting to look closer.

Show spoiler

I think the model's pretty much done, I'll redo the textures though, I just put those ones on to see how it'd look textured.

Sith Holocron 12-24-2009 06:12 PM

The original seems have some reflections as part of the model's skin. Will a - forgive if I'm getting this wrong - a baremetal shader be added to your model?

Trench 12-24-2009 07:34 PM

Nice work Ӄhrizby. Glad to hear you've finished up the Nihilus mod. And nice work on that Bryar Pistol ner'vod. I have to agree with Sith Holocron on adding the baremetal shader to the blaster.

Ӄhrizby 12-26-2009 12:41 PM

Alright, sorry it's taking so long to respond, I haven't been able to work on anything lately because I'm moving everything to a new laptop :)

I hadn't thought about the shader, but that is an excellent idea, I'll definitely do that. Thanks guys, I'm still new at this, so suggestions are great!

Ghost 01-03-2010 05:03 PM

wow, nice Bryar model. Keep up the good work Khrizby

Sith Holocron 01-27-2010 11:57 PM

Hey Ӄhrizby, congrats on having your Darth Nihilus Animation Fix being posted up on FileFront!

Link: Darth Nihilus Animation Fix

Any chance of posting a movie of this in action over at YouTube?

Ӄhrizby 01-28-2010 12:30 AM

Thank you Sith Holocron, I just found out myself :lol:

And I'll see what I can do about the video too :)

Quanon 01-28-2010 06:29 PM

Congrats on a mod well done :)
I really hope to see more of this awesome modding!

I wonder what you have in store, besides that good looking gun.
Really luuve these kind of threads, you just know you're in for something fantastic.

Ӄhrizby 01-29-2010 12:39 AM

Thanks a lot Quanon, that means a lot coming from a veteran such as yourself :)

Hmm as to what's in store . . . modding's kind of slowed down right now, but come summer I'm looking forward to getting started again. I've got a pretty huge list of just ideas I've thought up, at least 70 written out :lol: so who knows?

Ӄhrizby 01-29-2010 10:23 PM

Hey peoples! Okay, I just found a solution to a problem I had, I don't know if this is already out there, but just thought I'd post it in case anybody else has this problem too...

I just got a new laptop with Windows 7 (no more Vista :D), and put on the works for modding. To my dismay, when I tried to import any models, I got the following message:

CoCreateInstance() failed
Please check your registry entries
CLSID {F088EA74-2E87-11D3-B1F3-00C0F03C37D3}

This kind of put a stop to a lot of things. I couldn't find anything relating to this for a while, but I remembered vaguely reading something somewhere . . . I finally figured out that I need to run 'nwmax' as an administrator, not just run it. Problem fixed. Yay! I'm back in business.

Edit: hmm, then it wouldn't let me export, till I restarted nwmax without the administrator stuff... it's picky, isn't it

All times are GMT -4. The time now is 10:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2015 - All rights reserved.