OpenMLTD / MLTDTools

Tools for THE iDOLM@STER Million Live! Theater Days (MLTD/MiriShita/ミリシタ) / 偶像大师百万演唱会剧场时光工具箱
BSD 3-Clause Clear License
142 stars 17 forks source link

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

Open KimL-IVA opened 2 years ago

KimL-IVA commented 2 years ago

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. :(