We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Generation of scripting/lua/cocos2dx_support/LuaCocos2d.cpp is unclear
Generation of scripting/lua/cocos2dx_support/LuaCocos2d.cpp is unclear
Bug #2665 [Rejected]
Status: | Rejected | |
---|---|---|
Start date: | 2013-08-21 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | lua | |
Target version: | - |
(9re opened this issue 9 months ago in github)
I have read the description in https://github.com/cocos2d/cocos2d-x/blob/gles20/tools/tolua%2B%2B/README
and by using tolua**~~1.0.92
I cannot make the same LuaCocos2d.cpp by
\$ ant~~buildfile build_macosx.xml
instead it generates LuaCocos2d.cpp with many diffs like
static int tolua_collect_CCAnimationFrame
{
CCAnimationFrame* self = tolua_tousertype;
@ -5609,9 +5534,7
@ static int tolua_Cocos2d_CCArray_createWithObject00(lua_State* tolua_S)CCObject* pObject = ((CCObject**) tolua_tousertype);
{
CCArray** tolua_ret = (CCArray**) CCArray::createWithObject;
I made some modification on ccLanguageType for supporting japanese(#1665) and generated LuaCocos2d.cpp but most of diffs are unintended so I have to git add —patch and select the changes that I really wanted.
I want to know the proper way to do it.
Comments:
dualface commented:
For mac, please use tolua**.Mac.zip.
For windows, use tolua**.zip.
Use build.php generate valid LuaCocos2d.cpp
\$ cd tools/tolua*+
\$ php build.php
9re commented :
Thanks!
Isn’t there linux version or source code version for tolua*+?