Closed wijat closed 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
3.3final 把 luajit 替换为了 lua。所以字节码要重新编译。
之前我的项目是3.3rc版本,今天刚刚换了3.3final版本,然后加密的脚本就运行不了了。
脚本是用命令compile_scripts.bat加密的。
执行cc.LuaLoadChunksFromZIP("res/game.zip")的时候报错。