Cocos Creator v2.1.2 测试版发布帖(07/16 更新 rc.7)

大佬这个有优化吗?https://forum.cocos.com/t/creator-2-0-9-cpu/77149

报错: cocos 2.1.1模拟器是好的

Simulator: ERROR: Uncaught TypeError: Cannot read property ‘length’ of null, location: src/cocos2d-jsb.js:0:0
STACK:
[0]_updateCullingMask@src/cocos2d-jsb.js:10124
[1]_onHierarchyChanged@src/cocos2d-jsb.js:10479
[2]setParent@src/cocos2d-jsb.js:40999
[3]insertChild@src/cocos2d-jsb.js:41029
[4]runSceneImmediate@src/cocos2d-jsb.js:9303
[5]anonymous@src/cocos2d-jsb.js:9404
[6]anonymous@src/cocos2d-jsb.js:29637
[7]anonymous@src/cocos2d-jsb.js:24350
[8]anonymous@src/cocos2d-jsb.js:34396
[9]fireTimeout@jsb-adapter/jsb-builtin.js:2033
[10]tick@jsb-adapter/jsb-builtin.js:1995
[ERROR] (/Users/nantas/fireball-x/cocos2d-x-lite_21/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 534): Invoking function (0x7fca03569eb0) failed!
at HTMLElement.print-simulator-log (/Applications/CocosCreator2.1.2-apla.app/Contents/Resources/app.asar/editor/builtin/scene/panel/messages/scene.js:1:1669)
at Object.e._dispatch (/Applications/CocosCreator2.1.2-apla.app/Contents/Resources/app.asar/editor-framework/lib/renderer/panel.js:1:1941)
at EventEmitter.o.on.s (/Applications/CocosCreator2.1.2-apla.app/Contents/Resources/app.asar/editor-framework/lib/renderer/ipc.js:1:2921)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)

Spin动画问题!在2.1.1场景里面spine动画是好的),到2.1.2里面spine动画报错,去掉,场景就出现啦。。。怎么破?把动画删除,重新加上,位置始终在屏幕左小角。

spine动画位置全乱套啦。。这个在Web是好的, 模拟器直接乱掉。。

这是我 alpha3 出现的问题,好像不影响运行,但不知算不算bug

 cc.loader.loadRes(path,cc.Asset,(err,res:cc.Asset)=>{
     console.log(res);
 })

大佬,url和nativeUrl为啥都是空?使用姿势不对吗?

版本: alpha2的nativeUrl,alpha3的url和nativeUrl
加载类型:cc.Asset/cc.Prefab
平台:预览和发布web mobile

apala.3 空的工程报错,新建工程建不了,一直在加载资源中

Error: EROFS: read-only file system, open ‘/Volumes/Cocos
Creator/CocosCreator.app/Contents/Resources/static/default-assets/effects/__builtin-editor-gizmo-line.effect.meta’
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:191:20)
at Object.fs.writeFileSync (fs.js:1326:33)
at Object.save (/Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/asset-db/lib/meta.js:1:2741)
at i.series.t (/Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/asset-db/lib/tasks.js:1:5002)
at /Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:726:13
at /Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:52:16
at /Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:269:32
at /Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:44:16
at /Volumes/Cocos Creator/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17

什么操作引起的?能给个 demo 吗?

编辑器要安装到系统中,不能在 dmg 中直接打开

2.1.2 alpha3有修过spine报错的问题,你用的是alpha3么,如果是的话,麻烦给一个demo我测试一下。

https://github.com/cocos-creator/engine/pull/4645
已解决,下个测试版发布,谢谢。

反馈一个小问题,播放背景音乐如果再次播放就会停止背景音乐,而不是重新播放;
环境alpha.3,微信小游戏 ios,(安卓和web以及其他版本正常);

NewProject.zip (2.4 MB)

2赞

试啦 apla3版本, spine好是好啦。

请问大佬们,这个是什么问题?微信小游戏平台报错

