Cocos Creator v1.7.0 内测版发布帖(11月17日更新 rc.2)

在模拟器上跑,换了真机可以了。
为什么1.5,1.6的在模拟器上可以运行,1.7就不行了?
环境、API Level相同,唯一区别就是以前1.5,1.6的时候没有勾选调试模式

加上x86的ABI

我遇到的问题有答案么?

1.6.2正常的项目运行报错:

Uncaught TypeError: Cannot read property 'width' of undefined
    at TheClass._fillTextureGrids (CCSGTMXLayer.js:135)
    at TheClass.initWithTilesetInfo (CCSGTMXLayer.js:217)
    at TheClass.ctor (CCSGTMXLayer.js:109)
    at new TheClass (_CCClass.js:98)
    at TheClass._parseLayer (CCSGTMXTiledMap.js:405)
    at TheClass._buildWithMapInfo (CCSGTMXTiledMap.js:307)
    at TheClass.initWithXML (CCSGTMXTiledMap.js:103)
    at cc_TiledMap._applyFile (CCTiledMap.js:858)
    at cc_TiledMap._initSgNode (CCTiledMap.js:215)
    at cc_TiledMap.__preload (CCRendererInSG.js:63)

编辑器里报错:

TypeError: Cannot read property 'width' of undefined
2
at TheClass._fillTextureGrids (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXLayer.js:133:38)
at TheClass.initWithTilesetInfo (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXLayer.js:215:22)
at TheClass.ctor (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXLayer.js:109:18)
at new TheClass (C:\CocosCreator\resources\engine\cocos2d\core\platform\_CCClass.js:98:34)
at TheClass._parseLayer (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXTiledMap.js:403:21)
at TheClass._buildWithMapInfo (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXTiledMap.js:305:34)
at TheClass.initWithXML (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCSGTMXTiledMap.js:278:14)
at cc_TiledMap._applyFile (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCTiledMap.js:856:30)
at cc_TiledMap.set (C:\CocosCreator\resources\engine\cocos2d\tilemap\CCTiledMap.js:256:26)
at cc_TiledMap.r.set [as tmxAsset] (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\asset-watcher.js:1:766)

属性检查器
TypeError: Cannot read property 'width' of undefined

资源无法直接拖动到creator的资源管理器里了。。。 拖动资源过来,鼠标是禁止状态。。 松开也毫无效果~

我就纳闷了,一个新手学习项目都能碰到这么多问题,就放测试版?难道官方团队不测试的么?(最低级的creator的控制台里还是1.6.0。。。。)

你是不是1.7中没有编译x86架构啊。跑错架构了吧?
模拟器是要x86的库, 模拟器是要x86的库, 模拟器是要x86的库.

可以回答下我的问题么?@dumganhar

我是说,,为了提供更强大的功能,还是提升效率,,促进问题,,,因为1.6.2集成了可以通过苹果审核的sdk但是一直不出realse版本,搞不懂了

没想法,不知道是不是个例。你是不是用了自定义cocos2d-x引擎?

节后回来就会发啦。稍安勿躁。

我运行的是官方的例子,没有自定义引擎,用的是creator的模拟器

回報一下,

Simulator: ERROR: TypeError: jsbLabel.createWithTTF is not a function. 
(In 'jsbLabel.createWithTTF(ttfConfig, string, this._fontSize)', 'jsbLabel.createWithTTF' is undefined),
 location: src/jsb_polyfill.js:35621:51

今天节后上班了,会有版本更新吗?

这几天会有 beta2

1赞

坐等新版本,
因为我回报的异常,导致整个游戏开不起来,没办法帮忙测试1.7.0

目前在1.6.2 beta3 是正常的,继续使用这个版本开发中

你的也是creator模拟器无法运行任何项目吧@RazgrizHsu

我的项目开不起来,开了一片黑
但是新建范例项目是开的起来,
想说等下一个版本再来试试

希望 bate 2 能出 release 版本

补上详细些的Log…


