5

基于 NodeJs 的 live2d 后端 Api 服务器

 2 years ago
source link: https://blog.hclonely.com/posts/f19bd1b6/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

基于 NodeJs 的 live2d 后端 Api 服务器

  1. 首页

适用于live2d.user.js,live2d_demo的基于 Nodejs 的后端 Api.

  1. 安装NodeJs,Git
  2. 克隆本项目git clone https://github.com/HCLonely/live2dNodeApi.git
  3. 定位到项目目录cd live2dNodeApi
  4. 安装依赖npm i -Scnpm i -S
  5. 启动服务器npm start
命令功能额外说明
npm start启动 api 服务器
npm run update重新生成modelList.json文件用于增加或删除模型后更新模型列表
npm run check检测模型的主配置文件格式及模型文件的完整性
npm run screenshot生成模型的预览图,放在preview文件夹
npm run pre在网页上查看模型的预览图,需要先生成

修改config.json文件进行配置:

模型目录结构

Shell

详情请参考models目录

依赖安装慢

npm 安装慢

下载 Chromium 慢

更新模型后顺序乱了

请重命名模型文件夹进行排序,参考models目录。

最后修改:2022-03-03 19:11:25
如果觉得我的文章对你有用,请随意赞赏
来发评论吧~
Powered By Valine
v1.4.16

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK