Skip to content

MillionDance fails to load recent head/body Unity3d files #54

@KimL-IVA

Description

@KimL-IVA

Recently (probably since April), MLTD has been upgraded Unity version from 2018.4.12fl to 2020.3.28fl.

And MillionDance causes errors when I try to make a model from new head/body unity3d files.

Below is a error log from when I tried to make a model from 'ch_ss007_015siz.unity3d' and 'cb_ex022_a.unity3d'

"""
Worker started.
Loading body avatar...
Loading body object hierarchies...
Loading body mesh...
Loading head avatar...
Loading head object hierarchies...
Loading head mesh...
Error occurred.
System.Collections.Generic.KeyNotFoundException: Found no SkinnedMeshRenderer associated with this mesh (eyes).
at AssetStudio.Extended.CompositeModels.MeshWrapper.FindMaterialInfo(SerializedObjectsLookup serializedObjectsLookup, Mesh mesh, Int32 meshIndex, TexturedMaterialExtraProperties extraProperties) in C:\projects\mltdtools\src\AssetStudio.Extended.CompositeModels\MeshWrapper.cs:line 189
at AssetStudio.Extended.CompositeModels.MeshWrapper..ctor(SerializedObjectsLookup serializedObjectsLookup, Mesh mesh, TexturedMaterialExtraProperties extraMaterialProperties) in C:\projects\mltdtools\src\AssetStudio.Extended.CompositeModels\MeshWrapper.cs:line 19
at OpenMLTD.MillionDance.Core.IO.ResourceLoader.LoadHeadMesh(String filePath) in C:\projects\mltdtools\src\MillionDance\Core\IO\ResourceLoader.cs:line 103
at OpenMLTD.MillionDance.MainWorker.DoWorkInternal(Object state) in C:\projects\mltdtools\src\MillionDance\MainWorker.cs:line 117
at OpenMLTD.MillionDance.MainWorker.DoWork(Object state) in C:\projects\mltdtools\src\MillionDance\MainWorker.cs:line 48
"""

And I found some differences between new unity3d files and old ones.

'm_RayTracingMode', 'm_RayTracinProcedural', 'm_BonesAABB', 'm_VariableBoneCountWeights' etc...

But I've no idea what makes these errors 'cause I'm not really good at these things. :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions