筒子们,Live2d 来了

:laughing: 快来尝鲜

好像不行啊…
npm install没问题…
npm run build跑完有3个Error…
最终编辑器里也是报错moc.acquireUnmanagedMoc is not a function
{project}\extensions\live2d_cubismsdk_cocoscreator\这个目录里跑的npm没错吧…?

npm run build的结果 \``` D:\Projects\CCC\Model_Demo_3_6_2\extensions\live2d_cubismsdk_cocoscreator>npm run build

live2d_cubismsdk_cocoscreator@0.0.1-alpha.1 build
tsc -b

src/Dump/Query/IQueryNodeResult.ts:8:34 - error TS1261: Already included file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Dump/Query/IComponentValue.ts’ differs from file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/dump/Query/IComponentValue.ts’ only in casing.
The file is in the program because:
Imported via ‘./IComponentValue’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Dump/Query/IQueryNodeResult.ts’
Matched by include pattern ‘./src’ in ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/tsconfig.json’

8 import type IComponentValue from ‘./IComponentValue’;
~~~~~~~~~~~~~~~~~~~

tsconfig.json:18:15
18 “include”: ["./src"],
~~~~~~~
File is matched by include pattern specified here.

src/Inspectors/Utils.ts:9:35 - error TS1261: Already included file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Dump/Query/IQueryNodeResult.ts’ differs from file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/dump/Query/IQueryNodeResult.ts’ only in casing.
The file is in the program because:
Imported via ‘…/Dump/Query/IQueryNodeResult’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Utils.ts’
Imported via ‘…/…/Dump/Query/IQueryNodeResult’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismParametersInspector.ts’
Imported via ‘…/…/Dump/Query/IQueryNodeResult’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismPartsInspector.ts’
Imported via ‘…/…/Dump/Query/IQueryNodeResult’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismRenderController.ts’
Matched by include pattern ‘./src’ in ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/tsconfig.json’

9 import type IQueryNodeResult from ‘…/Dump/Query/IQueryNodeResult’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/Inspectors/Components/CubismParametersInspector.ts:16:35
16 import type IQueryNodeResult from ‘…/…/Dump/Query/IQueryNodeResult’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismPartsInspector.ts:13:35
13 import type IQueryNodeResult from ‘…/…/Dump/Query/IQueryNodeResult’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismRenderController.ts:21:30
21 import IQueryNodeResult from ‘…/…/Dump/Query/IQueryNodeResult’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
tsconfig.json:18:15
18 “include”: ["./src"],
~~~~~~~
File is matched by include pattern specified here.

src/Inspectors/Utils.ts:10:53 - error TS1261: Already included file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Dump/Input/InputDumpInterface.ts’ differs from file name ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/dump/Input/InputDumpInterface.ts’ only in casing.
The file is in the program because:
Imported via ‘…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Utils.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismLookController.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismParametersInspector.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismPartsInspector.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismRenderController.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismRenderer.ts’
Imported via ‘…/…/Dump/Input/InputDumpInterface’ from file ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/src/Inspectors/Components/CubismUserDataTag.ts’
Matched by include pattern ‘./src’ in ‘D:/Projects/CCC/Model_Demo_3_6_2/extensions/live2d_cubismsdk_cocoscreator/tsconfig.json’

10 import type { IEnumItem, IInputDumpValueBase } from ‘…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/Inspectors/Components/CubismLookController.ts:13:51
13 import { ICubismLookController, IInputDump } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismParametersInspector.ts:15:56
15 import { ICubismParametersInspector, IInputDump } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismPartsInspector.ts:17:51
17 import { ICubismPartsInspector, IInputDump } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismRenderController.ts:22:62
22 import { ICubismRenderController, IInputDump, IMember } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismRenderer.ts:13:45
13 import { ICubismRenderer, IInputDump } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
src/Inspectors/Components/CubismUserDataTag.ts:13:48
13 import { ICubismUserDataTag, IInputDump } from ‘…/…/Dump/Input/InputDumpInterface’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is included via import here.
tsconfig.json:18:15
18 “include”: ["./src"],
~~~~~~~
File is matched by include pattern specified here.

Found 3 errors.
```


把这个文件夹名字改成大写


切换动画时容易崩 :rofl:

image

我是修改 配置 build 过的 :rofl:

    "forceConsistentCasingInFileNames": false,

不知道为啥 运行起来 会莫名其妙掉帧 正常就60 但是会掉到20多然后瞬间回到60 一卡一卡的


这种修改值的方式感觉有点蛋疼,试了半天才知道要放到lateUpdate里面改 :rofl:

image 为啥所有模型这里的moc3文件都不可以用?npm install 和 build都过了

把{project}\extensions\live2d_cubismsdk_cocoscreator\src\dump 改成 Dump

mark!!!

我也是这样,问下你这边解决了么

sample里面的model用不了,去官网下载模型。官网的模型也有问题,眨眼只有眼皮动,眼珠不动,吓唬谁…

感觉还是太不成熟了。编辑器里面各种卡死

cocos使用sdk31以上打包,Android 12系统手机安装不了,打开也是白屏,官方大佬研究一下呗

下的别人做的live2d,在编辑器里超卡,动一下参数等一会才变,偶尔还会参数变成0,但模型没动

1赞

一样,感觉很卡

image

3.7.2报错,下载的是最新版:CubismSdkForCocosCreator-4-r.1-beta.2,咋整呢?

image

上了吗??

请问要在哪里修改呢?

请问解决了嘛?