Nikke-db / Nikke-db.github.io

156 stars 56 forks source link

It doesn't work on Spine Web Player #13

Closed JiangBoHu closed 7 months ago

JiangBoHu commented 7 months ago

Help plz, The error message is on my photo. files: l2d of c470_00 🙏🙏🙏 Official runtime: http://esotericsoftware.com/spine-player Screenshot_2024_0210_123239

Koshirei commented 7 months ago

zip me the files you are using. I don't know which files of c470 you tried to load , full body, aim or cover? the full body is a double-png asset, however the custom spine loader feature can only accept 1 png as of now

JiangBoHu commented 7 months ago

zip me the files you are using. I don't know which files of c470 you tried to load , full body, aim or cover? the full body is a double-png asset, however the custom spine loader feature can only accept 1 png as of now

full body,like other 1-png l2d for version 4.1.* ,so is c942, Their skel can't load

JiangBoHu commented 7 months ago

zip me the files you are using. I don't know which files of c470 you tried to load , full body, aim or cover? the full body is a double-png asset, however the custom spine loader feature can only accept 1 png as of now

full body,like other 1-png l2d for version 4.1.* ,so is c942, Their skel can't load

oh, I tried spine-player4.1.js, they are working. but lower version l2d are breakdown, Do I have to use both versions of the js file at the same time?

Koshirei commented 7 months ago

change the version in the cdn link directy js latest 4.0 https://unpkg.com/@esotericsoftware/spine-player@4.0.*/dist/iife/spine-player.min.js . I don't think there is a 4.0. css file, but the 4.1. css should work with the 4.0.* js.
If you are making you own web spine viewer you'll have to load both files in the front end and use the version you need per asset. Check out the front repository how I have done it

JiangBoHu commented 7 months ago

change the version in the cdn link directy js latest 4.0 https://unpkg.com/@esotericsoftware/spine-player@4.0.*/dist/iife/spine-player.min.js . I don't think there is a 4.0. css file, but the 4.1. css should work with the 4.0.* js. If you are making you own web spine viewer you'll have to load both files in the front end and use the version you need per asset. Check out the front repository how I have done it

Yes, I find the way in you repository 【spine-web-player-template】, and its also cant run the 2-png l2d right?

Koshirei commented 7 months ago

spine web player template should be able to load a two png spine animation.

JiangBoHu commented 7 months ago

spine web player template should be able to load a two png spine animation.

I failed, and it seems that Web Player doesn't support it

Koshirei commented 7 months ago

c470_00 is running fine on spine-web-player-template image I honestly do not understand your issue, where you are trying to load your file, nor which files are you even loading. The error message of the initial post should not appear on nikke-db as I have a custom message written. if you are making a personal project using spine web player, publish it to git and if I find time I will take a look at it and try to resolve your issues

JiangBoHu commented 7 months ago

c470_00 is running fine on spine-web-player-template image I honestly do not understand your issue, where you are trying to load your file, nor which files are you even loading. The error message of the initial post should not appear on nikke-db as I have a custom message written. if you are making a personal project using spine web player, publish it to git and if I find time I will take a look at it and try to resolve your issues

Oh, thats, i want to die, I use the original demo, it works. Now i remember it, I modified the skel's code by VSCode before I used the spine-player4.1. Even though I pressed Ctrl+z, it was not restored...

JiangBoHu commented 7 months ago

spine web player template should be able to load a two png spine animation.

I thank you very much, You let me konw that it can be used on original code. Now, It's all right, thank you.