dualface / v3quick

cocos2d-x for C++
http://www.cocos2d-x.org
278 stars 165 forks source link

刚刚从升级3.3rc 升级到3.3final版本,lua加密的代码运行不了。 #403

Closed wijat closed 9 years ago

wijat commented 9 years ago

之前我的项目是3.3rc版本,今天刚刚换了3.3final版本,然后加密的脚本就运行不了了。

脚本是用命令compile_scripts.bat加密的。 qq 20150127200908

执行cc.LuaLoadChunksFromZIP("res/game.zip")的时候报错。

wijat commented 9 years ago

报错信息:

LOAD LUA FILE: D:/myGameDir/wshRelease/src/main.lua


lua_loadChunksFromZIP() - load zip file: res/game.zip*

[LUA ERROR] load "app.battle.BattleArrayConfig", error: syntax error during pre-compilation.

[LUA ERROR] load "app.battle.BattleController", error: syntax error during pre-compilation.

[LUA ERROR] load "app.battle.BattleLogic", error: syntax error during pre-compilation.

[LUA ERROR] load "app.battle.element.models.Actor", error: syntax error during pre-compilation.

lua_loadChunksFromZIP() - loaded chunks count: 0

can not get file data of src/app/MyApp.lua

[LUA ERROR] [string "D:/myGameDir/wshRelease/src/main.lua"]:18: module 'app.MyApp' not found: no field package.preload['app.MyApp'] no file '.\app\MyApp.lua' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\lua\app\MyApp.lua' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\lua\app\MyApp\init.lua' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\app\MyApp.lua' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\app\MyApp\init.lua' no file 'D:/myGameDir/wshRelease/src/app\MyApp.lua' no file 'src/' no file '.\app\MyApp.dll' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\app\MyApp.dll' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\loadall.dll' no file '.\app.dll' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\app.dll' no file 'D:\cocos\quick-cocos2d-x\quick\player\win32\loadall.dll

dualface commented 9 years ago

3.3final 把 luajit 替换为了 lua。所以字节码要重新编译。