cocos2d x 2.x - Error with Spine Atlas file -


I am using cocos2d-x 2.2.3 and spine 1.9.07. I have exported "Vendor" ATLAS "", "Vendor Jason" and "Vendor Page" by Spine and put them in the Resource folder of my project. Then, in the init () method I add these codes to use the skeleton animation

  skeletonNode = CCSkeletonAnimation :: createWithFile ("spine / seller.json", "spine / seller Atlas "); SkeletonNode-> Debugslots = true; Skeleton-gt; Timezone = 0.5f; Skeleton-gt; Set animation ("walk" is true); SkeletonNode-> DebugBones = true; CCSize windowSize = CCCCRR :: Shared Directive () - & gt; GetWinSize (); Skeleton-gt; Setposition (CCP (Window Easy / 2, 50)); AddChild (skeletonNode);   

but it throws out an error like this:

  zero ccobies :: release (zero) {CCAsert (M_URFrance> 0, "more in reference number Must be 0 "); --m_uReference; If (m_uReference == 0) {delete it; }}   

This means that the blanket is taped, so it should be something wrong with the Atlas file. But I do not know what is wrong: (

Any help would be appreciated! D

This is because Cocos 2 DX 2.2.3 is using an old backbone parser, spin 1.9 makes the Atlas file in a different format, it has an extra line of" Size: xxx, xxx " Before reading at Atlas CPP (0, end, end strip); (if read (end, end straw) return abortAtlas (self);

Note that You need to update other problems such as unknown attachment type mesh / skin mesh, spine 1.9. You need to update the spine code in 2.2.3 to fix it.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -