Page 1 of 1

Hex-Edit MODL Chunk bugs

Posted: Sun Apr 19, 2020 8:50 am
by Benoz
Hey everyone!

I hex-edited the Clone Wars Backpack onto DEVISS' HD Clone Models and all worked out perfectly.
So I tried the exact same thing on a different model of his and the following happened: https://youtu.be/_7WvULRzbbA

The backpack seems to not be attached correctly. Can anyone tell me what I did wrong?
I already got suggested doing model-edits in XSI, but I didn't manage to set it up properly, so I stick to hex-editing atm.

Thanks in advance.

Re: Hex-Edit MODL Chunk bugs

Posted: Sun Apr 19, 2020 7:07 pm
by AQT
Looks like you're using this backpack here, yes?

I opened up rep_inf_ep3trooper_back.msh, and looked at the ENVL chunk of the backpack MODL (override_texture2):
Hidden/Spoiler:
Image
And this is the ENVL chunk of the rest of the body MODL (override_texture):
Hidden/Spoiler:
Image
You see how the same three hex values show up in both chunks? If you're getting the error shown in your video, I'm pretty certain that means the backpack is being enveloped to the wrong bone(s) in the new model.

This means you have to change one, two, or all three of those hex values in the ENVL chunk of the backpack. The pool of valid hex values you can use are the ones you see in the other ENVL chunks of the model (except the one belonging the shadow volume). Fortunately, your error isn't way off because the backpack is showing up mostly properly. Otherwise, it would invisible or extremely deformed. You're going to have to guess and check, but luckily the new hex values shouldn't be much greater or smaller than the original ones.

For example, let's say I want to put this same backpack on the stock Stormtrooper model. I open it up in a hex editor and look at the ENVL chunk of the main body MODL (imp_inf_stormtrooper):
Hidden/Spoiler:
Image
Notice that it doesn't have the hex values 09, 0C, and 28 like the backpack's ENVL. In this case, the backpack would disappear completely in-game. So you would have to change all three hex values. It looks like the closest valid hex values you should start with are the ones circled in the image.

Re: Hex-Edit MODL Chunk bugs

Posted: Mon Apr 20, 2020 5:50 am
by Benoz
Yes, that's the backpack I'm using.

So the ENVL determines the bones? I'll definitely give it a try. Thanks AQT.