凌飞阁

pio插件 Live2D血小板模型不加载动画bug的修复

插件地址:https://github.com/Dreamer-Paul/Pio
模型地址:https://mx-model.ga/model/platelet-2.html

在某些未知的服务器环境下使用该模型会触发bug导致没有模型动画;
检查代码后发现是因为motions拼写原因。将motions内所有的大写文件改成小写后,再修改model.json对应文件名即可成功加载动画

修正后模型可到我的Github下载

正确代码如下

"posted": "Dreamer-Paul",
"type": "Live2D Model Setting",
"name": "model",
"model": "model.moc",
"textures": [
    "textures/texture_00.png"
],
"layout": {
    "center_x": -0.3,
    "center_y": -0.08,
    "width": 1.9
},
"hit_areas_custom": {
    "head_x": [-0.8, 0.85],
    "head_y": [-0.45, 0.45],
    "body_x": [-0.75, 0.45],
    "body_y": [-0.5, 0]
},
"motions":{
    "idle":[
        {"file":"motions/idle.mtn"}
    ],
    "sleepy":[
        {"file":"motions/nemui.mtn"}
    ],
    "flick_head":[
        {"file":"motions/anone synced.mtn"}
    ],
    "tap_body":[
        {"file":"motions/dance.mtn"}
    ]
}

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »