Hex Editing question

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Hex Editing question

Post by Kingpin »

Is it possible to hex edit Anakin's cloak, but only the hood and not the cape?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Hex Editing question

Post by Anakin »

Don't think so. You can only hex whole chunks. And as far as i know the cape and the cloak were not splitted
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Hex Editing question

Post by Kingpin »

Alright. Do you know of any models that do have hoods I could hex edit from?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Hex Editing question

Post by Marth8880 »

Hooded Anakin from the Knightfall mission, mayhaps? :00000
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Hex Editing question

Post by AQT »

You can take the hood from this model here: http://www.gametoast.com/viewtopic.php?p=506630#p506630
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Hex Editing question

Post by Kingpin »

I added the hood_robe chunk, but it does not seem to have a texture. Do i need another chunk?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Hex Editing question

Post by AQT »

Yep. You need the MATD chunk that corresponds to the texture it uses. A MATD chunk starts at the M in MATD and ends before the M in the next MATD (or if it is the last MATD chunk, it ends before the M in the first MODL).

Once you have obtained the correct MATD chunk, insert it right before the very first MODL chunk. In addition to resizing the HEDR and MSH2, you will also need to similarly resize the MATL. Once you have done that, place your cursor on the box right after the L in MATL. Now look to the corresponding box on the left side of the screen. Go four boxes over to the right from this box. The number in this fourth box is the number of MATD chunks (in hexadecimal) in the msh file. Since you just inserted another MATD, increase that number by 01.
Hidden/Spoiler:
Image
To ensure that your MODL chunk, hood_robe in this case, uses the correct MATD/texture, do the following: Place your cursor on the H in HEDR, and do a search down for MATD. The first one you find, count 00. The second one you find, count 01. The third one you find, count 02. And so on, and so forth. When you get to the MATD you inserted earlier, remember that number you count for it. Now place your cursor on the M of the MODL chunk of hood_robe. Search down for MATI. Place your cursor on the box after the I in the first MATI you find. Now look to the corresponding box on the left side of the screen. Go four boxes over to the right from this box. Change the number in this fourth box to the number you just counted for the MATD you inserted earlier.
Hidden/Spoiler:
Image
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Yet another Hexing question!

Post by Kingpin »

Alright! Works like a charm. Thanks!

EDIT: I realized that on my model, that hood looks kind of "sloppy". However, I noticed this on Mav's Dark Times:
Image
It would appear to be Emperor's hood-thing hexed on a Jedi model (I am using one, too). I looked in the model, but I could not find the chunk. Anyone know how he got it?

EDIT2
So, I took the hood_jedi chunk from the Robed Jedi Knight (http://www.gametoast.com/viewtopic.php?f=64&t=23298) model, and put it on the stock jed_inf_sith.
Here it is in the msh viewer:
Image
However, it does not look so good ingame:
Image

Anyone know what I did wrong?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Hex Editing question

Post by AQT »

Kingpin wrote:It would appear to be Emperor's hood-thing hexed on a Jedi model (I am using one, too). I looked in the model, but I could not find the chunk. Anyone know how he got it?
Please note that another way a player model can edited is via a modeling problem like XSI.
Kingpin wrote:Anyone know what I did wrong?
Try changing the PRNT of the hood_robe MODL chunk to bone_head. If that doesn't fix the error, as an additional step, move that entire MODL chunk to right before last MODL chunk with PRNT called bone_head.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Hex Editing question

Post by Kingpin »

Followed those steps.
Image
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Hex Editing question

Post by AQT »

Hmm, well, I just took a look at the hood_robe chunk, and it doesn't appear to be enveloped to a single bone, so what I suggested above won't work. Sorry about that.

The alternative solution to this problem via hex editing is a little bit complicated for me to explain, as the method isn't very systematic.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Hex Editing question

Post by Kingpin »

Alright. Well, thanks anyways.
Post Reply