05 2014 档案

[ISSUE]Call to function 'print_children' that is neither visible in the template definition nor found by argument-dependent lookup
摘要:http://clang.llvm.org/compatibility.html#dep_lookup在使用rapidxml进行保存时rapidxml::xml_document doc;std::ofstream out(filepath);out >> doc;提示错误:Call to func... 阅读全文

posted @ 2014-05-27 10:29 影语者 阅读(1059) 评论(0) 推荐(0)

[ISSUE]attempt to call method 'trainPlayer' (a table value)
摘要:function TrainApi:trainPlayer() 确定这个函数是存在的,如果调用TrainApi其他函数也是正确的只能打一个debug.debug(), 查看一下原来是在function TrainApi:ctor() self.trainPlayer = nilend囧囧最近才从C... 阅读全文

posted @ 2014-05-18 18:33 影语者 阅读(659) 评论(0) 推荐(0)

[ISSUE]lua function
摘要:刚开始使用lua,还有点不熟悉 class 是网上常见的实现 Test = class("Test") function Test:ctor() self.vark = 0 end function Test:isTest() self.vark = 0 end 如果调用self.isTest() 阅读全文

posted @ 2014-05-06 07:05 影语者 阅读(230) 评论(0) 推荐(0)

[ISSUE]invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_dispatchCustomEvent'
摘要:环境: cocos2d-x + lua 3.0beta2首先声明全局变量UIEventDispatcher = cc.EventDispatcher:new()然后在使用的地方dispathCustomEventUIEventDispatcher:dispatchCustomEvent("test"... 阅读全文

posted @ 2014-05-03 09:11 影语者 阅读(7630) 评论(0) 推荐(0)

[ISSUE]Lambda binding for lua is not supported.
摘要:环境: cocos2d-x + lua 3.0beta2想使用CCNotification, 发现3.0已经替换为CCEvent, 晃了一眼设计,不错原来在C++ 上自己也实现了一套Event,因为不满意CCNotification 没有优先级,没有自定义分类(比如UI,Logic),不能携带数据,... 阅读全文

posted @ 2014-05-02 22:33 影语者 阅读(2710) 评论(0) 推荐(0)

[ISSUE]attempt to call method 'addChild' (a nil value)
摘要:cocos2d-x + lua 3.0 beta2, cocosbuilder 3.0xxx 是在cocosbuider 里面某个node的name, 属性选择的Doc root var当MenuTest["xxx"]:addChild() 出现如题错误查看type(MenuTest["xxx"])... 阅读全文

posted @ 2014-05-01 22:00 影语者 阅读(2331) 评论(0) 推荐(0)

导航