2017-10-09T05:14:43.735Z - normal: Run Application
2017-10-09T05:14:49.763Z - success: preview server running at http://localhost:7456
2017-10-09T05:14:56.739Z - normal: 1.6.0
2017-10-09T05:14:57.550Z - normal: [langs] Initialize By [tw]
2017-10-09T05:15:21.723Z - normal: Simulator: WORKAREA WIDTH 1884.00, HEIGHT 1036.00
2017-10-09T05:15:21.723Z - normal: Simulator: FRAME SCALE = 1.00
2017-10-09T05:15:21.909Z - normal: Simulator: 
2017-10-09T05:15:21.909Z - normal: Simulator: {
2017-10-09T05:15:21.909Z - normal: Simulator:     gl.supports_OES_map_buffer: false
2017-10-09T05:15:21.909Z - normal: Simulator:     gl.supports_vertex_array_object: true
2017-10-09T05:15:21.910Z - normal: Simulator:     cocos2d.x.version: 1.6.1
2017-10-09T05:15:21.910Z - normal: Simulator:     gl.vendor: NVIDIA Corporation
2017-10-09T05:15:21.910Z - normal: Simulator:     gl.supports_PVRTC: false
2017-10-09T05:15:21.910Z - normal: Simulator:     gl.renderer: NVIDIA GeForce GTX 750 OpenGL Engine
2017-10-09T05:15:21.911Z - normal: Simulator:     cocos2d.x.compiled_with_profiler: false
2017-10-09T05:15:21.912Z - normal: Simulator:     gl.max_texture_size: 16384
2017-10-09T05:15:21.912Z - normal: Simulator:     gl.supports_ETC1: false
2017-10-09T05:15:21.912Z - normal: Simulator:     gl.supports_BGRA8888: false
2017-10-09T05:15:21.912Z - normal: Simulator:     cocos2d.x.build_type: DEBUG
2017-10-09T05:15:21.912Z - normal: Simulator:     gl.max_texture_units: 16
2017-10-09T05:15:21.913Z - normal: Simulator:     gl.supports_OES_packed_depth_stencil: false
2017-10-09T05:15:21.913Z - normal: Simulator:     gl.supports_discard_framebuffer: false
2017-10-09T05:15:21.913Z - normal: Simulator:     gl.supports_NPOT: true
2017-10-09T05:15:21.913Z - normal: Simulator:     gl.version: 2.1 NVIDIA-10.15.20 367.15.10.35f01
2017-10-09T05:15:21.913Z - normal: Simulator:     cocos2d.x.compiled_with_gl_state_cache: true
2017-10-09T05:15:21.913Z - normal: Simulator:     gl.supports_OES_depth24: false
2017-10-09T05:15:21.913Z - normal: Simulator: }
2017-10-09T05:15:21.913Z - normal: Simulator: 
2017-10-09T05:15:21.913Z - normal: Simulator: 
2017-10-09T05:15:21.913Z - normal: Simulator: cocos2d: warning, Director::setProjection() failed because size is 0
2017-10-09T05:15:21.914Z - normal: Simulator: Project Config:
2017-10-09T05:15:21.914Z - normal: Simulator:     project dir: /Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/cocos2d-x/simulator/mac/Simulator.app/Contents/Resources/
2017-10-09T05:15:21.914Z - normal: Simulator:     writable path: $(PROJDIR)/
2017-10-09T05:15:21.914Z - normal: Simulator:     script file: $(PROJDIR)/main.js
2017-10-09T05:15:21.914Z - normal: Simulator:     frame size: 960 x 640
2017-10-09T05:15:21.914Z - normal: Simulator:     frame scale: 1.00
2017-10-09T05:15:21.914Z - normal: Simulator:     show console: NO
2017-10-09T05:15:21.915Z - normal: Simulator:     write debug log: NO ()
2017-10-09T05:15:21.915Z - normal: Simulator:     listen: 
2017-10-09T05:15:21.915Z - normal: Simulator:     debugger: none
2017-10-09T05:15:21.915Z - normal: Simulator:     add searching path:
2017-10-09T05:15:21.915Z - normal: Simulator: ------------------------------------------------
2017-10-09T05:15:21.915Z - normal: Simulator: LOAD Js FILE: main.js
2017-10-09T05:15:21.915Z - normal: Simulator: ------------------------------------------------
2017-10-09T05:15:22.204Z - normal: Simulator: Initializing JavaScriptCore 
2017-10-09T05:15:22.204Z - normal: Simulator: Cocos2d-x-lite v1.6.0
2017-10-09T05:15:22.204Z - normal: Simulator: iShow!
2017-10-09T05:15:23.758Z - normal: Simulator: [fw.game] Game Inited.
2017-10-09T05:15:23.758Z - normal: Simulator: [langs] Initialize By [tw]
2017-10-09T05:15:23.759Z - normal: Simulator: ERROR (/Users/nantas/fireball-x/cxp/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp, 2098): wrong number of arguments: 1, was expecting 0
2017-10-09T05:15:23.759Z - normal: Simulator: [Loader] Prefab preload success, count:35
2017-10-09T05:15:23.759Z - normal: Simulator: ERROR: TypeError: jsbLabel.createWithTTF is not a function. (In 'jsbLabel.createWithTTF(ttfConfig, string, this._fontSize)', 'jsbLabel.createWithTTF' is undefined), location: src/jsb_polyfill.js:35621:51
2017-10-09T05:15:23.759Z - normal: Simulator: STACK:
2017-10-09T05:15:23.759Z - normal: Simulator: Label@src/jsb_polyfill.js:35621:51
2017-10-09T05:15:23.759Z - normal: Simulator: get@src/jsb_polyfill.js:35654:39
2017-10-09T05:15:23.760Z - normal: Simulator: _initSgNode@src/jsb_polyfill.js:10194:69
2017-10-09T05:15:23.760Z - normal: Simulator: __preload@src/jsb_polyfill.js:11691:37
2017-10-09T05:15:23.760Z - normal: Simulator: __preload@src/jsb_polyfill.js:10171:32
2017-10-09T05:15:23.760Z - normal: Simulator: src/jsb_polyfill.js:22143:61
2017-10-09T05:15:23.760Z - normal: Simulator: anonymous
2017-10-09T05:15:23.760Z - normal: Simulator: invoke@src/jsb_polyfill.js:19138:33
2017-10-09T05:15:23.760Z - normal: Simulator: activateNode@src/jsb_polyfill.js:19237:44
2017-10-09T05:15:23.760Z - normal: Simulator: _activate@src/jsb_polyfill.js:6972:60
2017-10-09T05:15:23.760Z - normal: Simulator: runSceneImmediate@src/jsb_polyfill.js:34761:40
2017-10-09T05:15:23.760Z - normal: Simulator: main.js:53:54
2017-10-09T05:15:23.760Z - normal: Simulator: src/jsb_polyfill.js:21714:45
2017-10-09T05:15:23.760Z - normal: Simulator: src/jsb_polyfill.js:17398:54
2017-10-09T05:15:23.761Z - normal: Simulator: src/jsb_polyfill.js:25434:33
2017-10-09T05:15:23.761Z - normal: Simulator: cb@src/jsb_polyfill.js:14998:34
2017-10-09T05:15:23.761Z - normal: Simulator: invoke@src/jsb_polyfill.js:14829:42
2017-10-09T05:15:23.761Z - normal: Simulator: emit@src/jsb_polyfill.js:15026:125
2017-10-09T05:15:23.761Z - normal: Simulator: callback@src/jsb_polyfill.js:34897:37
2017-10-09T05:15:23.761Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c8354c00 (cocos2d::Node)
2017-10-09T05:15:24.251Z - normal: Simulator: ScriptEngine::cleanup begin ...
2017-10-09T05:15:24.251Z - normal: Simulator: GC begin ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.252Z - normal: Simulator: GC end ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.252Z - normal: Simulator: GC begin ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.252Z - normal: Simulator: GC end ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.252Z - normal: Simulator: GC begin ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.253Z - normal: Simulator: GC end ..., (Native -> JS map) count: 1832
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801cc00 (creator::Scale9SpriteV2)
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801ca00 (cocos2d::Node)
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801c650 (creator::Scale9SpriteV2)
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801c450 (cocos2d::Node)
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801c0a0 (creator::Scale9SpriteV2)
2017-10-09T05:15:24.254Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801bea0 (cocos2d::Node)
2017-10-09T05:15:24.255Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801bca0 (cocos2d::Node)
2017-10-09T05:15:24.255Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801b8f0 (creator::Scale9SpriteV2)
2017-10-09T05:15:24.255Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801b6f0 (cocos2d::Node)
2017-10-09T05:15:24.255Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801b4f0 (cocos2d::Node)
2017-10-09T05:15:24.256Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801b140 (creator::Scale9SpriteV2)
2017-10-09T05:15:24.256Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801af40 (cocos2d::Node)
2017-10-09T05:15:24.256Z - normal: Simulator: jsbindings: finalizing JS object 0x7fb2c801ac10 (cocos2d::ClippingNode)

