3.3 没有提供player,之在创建的项目下提供了简易版本的player
1。自编译可以运行,运行环境:vs2013 + babelua 。
运行项目,不点Play,报了很多file not exist,都是和framework相关
提示如下:
Lua scripts folder: F:\test\ff\src
Lua exe path: F:\test\ff\runtime\win32\ff.exe
Working path: F:\test\ff\runtime\win32
Command line: F:\test\ff\
Debugger attached to process
0x004a01c0: VM created
package.path: ;.?.lua;F:\test\ff\runtime\win32\lua?.lua;F:\test\ff\runtime\win32\lua?\init.lua;;f:\Program Files (x86)\Lua\5.1\lua?.luac
relative: framework.anysdkConst
findfile: framework.anysdkConst
Load script(0): F:\test\ff\src\framework.anysdkConst relative (file not exist)
relative: framework.audio
findfile: framework.audio
Load script(1): F:\test\ff\src\framework.audio relative (file not exist)
relative: framework.cc.components.behavior.EventProtocol
findfile: framework.cc.components.behavior.EventProtocol
Load script(2): F:\test\ff\src\framework.cc.components.behavior.EventProtocol relative (file not exist)
relative: framework.cc.components.behavior.StateMachine
findfile: framework.cc.components.behavior.StateMachine
Load script(3): F:\test\ff\src\framework.cc.components.behavior.StateMachine relative (file not exist)
(省略)
2。点击屏幕中的Play才会运行脚本,可以正常运行。但是仍然会报 file not exist
提示如下:
relative: src/app/scenes/MainScene.lua
findfile: src/app/scenes/MainScene.lua
Load script(100): F:\test\ff\src\src\app\scenes\MainScene.lua relative (file not exist)
但是这时 MainScene.lua 已经成功运行了。
3。ccsloader失败
代码和资源完全拷贝quick自带的ccsloader的例子
cc.FileUtils:getInstance():addSearchPath(“res/DemoHead_UI/”)
app:loadCCSJsonFile(self, “DemoHead_UI.ExportJson”)
提示如下:
Load script(101): F:\test\ff\src@Untitled102.lua relative (file not exist)
Load script(102): F:\test\ff\src@Untitled103.lua relative (file not exist)
(省略)
Load script(291): F:\test\ff\src@Untitled292.lua relative (file not exist)
Load script(292): F:\test\ff\src@Untitled293.lua relative (file not exist)
ASSERT FAILED ON LUA EXECUTE: string type is needed
项目是用cocos code IDE 生成,在ide中运行没有以上问题。ccsloader也很正常
求原因与解决方法