Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Tutorial Request

Page: 1 of 1
 Endorenna
10-15-2008, 5:56 PM
#1
Hi, guys! I'm interested in making some new heads for TSL. Unfortunately for me, I know nothing about modding. :( Could someone please make a head tutorial that indicates file paths (BIFs>models.bif>Placeable Object Walkmesh>plc_backpack.pwk), shows how to change the head (preferably with Photoshop), and shows how to use Taina's Replacer to do whatever it has to do?

I know this is an enormous request, but I'm starting to get desperate. :( Thanks!
 TriggerGod
10-15-2008, 6:08 PM
#2
By new heads, do you mean completely modeled new heads or just a skin?

If you mean modeled heads, only one person has been able to crack it, and, AFAIK, he hasn't spilled the beans on how he did it.

If its just a skin, all you need is Photoshop, and a general understanding of its tools and functions.
 Trex
10-15-2008, 6:56 PM
#3
You can always edit an existing head to get it to the shape you want. You can go pretty far with it if you're careful.

I'd be happy to write what I can of a tutorial, though I'm about to go to bed here so it'll be tomorrow sometime.

Sick of debugging my mod anyway. :xp:
 Endorenna
10-15-2008, 9:26 PM
#4
@TriggerGod
I just want to remodel a head, not make a completely new one.

@ Trex
Thank you so much!!!! I think you just saved my sanity! :D
 Trex
10-16-2008, 6:36 PM
#5
Okay, here we go. First ever tutorial. Mods feel free to move it to the tutorial section if they like.

BTW : This does not contain typos. It contains 'English spelling.':xp:

Tutorial – Modeling a new head

