# 求助 千年之旅的spine文件

**URL:** <https://live2dhub.com/t/topic/3901>\
**Category:** 讨论\
**Created:** [2024 年12 月 17 日 04:22 UTC](https://live2dhub.com/t/topic/3901 "2024-12-17T04:22:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

作者： ![Littlesquare](https://live2dhub.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@Littlesquare](https://live2dhub.com/u/Littlesquare)\
发布日期： [2024 年12 月 17 日 04:22 UTC](https://live2dhub.com/t/topic/3901/1 "2024-12-17T04:22:09Z")

</div>

![image](https://live2dhub.com/uploads/default/original/2X/7/7ebdd25e1d0db4fb61a9cec205586181a8b9641f.png)  
一个角色拆出来的文件有这些，看起来分成了好几个图层，请问有什么可以查看合并之后的图层的方法吗

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2024 年12 月 17 日 05:38 UTC](https://live2dhub.com/t/topic/3901/2 "2024-12-17T05:38:38Z")

</div>

spine pro

---

<div class="post-metadata">

作者： ![lalajunting](https://live2dhub.com/user_avatar/live2dhub.com/lalajunting/32/31_2.png) [@lalajunting](https://live2dhub.com/u/lalajunting)\
发布日期： [2024 年12 月 17 日 10:29 UTC](https://live2dhub.com/t/topic/3901/3 "2024-12-17T10:29:55Z")

</div>

打开atlas文件，里面有几个png，模型贴图就有几张，用EX工作室配置模型文件就可以预览了

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2024 年12 月 18 日 00:13 UTC](https://live2dhub.com/t/topic/3901/4 "2024-12-18T00:13:02Z")

</div>

这游戏多spine拆分了，ex不能做到合并吧，我记得只spine pro

 ![image](https://live2dhub.com/uploads/default/original/2X/4/41f38214382f2d8b50d380e350fdce7b3523eb9a.png)

 ![image](https://live2dhub.com/uploads/default/original/2X/b/b4dd361a5185aab5a53e0ae00742332cfe9d198f.jpeg)

---

<div class="post-metadata">

作者： ![zhangsan12138](https://live2dhub.com/letter_avatar_proxy/v4/letter/z/e9c0ed/32.png) [@zhangsan12138](https://live2dhub.com/u/zhangsan12138)\
发布日期： [2024 年12 月 18 日 02:52 UTC](https://live2dhub.com/t/topic/3901/5 "2024-12-18T02:52:16Z")

</div>

这个解包有很多重名的同名文件，怎么能够正确匹配对应atlas.skel.png，要一个一个试吗

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2024 年12 月 18 日 07:17 UTC](https://live2dhub.com/t/topic/3901/6 "2024-12-18T07:17:00Z")

</div>

没有合适的导出方法欸好像，游戏内部识别应该用的path id啥的？

---

<div class="post-metadata">

作者： ![jx77](https://live2dhub.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@jx77](https://live2dhub.com/u/jx77)\
发布日期： [2024 年12 月 18 日 09:34 UTC](https://live2dhub.com/t/topic/3901/7 "2024-12-18T09:34:06Z")

</div>

同名不同path id 可以用 [GitHub - Ahykal/StudioPluginVer: Modded AssetStudio with new features](https://github.com/Ahykal/StudioPluginVer)

 ![screenshot-1734514407416](https://live2dhub.com/uploads/default/original/2X/7/7700cae0aafc5cd13a5e3999d756b8da23987669.png)

---

<div class="post-metadata">

作者： ![zhangsan12138](https://live2dhub.com/letter_avatar_proxy/v4/letter/z/e9c0ed/32.png) [@zhangsan12138](https://live2dhub.com/u/zhangsan12138)\
发布日期： [2024 年12 月 18 日 10:59 UTC](https://live2dhub.com/t/topic/3901/8 "2024-12-18T10:59:32Z")

</div>

亲测有效，感谢大佬

---

<div class="post-metadata">

作者： ![bakaneko](https://live2dhub.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@bakaneko](https://live2dhub.com/u/bakaneko)\
发布日期： [2024 年12 月 18 日 13:43 UTC](https://live2dhub.com/t/topic/3901/9 "2024-12-18T13:43:17Z")

</div>

其实是可以写脚本合并的，不通过spine pro就能实现，大概原理就是为每一个骨骼都创建一个共同root主骨骼， 需要修改之前的骨骼和插槽的名字防止json覆盖，约束的order顺序需要重新排列，权重网格的骨骼索引也需要重新计算，不过有些游戏拆分的骨骼是使用同一个骨骼骨架的就是把部分插槽和贴图分离了，骨骼部分不要动，后面的插槽贴图部分需要合并一下，合并有绘制顺序，背景在下人物在上面，背景的绘制顺序优先，错了的话背景会挡住人物，git上面有个3.8版本的交错战线的合并脚本示例[spine骨骼合并](https://github.com/enjoy7ech/AssetsProcessor/tree/main/jczx)，骨骼是skel二进制的话比较麻烦，git上面没有现成的高版本转换脚本需要自己造轮子转为json后再合并。不同版本json骨骼略有区别，需要自行研究。git上面有一个完整的json与skel互转的python脚本不过版本是2.1的，脚本本身也有一些bug需要修复，可以拿来参考。[SpineConverter2.1.27](https://github.com/brachna/SpineConverter2.1.27)

---

<div class="post-metadata">

作者： ![Littlesquare](https://live2dhub.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@Littlesquare](https://live2dhub.com/u/Littlesquare)\
发布日期： [2024 年12 月 18 日 15:49 UTC](https://live2dhub.com/t/topic/3901/10 "2024-12-18T15:49:30Z")

</div>

感谢大佬，确实可行  
看了一下具体过程：

1. SkeletonAnimation中存了SkeletonData的pathid
2. SkeletonData中存了skel文件以及Atlas的pathid
3. Atlas中存了atlas的pathid

这样的话就只能在导出的时候进行区分了

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2024 年12 月 19 日 00:40 UTC](https://live2dhub.com/t/topic/3901/11 "2024-12-19T00:40:12Z")

</div>

感谢，学到了
