dreamer-paul / pio Goto Github PK
View Code? Open in Web Editor NEW🎃 一个支持更换 Live2D 模型的 JS 插件
Home Page: https://paugram.com/coding/add-poster-girl-with-plugin.html
License: GNU General Public License v2.0
🎃 一个支持更换 Live2D 模型的 JS 插件
Home Page: https://paugram.com/coding/add-poster-girl-with-plugin.html
License: GNU General Public License v2.0
draggable
正常:图标应位于页面左侧
实际:位置错乱,相对于看板娘本身
typecho主题使用了PJAX功能后,切换页面会无法加载模型或加载图像错乱,具体报错信息为:
Uncaught TypeError: Cannot read property 'createProgram' of undefined
at mt.loadShaders2 (VM743 l2d.js:1)
at mt.initShader (VM743 l2d.js:1)
at mt._$ZT (VM743 l2d.js:1)
at Y.preDraw (VM743 l2d.js:1)
at ft.update (VM743 l2d.js:1)
at o.update (VM743 l2d.js:1)
at _ (VM743 l2d.js:1)
at t (VM743 l2d.js:1)
应该如何解决呢?
现在手机上也会显示,会影响网站内容的显示,希望能够改善一下
用的这个方法转的血小板模型:https://imjad.cn/archives/lab/add-dynamic-poster-girl-with-live2d-to-your-blog-03
模型文件链接:https://file.agint.me/typecho%E6%8F%92%E4%BB%B6/kesshouban_v2.1.rar
用上去以后不能像imjad.cn博客那样点击蹦蹦跳跳,我的博客地址:https://agint.me/
显示不出来,然后看console说是读取文件404,emmm。
有些模板会把左边占用掉然后遮住了模型
可不可以更进一步自定义位置呢,例如https://blog.ieleven.xyz:63363/
右上角合理的位置
安装最新版本Pio
正常情况下设置页面不会报错
报错,内容如下,且不显示模型:
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/www.crashblock.top/usr/plugins/Pio/Plugin.php on line 34
Warning: file_get_contents(): Failed to enable crypto in /www/wwwroot/www.crashblock.top/usr/plugins/Pio/Plugin.php on line 34
Warning: file_get_contents(https://api.paugram.com/update/?name=Pio¤t=2.4&site=blog.crashblock.top): failed to open stream: operation failed in /www/wwwroot/www.crashblock.top/usr/plugins/Pio/Plugin.php on line 34
在一个pjax模板中运行
正常左下角应加载pio,我看到的没有hhhh
希望能在板娘置右的时候菜单显示在左侧,不然容易误点到滚动条。
%t 值无效就只显示 “%t”有点奇怪
是不是直接覆盖就可以了
.pio-container .pio-action {
top: 5%;
bottom: 1%;
display: flex;
justify-content: center;
flex-direction: column;
opacity: 0;
position: absolute;
transition: opacity .3s;
}
使用 flex 让其居中对齐似乎是一种不错的方式
如题
自定义看板娘所在的位置无效
展现模式调成固定后点击x按钮后无法再次调出模型
https://github.com/Eikanya/Live2d-model下载模型后导入,并稍加修改model.json
看不到模型
Centos
我觉得是模型版本问题,插件默认的model.json是v1
而给的model是v3的
从网上找到大佬解包少鸽手游的模型1,丢上服务器发现不显示。
查了一下发现json格式不对,跑l2d官网一看才发现是版本的问题,大佬您的插件只支持旧sdk2.1的json加mtn文件,不支持新的sdk3模型。
翻了issues发现有人遇到过这种情况(就是那个血小板的)。里面提到了jad大佬用Cubism3Editor直接3转2的方法2。但是这个方法转出来的模型有bug,而且前提是要能拿到模型的源文件(.cmox等)。游戏中解包拿到的肯定是导出过的模型,只能view不能edit,所以方法不可用。
几年前的老游戏用的还是sdk2.1,这几年都是sdk3了,官方也已淘汰2...然而翻了jad大佬和另外几位大佬的repo,好像都是2的...
(jad大佬好像说过升级sdk很难...
(那我这种菜鸡萌新只能等新的大佬写出新版本了15551
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.