It looks like the new Lua bindings with 0.12 have introduced some issues with super classes not reporting correctly. From what I understand, as classes are registered (via tolua_cclass), all the super classes are registered as well (via mapsuper).
However, in the most recent version of LuaCocos2d, it looks like it’s not guaranteed that the parent class of certain CCObjects are registered before their children. Specifically the issue I’ve found is that
is now before
What this means is when you try and do something like this:
label = CCLabelTTF:labelWithString("Test Label", "Marker Felt", 16.0)
The inner c code will fail checking the argument:
Because CCNode hasn’t been added in the class hierarchy. Unfortunately this makes many of the cocos objects unusable with the lua bindings
Is anyone else experiencing this behavior? If so, it would be great to get the LuaCocos2d.cpp file regenerated with explicit ordering as it seemed to before. At the least, git history says that these were ordered correctly before