Better information on "Weightlist" nodes
Is your feature request related to a problem? Please describe.
First of all I don't know if it's possible right now, but I guess one of the goals here is to get all the information from a .vmdl_c.
Basically, I'm trying to rebuild some nodes used by cs2 playermodels and I'm a bit stuck with the Weightlist nodes. I have all the names, but I can't find a logic behind the "m_nLocalBoneArray" that VRF displays.
Example:
{
m_sName = "PELVISONLY"
m_nLocalBoneArray =
[
4,
0,
7,
8,
5,
1,
2,
3,
]
m_flBoneWeightArray =
[
1.000000,
0.000000,
0.000000,
0.000000,
1.000000,
0.000000,
0.000000,
0.000000,
]
m_flDefaultMorphCtrlWeight = 0.000000
m_morphCtrlWeightArray =
[
]
},
In theory PELVISONLY should show that Weight 1.0 goes in the pelvis bone, depending on your skeleton but mostly it's usually number 0, here it says it's at number 4 or 5 which makes zero sense?
https://i.gyazo.com/20fa12f99127766d759f036063aa998e.png
Describe the solution you'd like
Get the name of the bones to clarify where the weights go?
Describe alternatives you've considered
No response
The information is raw keyvalues from the file itself, VRF doesn't invent any of this data.
The information is raw keyvalues from the file itself, VRF doesn't invent any of this data.
And can't you convert that information into something more intuitive when you decompile the model/DATA?
It's possible to convert of course (if the details are understood), but that usually requires a good use case.
Decompiling to ModelDoc format is certainly a desired feature.
We've just added a basic vmdl extracting feature. Feel free to add support for more types of nodes that you were able to manually rebuild.