Jump to content

Error with Spine version 3.8.60


Recommended Posts

Hey

I trying to using Spine in my panda2 project, but get an error:

 

spine.js:4426 Uncaught Error: Slot not found: name at SkeletonJson.readSkeletonData (spine.js:4426) at Class.staticInit (spine.js:6686) at Class.staticInit (core.js:1123) at new Class (core.js:1157) at Class.init (main.js:105) at new Class (core.js:1165) at Class.init (main.js:38) at new Class (core.js:1165) at Class._setSceneNow (system.js:397) at Class._run (system.js:355)

I am using spine version: 3.8.60

Import as this:

.require(
    'game.assets',

    'plugin.spine'
   
    )



And further:

 game.addAsset('mytest.atlas');
    game.addAsset('mytest.json');


And use like this:

this.sprite = new game.Spine('mytest.json');
           this.sprite.play('idle', true);
            this.sprite.speed = 0.01
            this.sprite.addTo(game.scene.stage);

When I download a spine spritesheet (spineboy) made with Spine version: 3.6.50 everything works. I can see  different in the Spine json files at the "skins" declaration. Dont know if that's the problem :

version: 3.8.60

"skins": [
        {
            "name": "default",
            "attachments": {
                "head": {
                    "head": {
                        "x": 156.27,
                        "y": -4.07,
                        "rotation": 92.17,
                        "width": 400,
                        "height": 397
                    }
                }
            }
        }
    ],

version: 3.6.50:

"skins": {
		"default": {
			"dust01": {
				"dust01": {
					"width": 96,
					"height": 73
				},
				"dust02": {
					"x": -8.12,
					"y": 20.56,
					"width": 86,
					"height": 88
				},
				"dust03": {
					"x": -5.49,
					"y": 34.26,
					"width": 62,
					"height": 52
				}
			}

I have downloaded the latest Spine.js version on panda.io

I have attachs the Spine spritesheets export files and my main file

Link to post
Share on other sites
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...