Cocos2d.pkg and LuaCocos2d.cpp mismatch

the resulting file ‘LuaCocos2d.cpp’ differs from the original file extracted from cocos2d-1.0.1-x-0.10.0.zip package.
I assume that .pkg files are not the most recent versions.

tolua++.exe tCocos2do LuaCocos2d.cpp Cocos2d.pkg

Command results in the errors below.

** tolua internal error: [string “tolua embedded: src/bin/lua/package.lua”]:274:
#CCFileUtils.pkg: No such file or directory: CCFileUtils.pkg.

Even if I remove ‘CCFileUtils.pkg’ from Cocos2d.pkg ‘LuaCocos2d.cpp’ files still differ.

After fighting with it for line 2 hours, it was just one line of code

Replace

#include "LuaCocos2d.h"

with

#include "LuaCocos2d.h" using namespace cocos2d;

in the generated LuaCocos2d.cpp.

Thanks!

By the way, where can I find CCFileUtils.pkg file??

It seems like the CCFileUtils.pkg file has been removed.

Just delete the line

$pfile "CCFileUtils.pkg"

from Cocos2d.pkg and use the little patch I posted here: http://www.cocos2d-x.org/boards/11/topics/6729