Hex-Edit MODL Chunk bugs

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
Benoz
Corporal
Corporal
Posts: 142
Joined: Tue May 28, 2013 12:34 pm
Projects :: Clone Wars Era Mod Version 2
Games I'm Playing :: OldFront - EAFront
xbox live or psn: No gamertag set
Location: Germany

Hex-Edit MODL Chunk bugs

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Hex-Edit MODL Chunk bugs

Post 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.
User avatar
Benoz
Corporal
Corporal
Posts: 142
Joined: Tue May 28, 2013 12:34 pm
Projects :: Clone Wars Era Mod Version 2
Games I'm Playing :: OldFront - EAFront
xbox live or psn: No gamertag set
Location: Germany

Re: Hex-Edit MODL Chunk bugs

Post 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.
Post Reply