.smesh orientation editor tool.

I know it's possible to hex edit the weapon_handles (xyz orientation/coordinates) of .smesh files with HxD. I have had success in changing the values, but I'm struggling to work out the logic of the required values to achieve what I want.

What would be fantastic is to have a small dedicated tool which allows editing of weapon_handles for .smesh_pc files in a more straightforward manner.
EG: Having XYZ values separated into different spin boxes.

Here is BandiG's modified Chicken Bazoom as an example of a hex edited .smesh.

Comparison (bazoom.smesh_pc):
Vanilla:

HxD_r1KVwxSaMZ.png
BanidG's:
HxD_nkP8jOuq8f.png
 
looks like floats to me?
from 000000D0 + 4
0xAF25643D = 0.0557
0x6F1203BB = -0.002
0x006F01BC = -0.0079
and so on, someone would have to toy around with each offset and see what they change though.
I was looking into it a while ago with bugnet.smesh for an upcoming mod. (This cut .smesh has an incorrect orientation for it's animation.) This is as far as I got with that file:

Line 100: Position values.
Second four bytes = X
Third four bytes = Y
Fourth four bytes = Z

Line 110: Rotation values.
First four bytes = X (Pitch)
Second four bytes = Y (Yaw)
Third four bytes =

Example:
HxD_DxV65OXRy4.png

I'm not sure if ALL .smesh files are laid out like this though. One would have thought so.
 
Back
Top