What you’ll need :
- KOTOR tool (see here http://www.starwarsknights.com/tools.php)
- GMax with NWmax plugin. (gmax : http://www.turbosquid.com/gmax), NWmax : http://nwmax.dladventures.com/)
- Photoshop or Gimp (You'll have to buy PS, but gimp is here : http://www.gimp.org/)
- Mdlops (here again : http://www.starwarsknights.com/tools.php)
- Taina’s replacer tool (Request it in this thread : http://www.lucasforums.com/showthread.php?t=167699). Someone will sort you out)
- Kgff editor (This page again : http://www.starwarsknights.com/tools.php)
- Notepad & pen are handy

Part 1 – Getting ready/extracting everything you need

Note that I here describe the long way of doing it to help all first timers. Once you do this a few times, you probably won’t need to go through every stage.

First of all, just create a new folder on your desktop and call it ‘new head’, or something similar that you’ll remember. Inside this folder, create another one, and call it output.

Now, hopefully you’ll have a vague idea of what you want your head to look like, or even better a design. Since it’s kinda impossible to model a head from scratch, you’ll have to rack your brains and try to think of a character in KOTOR2 which looks sort of similar. For this example, I will take the ever popular Bastila.

All heads are divided into three parts ; the mdl, the mdx, and the tga. That’s two model files and one texture. To find these, first open KOTOR tool, and go to : KotorII > BIFs > templates > Blueprint, character. Here you will see a long list of all the various characters in the game. Look through the entire list until you find the character who’s head you wish to manipulate. In this case, it’s near the bottom of the list and named ‘p_bastila’.

(Another way of doing this bit is to extract the character template from the individual module. Go to : KOTOR II > RIMs > Modules > ‘whichever module’ > Blueprint, characters. This method may be better if you wish to convert the head of a more minor chapter. Replace ‘whichever module’ with wherever the person can be found. PER=pergaus/TEL=Telos and so on. )

Click on the template file, click ‘extract file’, and save it to the folder on your desktop.

Open kgff editor, and open the file you just extracted. At the very top, it should have a row named ‘Appearance_Type’, followed by a number. Make a note of the number, in this case 4. Close Kgff.

In KOTOR tool, go to : Kotor II > BIFs > 2da.bif > 2D array. Find the file ‘appearence.2da’, and double click. To the far left, you will see that each row is numbered. Find the row number you just made a note of, 4. Move along the row until you come to a column named ‘normal head’, and make a note of the number there. In Bastila’s case, 1. Close the file.

In KOTOR tool again, go to Kotor II > BIFs > 2da.bif > 2D array. This time find ‘heads.2da’ & double click. Find the row you just made a note of, 1. Under the ‘head’ column, find what’s written, in this case ‘P_BastillaH’. This is the name of all the files you want. Make a note of it.

In KOTOR tool, go : KotorII > BIFs > models.bif > Aurora model. Scroll through this exceptionally long list until you find ‘P_BastillaH’. Extract/save it to the folder on your desktop.

In KOTOR tool, go : KotorII > BIFs > models.bif > Aurora model extension. Find ‘P_BastilaH’ again, but with the mdx on the end. Save to desktop folder.

Finally, go : KotorII > ERFs > TexturePacks > swpc_tex_tpa.erf > P. Find ‘P_BastilaH’ and save to desktop folder. It may have a number, such as 04, but save it anyway.

That’s everything you need. Onto part 2.

Part 2 – Editing the head.

Open up Mdlops. Make sure Kotor2 is highlighted, as opposed to Kotor1, click select file, then open the head file ending with a mdl extension. Make sure extract animations is ticked. Make sure convert skin to trimesh isn’t. Click read and write model.
Watch the big black window until it says “Finished processing model”. You have just created a new file ending in ascii. Close Mdlops.
Now open up Gmax using the green NWmax icon. This won’t work if you just open it normally.

It should look something like this.

http://img385.imageshack.us/img385/6277/tutpic1ka5.jpg)

Click MDL loading in the left toolbar (red circle), and a little sub section should drop down. Click Browse (green circle), select the model file from your folder with the acsii extension. Just below, make sure ‘import Geom+anims’ is selected. Click the big import button. As the file imports, you might get a few errors. This is normal, just keep clicking OK.

http://img78.imageshack.us/img78/4310/tutpic2qc7.jpg)

It should look something like this. In order to modify the head, select the modify tab in the right toolbar (red circle). Click on the ‘select and move’ tool (green circle). Click somewhere on the actual head in any window. The right toolbar should change a bit.

Click ‘editable mesh’ (light blue circle). Now click Vertex (orange circle). Little blue dots should appear all over the place. Moving these blue dots (vertices) around are what creates a different shaped head. Important! : To move them, don’t just click and drag. Click and drag your mouse over it (or a few of them), they should turn red, then use the X, Y and Z axis that appear to shift them.

TIPS :
- The heads are actually divided into several sections. If you want to move a part of the head, but can’t see a blue dot by which to do it, unclick ‘vertex’ in the right toolbar, click on another section of the head, then click ‘vertex’ again.
- In the far bottom right are a set of eight useful buttons. The little hand, ‘pan’, will allow you to move the four views around. The magnifying glass is zoom, as is your mouse wheel if you have one. ‘Arc rotate’, looking a bit like a pie chart, will allow you to rotate the 3D view to get a better look.
- NEVER, EVER delete a little blue dot. The model will fail.
- Try not to overlap any of the lines connecting the blue dots. The model may still work, but things may go a little ‘weird’.
- You can save this project with Gmax anytime and come back to it, Just make sure you don’t move the desktop folder.

Part 3 - Compiling the head for use in game.

http://img185.imageshack.us/img185/7169/tutpic3bf0.jpg)

When you have the head in the shape you want, use the ‘select and move’ icon/cursor to click on the blue box under the model. This is a little complicated to explain, but you must click the side of the box, and an actual line, not between (red circle). When you get it right, the right toolbar should change to how it looks above (blue circle).

Click browse, and select the ‘Output’ folder inside your desktop folder. Now, click ‘Export model+anim’. If ‘sanity check fails’, just click yes and ignore it. Now this is the complicated bit :

1 – Go into the output folder and change ‘P_BastilaH’ to ‘P_BastilaH-ascii_new’. If it’s a different file name, add ‘ascii_new’ to the end.

2 – Highlight the original mdl and mdx files in your desktop folder, P_BastilaH.mdl & P_BastilaH.mdx. Copy and paste them into the output folder. Also copy and paste over the file with the ascii extension.

3 – Open Taina’s replacer tool. Click ‘open ASCII Models’.

4 – First, find and open ‘P_BastilaH-ascii’. In the second box, click and open ‘P_BastilaH-ascii_new’. The first time you do this, you might get an error. Just try it again. Should work the second time.

5 – There should be two columns full of boxes now, the left one full of ticks. Untick all of these apart from the ones that apply to the part of the head you altered. Leave all of them ticke dif you want. If you can find a general ‘head’ one, I find this is often all that needs to be selected. In this case, ‘head_g’.

6 – Click ‘start replacing’. Select the original mdl file, ie P_BastilaH.mdl, from ‘output’. On the next box, save as p_bastilah_new. Name it exactly like that, don’t use anything other than '_new'.

7 – Click ‘start replacing’ again. From the bottom drop down box, change ‘Files of type’ to mdx. Open p_bastilah.mdx. In the next box, save as ‘p_bastilah_new.mdx’. Save exactly like this, including manually typing in the mdx extension.

8 – Close the replacer tool. Go into your output folder. Find p_bastilah_new.mdl and p_bastilah_new.mdx. THESE ARE YOUR NEW HEAD! Put them somewhere safe and rename them something else if you fancy. Feel free now to delete everything else apart from P_BastilaH04.tga.

Part 4 – Texturing the head aka 'colouring in'.

Essentially what you've created so far is the physical head without the skin. The game will register it in a certain way, but it won't visually show up.
Open P_BastilaH04.tga in Photoshop or Gimp. You can probably see already sort of how this works. The flat picture folds around the frame of the model you just made, creating the skin. It should be obvious where the hair and skin is. Obviously, this part of the tutorial will vary on what exactly how you want the character to look, so I will instead go through some quick handy tips and commonly used functions. Since I use it, I will describe these in relation to photoshop.

4a – Recolouring hair. In photoshop, go to the left hand toolbar. The 'colour replacement tool' shares the same icon space as the brush and pencil tool. Once you select the tool, use the colour box lower down to select a shade of yellow. Click and drag the cursor over the hair and it should change to a shade of blonde. If you want to change the skin tone, same principal applies, just move the cursor over the skin area instead.
4b – In the right hand toolbar, there is what looks like a rubber stamp icon. This is the clone stamp. It can copy parts of an image onto another.
Another way to get, say, blonde hair would be to use it. Find an image of blonde hair online that you want to copy. Open it in photoshop. On the Internet image, hold the ALT button and click on the part of the image you want to copy. Let go of ALT.
On your skin image, normal click and drag over the area you want to replace.
For a much more thorough tutorial on photoshop functions, I highly recommend this thread : http://www.lucasforums.com/showthread.php?p=2515747#post2515747)

When you are done, place it with your mdl and mdx files from before and make sure they are all named the same, whatever you want to call them.

Part5 – Placing your head into the game.

If you want to use this as a new PC and for your own amusement, the easiest way to do this is to override on of the existing ones. In Kotor tool, go to Kotor II > BIFs > 2da.bif > heads.2da. The rows named PFH are the female player characters and the PMH the males. Name your three files the same as one of these, say PFHC01, then place them all in your game override directory. When starting a new game, your new head should come up as one of the options.
For a more thorough description of creating a new PC head, I highly recommend this tutorial : http://www.lucasforums.com/showthread.php?t=149992)

Think that's it. Any questions, feel free to PM me.
 Darth333
10-16-2008, 6:43 PM
#6
Thanks for doing this!

Mods feel free to move it to the tutorial section if they like.

Done (I made a copy of the post) :)
 Endorenna
10-16-2008, 11:15 PM
#7
Thank you SO much, Trex! :D This looks really, really good! :xp:
 Eefluxx
10-17-2008, 3:48 AM
#8
Trex I thank you as well, looks really really good and very easy to understand


Eefluxx
 DarthParametric
10-17-2008, 4:11 AM
#9
Open Taina’s replacer tool.Is there any difference using this instead of the replacer function in MDLOps?

Also, with sabers at least, I had more success using the older versions of NWMax (0.7 instead of 0.8) and MDLOps (0.5.0 instead of 0.6.1).
 Inyri
10-17-2008, 4:15 AM
#10
Big difference -- one works and one does not. :)
 Trex
10-17-2008, 6:26 AM
#11
Is there any difference using this instead of the replacer function in MDLOps?


They do slightly different things. If you just use MDLops instead, a common side effect will be to have the head 'hang off' the shoulder instead in hooking onto the neck.


Also, with sabers at least, I had more success using the older versions of NWMax (0.7 instead of 0.8) and MDLOps (0.5.0 instead of 0.6.1).

Good point. If anyone ever has any problems using this tut, switching to older versions of NWmax and MDLops may solve the them.
 DarthParametric
10-17-2008, 7:59 AM
#12
If you just use MDLops instead, a common side effect will be to have the head 'hang off' the shoulder instead in hooking onto the neck.Ahah. That would explain my issues with using Bao-Dur's head for a PC. Using MDLOps to replace does seem to work OK for sabers though (just need to work out how to get NWMax to stop screwing up my UV maps).
 exile025
01-01-2009, 6:46 PM
#13
i tried this tutorial but i have a big problem with MDLOps when i import the p_bastila.mdl file and i select the read and write choice i get only reading file on the black screen and nothing else ... the “Finished processing model” never comes out :( please i would like some help because i really want to made this skin ...
 Trex
01-02-2009, 8:23 AM
#14
i tried this tutorial but i have a big problem with MDLOps when i import the p_bastila.mdl file and i select the read and write choice i get only reading file on the black screen and nothing else ... the “Finished processing model” never comes out :( please i would like some help because i really want to made this skin ...

Do you know which version of MDLops you're using? A slightly older one might have better results.
Are you sure you have the p_bastila.mdx file in the same folder?
 exile025
01-02-2009, 10:14 AM
#15
yes both files are in the same folder and i am using the 0.6.1 version , do you suggest to use an older version in order to succeed ?
 Trex
01-02-2009, 10:40 AM
#16
yes both files are in the same folder and i am using the 0.6.1 version , do you suggest to use an older version in order to succeed ?

I would. Some of the models (specifically those taken from Kotor1 and used in TSL), work a bit better with the olders ones. I recommend version 0.5.0 if you can find it.
 DarthParametric
01-02-2009, 11:08 AM
#17
I recommend version 0.5.0 if you can find it.MDLOps 0.5 is available here - http://home.comcast.net/~cchargin/kotor/index.html)
 DarthYuugi
01-02-2009, 11:15 AM
#18
Dont get why older ones work better

Mdlops works fine for me? :)
 TriggerGod
01-02-2009, 1:16 PM
#19
Dont get why older ones work better

Not sure on the exact details, but I think there was something in 5 that 'liked' the models more.
Page: 1 of 1