lfnetwork.com mark read register faq members calendar

Thread: Some Concepts on how to Compile Heads
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 06-17-2011, 03:28 PM   #1
VarsityPuppet
Master of Puppets
 
VarsityPuppet's Avatar
 
Join Date: May 2009
Location: MN
Posts: 1,252
Current Game: Chrono Trigger
Contest winner - Modding Forum Veteran Veteran Modder Helpful! 
Some Concepts on how to Compile Heads

Well, here it is. I would just like you guys to know that I gave about 80% effort when making this... at least for the first half, then it dropped to 20% for the last half.

Up until recently, animated models have been really hard to work with in general. My other meshing tutorial demonstrated a certainly brute force method of meshing models. Taina's replacer has helped with editing models, though let's admit: it is pretty limited in the sense that you're only moving vertices, and you can't actually add geometry.

Then came along settoken (or is it miro42?) Either way, one of those guys discovered that hex editing certain values after adding geometry will put the head in the proper place and have it properly animated. Unfortunately, the process seemed to be greatly limited and the outcome varied from head to head.

But this changes now.

Few things you're going to need:


MdlOps
3DsMax (with NWmax plug-in)
A Hex Editing program. Google is your friend.

Okay, if all else fails, try Hex Editor Neo


For the sake of my sanity, I'm going to assume you have a moderate competence in modeling. If not, you really shouldn't be attempting this tutorial quite yet. Also for the sake of sanity, I'm going to refrain from using screenshots because I'm above all things, lazy.


I'm just going to assume that you have everything prepared and ready to go. All you need is the correct way to export and compile stuff.

First off export your model. Yay, that's easy.


Now, before you compile this in mdlops, I want to introduce to you a new concept, which I like to call...


The SuperModel Compile!

Basically, all you have to do is open your ascii file, and look to see which supermodel it uses.

It should say something like:

Quote:
setsupermodel N_BastNewH S_Female03

S_female03 is what we're looking for. You need to extract s_female03.mdl and s_female03.mdx from Kotor Tool.

SAnd since mdlops usually requires you to provide the original model to recompile new models... well, guess what? All you have to do is rename the s_female03 files to match the aurorabase of your ascii file.

For instance, in this case I would have: N_BastnewH.mdl and N_BastnewH.mdx (formerly s_female03) and then the ascii which I'm

going to recompile (n_BastnewH-ascii)

Then, recompile it with mdlope. This is the SuperModel Compile.

For merging body models, this generally works all the time. Head models require an extra step which I like to call...

The Hex Edit!

As stated above, you will need to acquire a Hex Editing program. Remember that Google is your friend. Hex Editor Neo is the one I'll show you how to use.


You're going to want to open your compiled mdl in said hex editing program. If you got a good program, it should have a Go To function (the window is oftentimes brought up by Ctrl + G) and a Find function (Ctrl + F). Use the Find Function to search for 16 00 16 00 (If there is an option to search for Hex Values, use that.) It should bring you to the first occurrence of those values and that's exactly what we want.

Show spoiler


If we look at the address of the data, it should say 0x000008e1 - and that data will be displayed somewhere on the main screen, or maybe on a side toolbar... who knows? Anyways, you're going to need to make a pointer to that address in order for this to work.

Show spoiler


To do that, just flip the values in pairs of two. If your address ends in 08e1, then it's pointer will be e108. Remember this value, write it down somewhere.

Next, use the Go To Function and type in 0b4. There should be two byes there surrounded by lots of 00s and whatnot. Replace those

Show spoiler


two bytes with your pointer from the last step. For instance, I would be replacing 99 02 with e1 08. Save your file. All you have to do is try it in-game.

Show spoiler


So yeah, there is my half-hearted tutorial on how to correctly compile heads.

VarsityPuppet is offline   you may: quote & reply,
Old 06-17-2011, 04:02 PM   #2
TimBob12
I'm in space!
 
TimBob12's Avatar
 
Join Date: Feb 2010
Location: Dantooine
Posts: 515
Current Game: Mass Effect 2!
Helpful! 
Finally, this should lead to some great stuff, Awesome work


Hey
TimBob12 is offline   you may: quote & reply,
Old 06-17-2011, 05:13 PM   #3
newbiemodder
Gentleman Modder
 
newbiemodder's Avatar
 
Join Date: Feb 2009
Location: Chicago
Posts: 706
Veteran Modder 
Bravo VP! major breakthrough.


Who's more foolish, the fool or the fool that follows?

Just exactly what is a head-piece to the Staff of Ra?

http://www.lucasforums.com/showthread.php?t=206819

http://www.lucasforums.com/showthread.php?t=206541

http://www.lucasforums.com/showthrea...t=newbiemodder
newbiemodder is offline   you may: quote & reply,
Old 06-17-2011, 06:01 PM   #4
ChAiNz.2da
Brony 4 Life. Yo.
 
ChAiNz.2da's Avatar
 
Join Date: Oct 2004
Location: Tennessee (USA)
Posts: 6,847
and in to the Tutorials section you go!


"Eagles May Soar, But Weasels Don't Get Sucked Into Jet Engines"


