lfnetwork.com mark read register faq members calendar

Thread: Tutorial Request
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-15-2008, 05:56 PM   #1
Endorenna
Gamer Wanna-be
 
Endorenna's Avatar
 
Join Date: Aug 2008
Posts: 1,140
Current Game: inFamous/Uncharted 2
Tutorial Request

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!


Chapter 12 of A Soul Adrift is out.

Short stories:
T'katlu: On the planet Felucia, a young apprentice of the Dark Side thinks back to the beginning of her training as she lies in wait for her prey...

All the Time: After four years in the Unknown Regions, the Exile returns to the known galaxy to visit an old enemy.

Broken: A master of the Dark Side finds himself about to lose the one thing he cares about--and he will do anything to stop her from endangering herself.
Endorenna is offline   you may: quote & reply,
Old 10-15-2008, 06:08 PM   #2
TriggerGod
Senior Member
 
TriggerGod's Avatar
 
Join Date: Mar 2008
Location: hiding
Posts: 2,415
Helpful! 
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.
TriggerGod is offline   you may: quote & reply,
Old 10-15-2008, 06:56 PM   #3
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 505
Veteran Modder 
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.


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 10-15-2008, 09:26 PM   #4
Endorenna
Gamer Wanna-be
 
Endorenna's Avatar
 
Join Date: Aug 2008
Posts: 1,140
Current Game: inFamous/Uncharted 2
@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!


Chapter 12 of A Soul Adrift is out.

Short stories:
T'katlu: On the planet Felucia, a young apprentice of the Dark Side thinks back to the beginning of her training as she lies in wait for her prey...

All the Time: After four years in the Unknown Regions, the Exile returns to the known galaxy to visit an old enemy.

Broken: A master of the Dark Side finds himself about to lose the one thing he cares about--and he will do anything to stop her from endangering herself.
Endorenna is offline   you may: quote & reply,
Old 10-16-2008, 06:36 PM   #5
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 505
Veteran Modder 
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.'

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.



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.



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.



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/showthrea...47#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.


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 10-16-2008, 06:43 PM   #6
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Thanks for doing this!

Quote:
Originally Posted by Trex View Post
Mods feel free to move it to the tutorial section if they like.
Done (I made a copy of the post)
Darth333 is offline   you may: quote & reply,
Old 10-16-2008, 11:15 PM   #7
Endorenna
Gamer Wanna-be
 
Endorenna's Avatar
 
Join Date: Aug 2008
Posts: 1,140
Current Game: inFamous/Uncharted 2
Thank you SO much, Trex! This looks really, really good!


Chapter 12 of A Soul Adrift is out.

Short stories:
T'katlu: On the planet Felucia, a young apprentice of the Dark Side thinks back to the beginning of her training as she lies in wait for her prey...

All the Time: After four years in the Unknown Regions, the Exile returns to the known galaxy to visit an old enemy.

Broken: A master of the Dark Side finds himself about to lose the one thing he cares about--and he will do anything to stop her from endangering herself.
Endorenna is offline   you may: quote & reply,
Old 10-17-2008, 03:48 AM   #8
Eefluxx
Junior Member
 
Eefluxx's Avatar
 
Join Date: Mar 2007
Location: Bama
Posts: 380
Trex I thank you as well, looks really really good and very easy to understand


Eefluxx


Feel Free To Disagree.....Most People Do Anyways
Eefluxx is offline   you may: quote & reply,
Old 10-17-2008, 04:11 AM   #9
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,692
Forum Veteran Helpful! 
Quote:
Originally Posted by Trex View Post
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).
DarthParametric is offline   you may: quote & reply,
Old 10-17-2008, 04:15 AM   #10
Inyri
The Magical Malefactor
 
Inyri's Avatar
 
Join Date: Sep 2004
Location: Chicago
Posts: 2,505
Current Game: Mass Effect 3
Veteran Modder Forum Veteran Helpful! Contest winner - Fan Fiction 
Big difference -- one works and one does not.

Inyri is offline   you may: quote & reply,
Old 10-17-2008, 06:26 AM   #11
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 505
Veteran Modder 
Quote:
Originally Posted by DarthParametric View Post
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.

Quote:
Originally Posted by DarthParametric View Post
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.


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 10-17-2008, 07:59 AM   #12
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,692
Forum Veteran Helpful! 
Quote:
Originally Posted by Trex View Post
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).
DarthParametric is offline   you may: quote & reply,
Old 01-01-2009, 06:46 PM   #13
exile025
Lurker
 
exile025's Avatar
 
Join Date: Jan 2009
Location: Coruscant
Posts: 3
Current Game: KotOR II
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 ...


"And where they look at you and see the death of the Force, I look at you and see the hope for all life."
exile025 is offline   you may: quote & reply,
Old 01-02-2009, 08:23 AM   #14
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 505
Veteran Modder 
Quote:
Originally Posted by exile025 View Post
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?


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 01-02-2009, 10:14 AM   #15
exile025
Lurker
 
exile025's Avatar
 
Join Date: Jan 2009
Location: Coruscant
Posts: 3
Current Game: KotOR II
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 ?


"And where they look at you and see the death of the Force, I look at you and see the hope for all life."
exile025 is offline   you may: quote & reply,
Old 01-02-2009, 10:40 AM   #16
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 505
Veteran Modder 
Quote:
Originally Posted by exile025 View Post
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.


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 01-02-2009, 11:08 AM   #17
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,692
Forum Veteran Helpful! 
Quote:
Originally Posted by Trex View Post
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
DarthParametric is offline   you may: quote & reply,
Old 01-02-2009, 11:15 AM   #18
DarthYuugi
Rookie
 
DarthYuugi's Avatar
 
Join Date: Nov 2008
Location: In My House
Posts: 156
Current Game: Jade Empire
Dont get why older ones work better

Mdlops works fine for me?


“They find themselves… or find themselves lacking.”


My Mods At Kotorfiles
DarthYuugi is offline   you may: quote & reply,
Old 01-02-2009, 01:16 PM   #19
TriggerGod
Senior Member
 
TriggerGod's Avatar
 
Join Date: Mar 2008
Location: hiding
Posts: 2,415
Helpful! 
Quote:
Originally Posted by DarthYuugi View Post
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.
TriggerGod is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Tutorial Request

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:40 PM.

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