Hex Editing MSH chunks to another file [SOLVED]

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
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Hex Editing MSH chunks to another file [SOLVED]

Post by giftheck »

Okay, so I've followed the tut on hex-editing cloth to other units, but instead of simply hex-editing a cloth, I chose to hex-edit a pauldron onto my unit. It goes on fine but it appears with the standard unit texture (imp_hero_x1.tga). I know I probably have to hex-edit in the texture chunk too but my question is, where does it go? I tried to hex-edit it in once and it garbled the texture placement.
Last edited by giftheck on Tue Nov 10, 2009 6:22 pm, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hex Editing MSH chunks to another file

Post by Maveritchell »

Rep gives an overview on it in the same thread the tutorial is in:
http://www.gametoast.com/forums/viewtop ... 05#p202605

...and I'm sure if you search around you can find a more in-depth description. It's not too tough, make sure to read Riley's MSH reference:
http://personal.riley-man.com/swbf/edit ... f-msh.html
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Hex Editing MSH chunks to another file

Post by giftheck »

I'm not quite sure how I should edit the mesh in XVI32 to get it to display the correct texture.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editing MSH chunks to another file

Post by Deviss »

ggctuk wrote:I'm not quite sure how I should edit the mesh in XVI32 to get it to display the correct texture.
hex editing the MATL in this thre are MATD(skin references) :wink:
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Hex Editing MSH chunks to another file

Post by giftheck »

So do I just hex-edit the entire MATL chunk in, or just the MATD chunk?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editing MSH chunks to another file

Post by Deviss »

ggctuk wrote:So do I just hex-edit the entire MATL chunk in, or just the MATD chunk?
no lol, for example you want one MATD from where you got the MODL chunk for example jetpack, so on that msh search MATD where after some letter say jetpack.tga or whatever, so extract that MATD the sme way extracting MODL chunk and put it in your new model in MATL i suggest put it after the final MATD and into MATL you must add the number of MATD for example say MATLFH77....(05).........MATD put :
MATLFH77.......(06) because you are adding one more MATD and rezise the MATL sie the same way you resised MSH2
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Hex Editing MSH chunks to another file

Post by giftheck »

Okay, I've done that, the new texture doesn't show up, I take it I have to edit the original MODL chunk to reference the new texture?

EDIT: Ah, found it! You have the four-bytle longint in the MODL chunk straight after the MATD part. Dunno what the first longint does but the second is the texture reference.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editing MSH chunks to another file

Post by Deviss »

ggctuk wrote:Okay, I've done that, the new texture doesn't show up, I take it I have to edit the original MODL chunk to reference the new texture?

EDIT: Ah, found it! You have the four-bytle longint in the MODL chunk straight after the MATD part. Dunno what the first longint does but the second is the texture reference.
for texture reference for example your new MATD added in MATL is 7 so into MODL search MATI and after longint say 0x (x is one number) so put 07
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Hex Editing MSH chunks to another file

Post by giftheck »

Actually, my texture reference for the Pauldron to fit on the helmetless clone was 6 :P

Yep, it's definitely worked. I posted it in the Glamour Skins to show it off. Thanks for your help, DEVISS.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editing MSH chunks to another file

Post by Deviss »

ggctuk wrote:Actually, my texture reference for the Pauldron to fit on the helmetless clone was 6 :P

Yep, it's definitely worked. I posted it in the Glamour Skins to show it off. Thanks for your help, DEVISS.
you are welcome, and so sorry if i don't explain very good XD
Post Reply