| Mods (FF) (DS) | Folding | SWK.com | FB: (LF) (Me) | Steam | The Herd |
ChAiNz.2da is offline   you may: quote & reply,
Old 06-26-2011, 04:01 PM   #5
Bob Ta'aar
Rookie
 
Bob Ta'aar's Avatar
 
Join Date: Mar 2010
Location: Switzerland
Posts: 111
Current Game: KotOR, KotOR2:TSLRCM
W O W !
Just friggin' awesome, thanks VP! It works perfectly, just got a fully working, animated, collar-matching Weequay head as well as a Twi'lek head with displayable head-gear done. This is indeed a major breakthrough and gives my alien-heads work a big push! I don't even know how to thank you !


I started modding KotOR(2)!
May the Force be with ya, folks!
Bob Ta'aar is offline   you may: quote & reply,
Old 06-26-2011, 09:52 PM   #6
VarsityPuppet
Master of Puppets
 
VarsityPuppet's Avatar
 
Join Date: May 2009
Location: MN
Posts: 1,252
Current Game: Chrono Trigger
Contest winner - Modding Forum Veteran Veteran Modder Helpful! 
That's right, you were going to make those alien heads. Best of luck to you, can't wait til they're released. You're sure to get many a downloads

VarsityPuppet is offline   you may: quote & reply,
Old 06-27-2011, 06:35 AM   #7
Quanon
Senior Member
 
Quanon's Avatar
 
Join Date: May 2006
Location: Lost in my own unconsiciousens
Posts: 2,599
Forum Veteran Veteran Modder Helpful! 
Damn, that's impressive work VarsityPupper. You just earned a Nobel Price in breakthrough hard to mod games

Really impressive, awesome you just kept on going on this modelling problem.
Man, pretty spiffy and neat tutorial.

Give yourself some rest now... Man, just awesome!


TIQUILAAAAAAAA
Quanon is offline   you may: quote & reply,
Old 06-27-2011, 09:36 PM   #8
VarsityPuppet
Master of Puppets
 
VarsityPuppet's Avatar
 
Join Date: May 2009
Location: MN
Posts: 1,252
Current Game: Chrono Trigger
Contest winner - Modding Forum Veteran Veteran Modder Helpful! 
*Puppet

But it was really just an educated guess... and luck too :P

VarsityPuppet is offline   you may: quote & reply,
Old 09-27-2011, 02:48 PM   #9
miro42
Rookie
 
miro42's Avatar
 
Join Date: Feb 2009
Location: California
Posts: 131
Current Game: Plants vs Zombies
Hey awesome work VarsityPuppet! That's a lot less messy than the way I do it. Although when I messed with Visas's head it attached (which I could never get it to even show up before) but the animations were nill. However, I hadn't touched that file in a year or so, so it's probably something on my end.
And just for proper...umm, props, settoken started it, Quanon clarified, and I "finished" it, as it were.

miro42 is offline   you may: quote & reply,
Old 09-27-2011, 10:08 PM   #10
VarsityPuppet
Master of Puppets
 
VarsityPuppet's Avatar
 
Join Date: May 2009
Location: MN
Posts: 1,252
Current Game: Chrono Trigger
Contest winner - Modding Forum Veteran Veteran Modder Helpful! 
Quote:
Originally Posted by miro42 View Post
Hey awesome work VarsityPuppet! That's a lot less messy than the way I do it. Although when I messed with Visas's head it attached (which I could never get it to even show up before) but the animations were nill. However, I hadn't touched that file in a year or so, so it's probably something on my end.
And just for proper...umm, props, settoken started it, Quanon clarified, and I "finished" it, as it were.
settoken started it, Quanon clarified, miro42 narrowed it down, and then with all of this information, I was able to crack it.

VarsityPuppet is offline   you may: quote & reply,
Old 09-28-2011, 02:33 AM   #11
miro42
Rookie
 
miro42's Avatar
 
Join Date: Feb 2009
Location: California
Posts: 131
Current Game: Plants vs Zombies
Quote:
Originally Posted by VarsityPuppet View Post
settoken started it, Quanon clarified, miro42 narrowed it down, and then with all of this information, I was able to crack it.
Boo yah! Lucasforums Team powers activate!

miro42 is offline   you may: quote & reply,
Old 09-28-2011, 10:29 AM   #12
Qui-Gon Glenn
Necessary Roughneck
 
Qui-Gon Glenn's Avatar
 
Join Date: May 2007
Location: Thessia
Posts: 1,465
Current Game: ME3MP, Arkham Origins
Folder extraordinaire Helpful! Forum Veteran Veteran Modder 
Quote:
Originally Posted by miro42 View Post
Boo yah! Lucasforums Team powers activate!


Thing about the wonder twins.... how come one of them always became a "bucket" of water.... and the bucket was never made of ice, it was a danged metal pail. Stupid wonder twins.....

Back on topic: Glad to see you added this to the tut's section VP! Nice to see you back around, miro42!


Want to play a game of ME3MP?
Qui-Gon_Glenn on the software of which we shall not name.... add me and the enemy shall fall in chunks of crimson salsa
Qui-Gon Glenn 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 > Some Concepts on how to Compile Heads

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 10:50 AM.

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