Page 1 of 1

Hex Editing MSH chunks to another file [SOLVED]

Posted: Mon Nov 09, 2009 6:09 pm
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.

Re: Hex Editing MSH chunks to another file

Posted: Mon Nov 09, 2009 6:48 pm
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

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 6:08 am
by giftheck
I'm not quite sure how I should edit the mesh in XVI32 to get it to display the correct texture.

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 6:16 am
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:

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 6:27 am
by giftheck
So do I just hex-edit the entire MATL chunk in, or just the MATD chunk?

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 10:36 am
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

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 3:53 pm
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.

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 4:31 pm
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

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 5:27 pm
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.

Re: Hex Editing MSH chunks to another file

Posted: Tue Nov 10, 2009 5:50 pm
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