It seems the way cocos2d-x is structured right now I can not upgrade flatbuffers… (Or I’m just an idiot and can’t find the schemas anywhere).
All the generated headers are checked into cocos2d-x and none of the flatbuffers schema’s are available for re-generation… This pretty much makes it impossible for me to build cocos2d-x with the latest flatbuffers library instead of currently whats used (flatbuffers v1.0). This is obviously is not ideal for an open source project.
Am i missing something here? Is the a flag to disable ‘editor-support’? Where are the flatbuffer schemas so I can rebuild the generated files with an upgraded flatbuffers compiler? (CSParseBinary, CSTabControl, CSLanguageDataBinary, etc,).
@stevetranby sounds like a good idea, but i don’t know what .fbs files are needed and if these files work or not. @noodlecake will you please help to verify if these files work or not and are these files all needed.
@zhangxm Yes those are the correct files. These files do work, and I have used them to upgrade to flatbuffers 1.4. However, the schemas in these .fbs files you attached don’t seem to match the current schema in cocos2d-x… So I’m assuming there is a version mismatch somewhere. Seems related to a field called ‘WidgetOptions’ that doesn’t seem to be present in the current cocos2d-x project I have…
Anyways, these are the correct files and can be used. Thx.
@noodlecake hi, can you share your generated flatbuffer file, I just try to generate but it show some error with cocos2dx 3.13.1 in ButtonReader, should I edit ButtonReader.cpp ?
You may have to edit some cocos2d-x source based on the version of flatbuffers you are using… ( and based on the what options you are providing to flatc )