Cocostudio bug in cocos2d-x 3.15

When I make a label as a custom size, it does not align,
Sometimes, animation stops while it is running.

I want to upgrade to cocos2d-x 3.15 because of sound problems in android 7.0,
Cocos studio is not available due to problems.

Please review and fix bug.

CocosStudio is deprecated and is no longer supported by the Cocos team

I know it too.
What I’m saying is that there is a problem playing .csb files in cocos2d-x 3.15.
(It works well in 3.141.)

could you provide a test project and upload it to the forum, I will take time to look at it.

I have the same problem. it works well on 3.14.1.but 3.15 is not

You can simple load csb file with text.

Made a couple of tests:

  • independently of other settings described below the label with the alignment on the right is not visible on the screen. If using a custom font the labels with the alignment on the center are missing too.
  • if using custom size, all the labels are aligned on the center.
  • if using auto size, all the labels are aligned on the left.
  • vertical alignment seems to not work at all.

Also if you try to load a scene with an ui::Button the app is killed and there is a message in the console: Message from debugger: Terminated due to memory issue


I’m attaching a test project where you can test all those cases. Test.zip (3.4 MB)

Please stop saying that Cocos Studio is eol’ed, because this is a problem in engine itself. They changed something in regards to labels and it nuked compatibility.

I solved it.
Copying the Cocostudio folder from Cocos 2d-x 3.141 to 3.15 will work fine.
(The Flatbuffer code section needs to be modified slightly.)

However, after solving this problem, I had other problems.
When a Node or Sprite has an Action,
The animation stops randomly.
(This bug has nothing to do with the Cocos studio code.)

This problem is also solved by copying Cocos 3.141’s Action code to 3.15.

3.15 has a problem.

1 Like

Cocos team please fix this :slight_smile:

@owen it seems that moving to new flatbuffer version in 3.15 causes the existent cocostudio projects can’t be loaded

I’ve created an issue on github: