lfnetwork.com mark read register faq members calendar

Thread: Trouble with Hex Editing
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 11-24-2005, 01:43 AM   #1
90SK
Universal Figment
 
90SK's Avatar
 
Join Date: Jul 2004
Location: Somewhere...
Posts: 4,387
Current Game: Tetris
Question Trouble with Hex Editing

I've recently been trying to replace the model of mandalore with the default mandalorian model, with aggravating results. I've never seen the textures: the game either crashes, I get an invisible mandalore, or I get an untextured mandalorian. The untextured mandalorian is the closest I've gotten. I reached it by:

Saving n_mandalorian.mdl/mdx as p_mandalorebb.mdl/mdx.

Hex editing the model; changing the texture from n_mandalorian to P_Mandalore01.

Renaming the texture P_Mandalore01.


Now, originally I was using P_MandB as the name of the texture, just to keep consistent with the game defaults, but I changed up after reading some threads on past hex editing problems. Still, it doesn't work. Am I missing something blindingly obvious? I expiremented with just replacing the mandalore model with the default mandalorian (without hex editing) and I got the same results.

Any tips would be greatly appreciated.

90SK is offline   you may: quote & reply,
Old 11-24-2005, 02:49 AM   #2
Achilles
Dapper Chimp
 
Achilles's Avatar
 
Join Date: May 2004
Posts: 8,204
Helpful! Veteran Modder Forum Veteran 
I suppose you have your reasons, but have you considered using the easy method (e.g. appearance.2da)? Find line 462 and change the modela and texa columns from P_MandaloreBB to N_Mandalorian. That should accomplish the same thing and save you a lot of trouble.

...or am I missing something blindingly obvious?

EDIT: You'll have to change the Race column to N_Mandalorian as well in order for it to work. I hope that helps.

Last edited by Achilles; 11-24-2005 at 03:04 AM.
Achilles is offline   you may: quote & reply,
Old 11-24-2005, 02:42 PM   #3
90SK
Universal Figment
 
90SK's Avatar
 
Join Date: Jul 2004
Location: Somewhere...
Posts: 4,387
Current Game: Tetris
But yeah, I was basically attempting to do the opposite of what nodakrattler did with this mod. He did it sans appearence.2da, and I prefer to avoid using it, so I figured I'd use the hex editing way.

Anyway, I tried that out and I still got an untextured mandalorian. This may or may not be due to the fact that TSL doesn't like to replace 2da files, but I have yet to fully test it. It's still useful to know though, Achilles, so thanks for the tip.

None the less, I would still appreciate it greatly if someone could tell me what I'm doing wrong with the hex editing, just for future reference.

90SK is offline   you may: quote & reply,
Old 11-24-2005, 03:23 PM   #4
Achilles
Dapper Chimp
 
Achilles's Avatar
 
Join Date: May 2004
Posts: 8,204
Helpful! Veteran Modder Forum Veteran 
No way around it friend. Nodarattler was working with a completely different model; a model that has editable texture references. The game manages the mandalorian textures via the appearance.2da file, not the mdl/mdx files. If you open the model in a hex editor, you won't be able to find a reference for the texture, therefore you can't change it, therefore you end up with blank mandalorians.

You can certainly extract the model files, rename them, hex edit them, and drop them in your Override folder if it makes you feel better, but they won't do anything there except take up space. Seriously.

BTW, in my previous message, I forgot to mention that you will also have to change the racetex column to N_Mandalorian01, N_Mandalorian02, or N_Mandalorian03 depending on which color you want Mandalore to be.

The good news is that this method will work.
Achilles is offline   you may: quote & reply,
Old 11-24-2005, 06:05 PM   #5
Jackel
Senior Member
 
Jackel's Avatar
 
Join Date: Sep 2003
Posts: 1,056
Quote:
Originally Posted by Skye
untextured mandalorian is the closest I've gotten.
You could always call him a snow trooper ...

Another way to make him look like a normal Mandalorian without model editing or appearance.2da file changes would be finding the uti file for his armour* and adding a disguise property to it to point to the mandalorian armour colour you want him to look like. This way he still keeps the same defense properties his armour provides but looks like the normal guys.

*Look up his utc file, find the name of it there then look it up in the bif files.

And slightly off topic. Achilles that is a scary avatar.
Jackel is offline   you may: quote & reply,
Old 11-24-2005, 10:44 PM   #6
Achilles
Dapper Chimp
 
Achilles's Avatar
 
Join Date: May 2004
Posts: 8,204
Helpful! Veteran Modder Forum Veteran 
^^^^

Yep, that would work too
Achilles is offline   you may: quote & reply,
Old 11-25-2005, 05:54 AM   #7
90SK
Universal Figment
 
90SK's Avatar
 
Join Date: Jul 2004
Location: Somewhere...
Posts: 4,387
Current Game: Tetris
Complete!

I ended up more or less using the method Jackel proposed, in the same fashion that was used with the "Juhani's Sanctuary Threads" mod.

Anyway, thanks to you both for helping me out.

90SK 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 > Trouble with Hex Editing

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 01:59 PM.

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