VM20:202 gameThirdScriptError
Cannot read property ‘_owner’ of undefined;at setTimeout callback function
TypeError: Cannot read property ‘_owner’ of undefined
at Function.getInstantiatedMaterial (http://127.0.0.1:57149/game/cocos2d-js.js:11233:19)
at Function.getInstantiatedBuiltinMaterial (http://127.0.0.1:57149/game/cocos2d-js.js:11230:27)
at Class.activateMaterial (http://127.0.0.1:57149/game/cocos2d-js.js:50485:31)
at _Class.__preload (http://127.0.0.1:57149/game/cocos2d-js.js:50409:14)
at callPreload (http://127.0.0.1:57149/game/cocos2d-js.js:23220:9)
at Class3.invoke (http://127.0.0.1:57149/game/cocos2d-js.js:12322:11)
at _Class3.invoke (http://127.0.0.1:57149/game/cocos2d-js.js:23238:14)
at _Class3.activateNode (http://127.0.0.1:57149/game/cocos2d-js.js:23334:24)
at Class3.activate (http://127.0.0.1:57149/game/cocos2d-js.js:9366:36)
at 29.cc.Director.runSceneImmediate (http://127.0.0.1:57149/game/cocos2d-js.js:7263:15)
console.error @ VM20:202
errorReport @ WAGame.js:11044
thirdErrorReport @ WAGame.js:11024
(anonymous) @ WAGame.js:10930
(anonymous) @ WAGame.js:5593
setTimeout (async)
setTimeout @ WAGame.js:5592
callInNextTick @ utils.js:78
(anonymous) @ CCLoader.js:269
125.proto.allComplete @ loading-items.js:529
125.proto.itemComplete @ loading-items.js:721
125.LoadingItems.itemComplete @ loading-items.js:379
128.proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:181
(anonymous) @ CCLoader.js:316
125.proto.allComplete @ loading-items.js:529
125.proto.itemComplete @ loading-items.js:721
125.LoadingItems.itemComplete @ loading-items.js:379
128.proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:181
(anonymous) @ CCLoader.js:316
125.proto.allComplete @ loading-items.js:529
125.proto.itemComplete @ loading-items.js:721
125.LoadingItems.itemComplete @ loading-items.js:379
128.proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:181
(anonymous) @ CCLoader.js:316
125.proto.allComplete @ loading-items.js:529
125.proto.itemComplete @ loading-items.js:721
125.LoadingItems.itemComplete @ loading-items.js:379
128.proto.flowOut @ pipeline.js:319
flow @ pipeline.js:87
(anonymous) @ pipeline.js:64
(anonymous) @ downloader.js:269
loadCallback @ downloader.js:106
load (async)
downloadImage @ downloader.js:122
121.Downloader.handle @ downloader.js:266
121.Downloader._handleLoadQueue @ downloader.js:248
(anonymous) @ downloader.js:268
loadCallback @ downloader.js:106
load (async)
downloadImage @ downloader.js:122
121.Downloader.handle @ downloader.js:266
flow @ pipeline.js:51
(anonymous) @ pipeline.js:64
handleItem @ wx-downloader.js:146
readFromLocal @ wx-downloader.js:264
seek @ wx-downloader.js:110
(anonymous) @ wx-downloader.js:120
fs.access.fail @ wx-fs-utils.js:211
(anonymous) @ WAGame.js:10922
(anonymous) @ WAGame.js:14143
function.setTimeout @ asdebug.js:385
(anonymous) @ WAGame.js:10922
(anonymous) @ WAGame.js:5593
setTimeout (async)
setTimeout @ WAGame.js:5592
m @ asdebug.js:384
r.registerCallback.t @ asdebug.js:367
l.forEach.t @ asdebug.js:80
(anonymous) @ asdebug.js:78
s.onmessage @ asdebug.js:85

说详细点啊,什么情况下出现的

大佬,请关注一下《ArmatureDisplay怎么自由切换Slot.display》 https://forum.cocos.com/t/armaturedisplay-slot-display/79563 ,试过很多种方法都没法实现

你好,你可以把微信适配层中的 weapp-adapter/wechatgame/libs/engine/Audio.js 中的代码注释掉然后在试看看是否会重现该问题

运行微信模拟器出现的,看这个日志,请问这个大概是什么原因造成的?
后来换成apla3 版本,目前不出现啦。我在测试下

注释掉,都正常了

有这种可能的.

第一种方法, 在某些情况下可行, 我们也确实这样用了, 但很别扭. 但有的时候, 因为依赖关系依然存在, 难以解决.
第二种方法, 以前就试过, 但有非常明确的提示:
‘import’ and ‘export’ may only appear at the top level (170:20) while parsing …

意思很明显, 就是不支持延迟import. 不知道是不是不能这样用, 还是creator不支持这样用.

至于用require, 发布版不行就没有任何意义.

https://forum.cocos.com/t/cocoscreator2-1-1-editbox/78265?u=805627081