Hex Editing MSH chunks to another file [SOLVED]
Moderator: Moderators
- giftheck
- 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]
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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Hex Editing MSH chunks to another file
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
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
- giftheck
- 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
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

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Hex Editing MSH chunks to another file
hex editing the MATL in this thre are MATD(skin references)ggctuk wrote:I'm not quite sure how I should edit the mesh in XVI32 to get it to display the correct texture.
- giftheck
- 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
So do I just hex-edit the entire MATL chunk in, or just the MATD chunk?
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Hex Editing MSH chunks to another file
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 :ggctuk wrote:So do I just hex-edit the entire MATL chunk in, or just the MATD chunk?
MATLFH77.......(06) because you are adding one more MATD and rezise the MATL sie the same way you resised MSH2
- giftheck
- 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
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.
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

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Hex Editing MSH chunks to another file
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 07ggctuk 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.
- giftheck
- 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
Actually, my texture reference for the Pauldron to fit on the helmetless clone was 6
Yep, it's definitely worked. I posted it in the Glamour Skins to show it off. Thanks for your help, DEVISS.
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

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Hex Editing MSH chunks to another file
you are welcome, and so sorry if i don't explain very good XDggctuk wrote:Actually, my texture reference for the Pauldron to fit on the helmetless clone was 6![]()
Yep, it's definitely worked. I posted it in the Glamour Skins to show it off. Thanks for your help, DEVISS.
