Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.skel文件导入报错(.skel文件的版本3.6.52B) #5

Open
djnjbjb opened this issue Sep 6, 2024 · 3 comments
Open

.skel文件导入报错(.skel文件的版本3.6.52B) #5

djnjbjb opened this issue Sep 6, 2024 · 3 comments

Comments

@djnjbjb
Copy link

djnjbjb commented Sep 6, 2024

.skel文件导入报错,Spine文件的版本是3.6.52B。(我在学习使用Spine,在网上随便下载了一个资源)

报错信息如下:

IndexOutOfRangeException: Index was outside the bounds of the array.
Spine.CurveTimeline..ctor (System.Int32 frameCount, System.Int32 bezierCount, System.String[] propertyIds) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/Animation.cs:296)
Spine.RGB2Timeline..ctor (System.Int32 frameCount, System.Int32 bezierCount, System.Int32 slotIndex) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/Animation.cs:1469)
Spine.SkeletonBinary.ReadAnimation (System.String name, Spine.SkeletonBinary+SkeletonInput input, Spine.SkeletonData skeletonData, System.Boolean isOldCurveSpine) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/SkeletonBinary.cs:1239)
Spine.SkeletonBinary.ReadSkeletonData (System.IO.Stream file) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/SkeletonBinary.cs:507)
Spine.Unity.Editor.AssetUtility.AddRequiredAtlasRegionsFromBinary (System.String skeletonDataPath, System.Collections.Generic.List`1[T] requiredPaths) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:223)
Spine.Unity.Editor.AssetUtility.GetRequiredAtlasRegions (System.String skeletonDataPath) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:140)
Spine.Unity.Editor.AssetUtility.ImportSpineContent (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile, System.Boolean reimport) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:437)
Spine.Unity.Editor.AssetUtility.HandleOnPostprocessAllAssets (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:117)
Spine.Unity.Editor.SpineEditorUtilities.OnPostprocessAllAssets (System.String[] imported, System.String[] deleted, System.String[] moved, System.String[] movedFromAssetPaths) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:102)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <50e19b0ed93a4256b2e454b4acec2d48>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at <50e19b0ed93a4256b2e454b4acec2d48>:0)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[], Boolean)
@djnjbjb djnjbjb changed the title .skel文件导入报错 .skel文件导入报错(.skel文件的版本3.6.52B) Sep 6, 2024
@ZeroFlyFly
Copy link
Owner

你好,这个52b后缀的版本比较少见,可能是Spine以前的中间版本?能提供源文件吗?这样方便查查具体是什么问题。

@djnjbjb
Copy link
Author

djnjbjb commented Oct 1, 2024

文件在这里
3.6.52B版本的Spine文件.zip

@djnjbjb
Copy link
Author

djnjbjb commented Oct 1, 2024

这个素材,就是淘宝搜“spine素材”,排序很靠前的“口袋妖怪口袋觉醒Spine动画源文件”。

我用的是“001妙蛙种子”。
我用盗版Spine,导出成3.8.75后,可以用 WaifuSpineRuntime 打开。但原始的这个3.6.52B不行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants