avatar

方舟指令live2d提取

方舟指令live2d提取

方舟指令的live2d有moc和moc3格式。moc文件没有被加密。

准备工具

AssetStudio.v0.13.24
Advanced Renamer

步骤

  1. 提取live2d文件,国服位置Android/data/com.mingchao.fzzl.bilibili/files/res/live2d/servant。l_xxx的文件夹代表live2d文件夹。
    还有部分在apk里面/data/app/com.mingchao.fzzl.bilibili/assets/live2d/servant
    音频位置Android/data/com.mingchao.fzzl.bilibili/files/res/audio/servant,后缀格式为.ab。
  2. 打开AssetStudio,加载live2d文件夹,AssetStudio设置Options - Export options - Group exported assets by contain path
  3. 设置Filter Type- 勾选TextAssetTexture2D,然后选项过滤后的全部文件夹,Export-Selected assets。(导入音频也差不多)。
  4. 导出文件需要改后缀。
    • *.moc.txt文件改为model.moc
    • *.model.txt文件改为model.json
    • *.2048文件夹改为textures (可选)
    • L_*.png文件改为texture_0*.png (可选)
    • motions文件夹中*.mtn.txt文件改为*.mtn
  5. 使用Advanced Renamer批量修改文件名字。
  6. 配置model.json文件。修改后,注释为要修改的地方
    {
     "type": "Live2D Model Setting",
     "name": "L_103300460",
     "model": "model.moc",   //moc文件相对位置
     "textures": [                       //png文件相对位置
     "textures/texture_00.png",
     "textures/texture_01.png",
     "textures/texture_02.png",
     "textures/texture_03.png"
    ],
    "trigger": [
    ],
     "motions": {
         "idle": [
           { "file": "motions/idle.mtn","fade_in":7000, "fade_out":7000 ,"cv_id":1}
         ],
         "idle_click": [
           { "file": "motions/02.mtn","fade_in":0, "fade_out":0,"cv_id":2},
           { "file": "motions/03.mtn","fade_in":0, "fade_out":0 ,"cv_id":3},
           { "file": "motions/04.mtn","fade_in":0, "fade_out":0 ,"cv_id":4},
           { "file": "motions/05.mtn","fade_in":0, "fade_out":0,"cv_id":5},
           { "file": "motions/06.mtn","fade_in":0, "fade_out":0 ,"cv_id":6},
           { "file": "motions/07.mtn","fade_in":0, "fade_out":0 ,"cv_id":7},
           { "file": "motions/08.mtn","fade_in":0, "fade_out":0,"cv_id":8},
           { "file": "motions/09.mtn","fade_in":0, "fade_out":0 ,"cv_id":9},
           { "file": "motions/10.mtn","fade_in":0, "fade_out":0 ,"cv_id":10},
           { "file": "motions/11.mtn","fade_in":0, "fade_out":0 ,"cv_id":11},
           { "file": "motions/12.mtn","fade_in":0, "fade_out":0 ,"cv_id":12},
         ]
     }
    }
    可以使用Live2dViewerEX修改,新建配置文件,然后复制相应配置代码。
    关于moc3格式,应该需要使用unity在文件夹打包成unity的assets格式或者ab格式,使用UnityLive2DExtractor提取。
    我已经整理好了live2d文件,在github,我没有提取音频。
文章作者: Eikan
文章链接: https://eikanya.github.io/post/%E6%96%B9%E8%88%9F%E6%8C%87%E4%BB%A4/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Eikanya‘s Blog

评论