I was using two mods that conflicted and found an issue which I think should have been caught on mod loading.
The problem seems to boil down to the fact that one apparel had <commonality>0.0</commonality>.
And that lead to an error, on generating apparel for a mechanoid unit in another mod.
From what I understand the modder should have removed the commonality row instead of having it as zero.
My suggestion is to look for this on apparel loading and output a warning or error if an item has a commonality of 0 to help avoid this issue.
The problem seems to boil down to the fact that one apparel had <commonality>0.0</commonality>.
And that lead to an error, on generating apparel for a mechanoid unit in another mod.
From what I understand the modder should have removed the commonality row instead of having it as zero.
My suggestion is to look for this on apparel loading and output a warning or error if an item has a commonality of 0 to help avoid this issue.