# cocos310DragonLua **Repository Path**: wwwfoxxp/cocos310DragonLua ## Basic Information - **Project Name**: cocos310DragonLua - **Description**: cocos 3.10 参考别人的修改 自己跑通了一遍 在lua层导入4.5版本龙骨源码 源网址 http://bbs.egret.com/thread-25058-1-1.html https://code.csdn.net/leezjl/dragonbonesforcocoslua/tree/master 居然在白鹭社区搜到了cocos lua的帖子 尴尬 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-01-28 - **Last Updated**: 2021-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cocos310DragonLua cocos 3.10 参考别人的修改 自己跑通了一遍 在lua层导入4.5版本龙骨源码 源网址 http://bbs.egret.com/thread-25058-1-1.html https://code.csdn.net/leezjl/dragonbonesforcocoslua/tree/master 居然在白鹭社区搜到了cocos lua的帖子 尴尬 几个可能的坑 >坑1 C++项目中需要添加附加包含目录 $(ProjectDir)..\Classes\dragonBones >坑2 自己用python导依然失败 只能用博主的源码改 本项目\frameworks\runtime-src\Classes\auto_dragonbones\lua_CCArmatureDisplay_manual.cpp 中4个函数的返回值需要注释掉 否则回报奇怪的错误 //return stack-> (handler, 3); //return stack->executeFunctionByHandler(handler, 4); //return stack->executeFunctionByHandler(handler, 3); //return stack->executeFunctionByHandler(handler, 4); >坑3 本项目\frameworks\runtime-src\Classes\dragonBones\CCArmatureDisplay.h 中需删掉博主的注释 去掉换行 /*============================add by xiaoz============================*/ std::function animationEventListener; std::function frameEventListener; /*============================add by xiaoz============================*/