后面的部份就是不断的重覆
normal: Simulator: jsbindings: finalizing JS object 0x7fb2c827f160 (cocos2d::Node)
这一段,然后模似器项目是一片黑

目前是这样的情况…

另外,新建ExampleCollection项目后,会弹出这两个错误:

Overwriting 'destroy' function in 'DeviceMotionCtrl' class without calling super is not allowed. Call the super function in 'destroy' please.
    at Object.exports.doValidateMethodWithProps_DEV  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/preprocess-class.js:278:16)
    at Object.exports.validateMethodWithProps  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/preprocess-class.js:290:18)
    at Object.CCClass [as Class]  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/CCClass.js:866:25)
    at __define  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/03_gameplay/01_player_control/DeviceMotion/DeviceMotionCtrl.js:7:4)
    at  /Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/03_gameplay/01_player_control/DeviceMotion/DeviceMotionCtrl.js:51:13
    at Object.<anonymous>  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/03_gameplay/01_player_control/DeviceMotion/DeviceMotionCtrl.js:58:11)
    at Object.<anonymous>  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/03_gameplay/01_player_control/DeviceMotion/DeviceMotionCtrl.js:61:3)
    at Module._compile  (module.js:571:32)
    at Object.Module._extensions..js  (module.js:580:10)

Overwriting 'destroy' function in 'Puzzle' class without calling super is not allowed. Call the super function in 'destroy' please.
    at Object.exports.doValidateMethodWithProps_DEV  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/preprocess-class.js:278:16)
    at Object.exports.validateMethodWithProps  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/preprocess-class.js:290:18)
    at Object.CCClass [as Class]  (/Applications/creator/vers/CocosCreator.170b1.app/Contents/Resources/engine/cocos2d/core/platform/CCClass.js:866:25)
    at __define  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/tiledmap/Puzzle.js:19:4)
    at  /Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/tiledmap/Puzzle.js:296:13
    at Object.<anonymous>  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/tiledmap/Puzzle.js:303:11)
    at Object.<anonymous>  (/Volumes/Temp/ccc170b1/temp/quick-scripts/assets/cases/tiledmap/Puzzle.js:306:3)
    at Module._compile  (module.js:571:32)
    at Object.Module._extensions..js  (module.js:580:10)

下个测试版本中已修复。

1赞