04 2014 档案

cocos2d: Cast name Layer doesn't include modular name which it belongs to,please add the modular name
摘要:cocos2d-x 3.0beta使用cocos2d-x + lua 中local layer = tolua.cast(node, "Layer") 出现以上的,虽然还是可以正常运行,但是还是想找到问题出在哪里搜索标题的关键字找不到,看来是lua中抛出的,那只能搜索tolua相关的函数,找到是 t... 阅读全文

posted @ 2014-04-30 15:02 影语者 阅读(595) 评论(0) 推荐(0)

关于cocos2dx+lua使用cocosbuilder乱弹
摘要:cocos2d-x 3.0 + cocosbuilder 3.0使用中发现每个按钮回调都要写一行对应的回调如:1 local function onMenuItemAClicked()2 ...3 end4 5 TestMenusLayer["onMenuItemAClicked"] = o... 阅读全文

posted @ 2014-04-30 07:48 影语者 阅读(1084) 评论(0) 推荐(0)

quick-cocos2d-x 杂记
摘要:记录使用quick-cocos2d-x中的问题Q: 派生自Layer的onEnter() 怎么没有进入后来,发现是要在:ctor() 中加入 self:setNodeEventEnabled(true)A: 在 CCNodeExtend.lua 中查看 setNodeEventEnabled 的源... 阅读全文

posted @ 2014-04-14 12:18 影语者 阅读(554) 评论(0) 推荐(0)

sublime text2 与 jshint
摘要:mac 10.7.4因为是javascript的初学者,其余时间常用的是c++和python,故经常把其他语言的语法带到javascript里面,所以决定安装jshint,帮我检测首先通过npm 安装 jshint: > npm install jshint -g再在 sumlime text2 中 打开包管理器, 安装 jshint在 Tools->Build System 中选择 Jshint当按下 Command + B 的时候,下面就会提示Jshint检测的结果如果再安装一个 SublimeOnSaveBuild插件,就更好其中有个问题:安装完 SublimeOnSaveB 阅读全文

posted @ 2014-04-05 10:05 影语者 阅读(2578) 评论(0) 推荐(0)

Caught exception: TypeError: Cannot call method 'insert' of undefined
摘要:mac 10.9.1, pomelo 0.8.9使用 pomelo.app.get('dbclient').insert(sql, args, function(err, res) {...});出现Caught exception: TypeError: Cannot call method 'insert' of undefined可以确定的是,在前面的代码中已经使用过该方法如果换成var dbclient = pomelo.app.get('dbclient');dbclient.insert(sql, args, function(err 阅读全文

posted @ 2014-04-04 18:04 影语者 阅读(731) 评论(0) 推荐(0)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual...
摘要:mysql 下输入select * from Character;提示错误ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Character' at line 1如果换成 select * from `Character`; 又正常了,可以确认的是table name中没有空格其他table,比如Player,不用加`` 阅读全文

posted @ 2014-04-04 14:43 影语者 阅读(22629) 评论(0) 推荐(0)

Linux 杂记
摘要:关闭蜂鸣器:setterm -blength 0整站下载:wget -r -p -np -k URL 阅读全文

posted @ 2014-04-01 15:58 影语者 阅读(145) 评论(0) 推荐(0)

导航