环境:cocos code ide1.2.0 ForWin32 cocos2dx3.4
按照官网指南《http://cn.cocos2d-x.org/http://cn.cocos2d-x.org/>http://cn.cocos2d-x.org/article > Cocos Code IDE >新建一个Cocos2d-x Lua游戏》用cocos code ide新建一个Lua工程
自动生成项目文件:
运行项目,然后控制台打印如下信息:
cocos2d: fullPathForFilename: No file found at config.json. Possible missing file.
SCREEN DPI = 96, SCREEN SCALE = 1.00
Ready for GLSL
Ready for OpenGL 2.0
{
gl.version: 3.3.0
gl.supports_NPOT: true
cocos2d.x.version: cocos2d-x 3.4rc1
cocos2d.x.compiled_with_profiler: false
cocos2d.x.build_type: DEBUG
cocos2d.x.compiled_with_gl_state_cache: true
gl.max_texture_size: 8192
gl.vendor: NVIDIA Corporation
gl.renderer: GeForce GT 330M/PCIe/SSE2
gl.max_texture_units: 96
gl.supports_ETC1: false
gl.supports_S3TC: true
gl.supports_ATITC: false
gl.supports_PVRTC: false
gl.supports_BGRA8888: false
gl.supports_discard_framebuffer: false
gl.supports_vertex_array_object: true
}
Project Config:
project dir: C:\Users\Administrator\Documents\cocos\CocosLuaGame
writable path: (PROJDIR)\
script file: (PROJDIR)\src\main.lua
frame size: 480 x 854
frame scale: 1.00
show console: NO
write debug log: NO ()
listen:
debugger: Cocos Code IDE
add searching path:
Console: listening on 0.0.0.0 : 6010
Console: listening on 0.0.0.0 : 6020
iShow!
debug args = require(‘debugger’)(,’’)
value at stack -1] is not function
:620: attempt to index a nil value
但若是从如下界面点击“调试”,则控制台报错如下:
Console: listening on 0.0.0.0 : 6010
Console: listening on 0.0.0.0 : 6020
iShow!
debug args = require(‘debugger’)(‘127.0.0.1’,‘10000’,‘luaidekey’,nil,‘win’,’/CocosLuaGame/’,’’)
Debugger v1.1.0
Debugger: Trying to connect to 127.0.0.1:10000 …
Debugger: Connection succeed.
:620: attempt to index a nil value
同时显示游戏:
请问这是怎么回事?项目代码完全没有改动过,为什么点击运行控制台会报错,而且看游戏的界面跟项目res文件夹下的图片一点关系都没有,求大神支招,谢谢


