Cocos Creator v2.3.0 测试版发布帖(正式版已发)

Simulator: ERROR: Uncaught TypeError: Cannot set property ‘_nativeAsset’ of null, location: src/cocos2d-jsb.js:0:0
STACK:
[0]anonymous@src/cocos2d-jsb.js:38541
[1]anonymous@src/cocos2d-jsb.js:24910
[2]anonymous@src/cocos2d-jsb.js:35171
[3]fireTimeout@jsb-adapter/jsb-builtin.js:2038
[4]tick@jsb-adapter/jsb-builtin.js:2000
[ERROR] (/Users/nantas/fireball-x/cocos2d-x-lite_22/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 562): Invoking function (0x7fb55cd37030) failed!
at HTMLElement.print-simulator-log (/Applications/CocosCreator2.2.2.app/Contents/Resources/app.asar/editor/builtin/scene/panel/messages/scene.js:1:1608)
at Object.e._dispatch (/Applications/CocosCreator2.2.2.app/Contents/Resources/app.asar/editor-framework/lib/renderer/panel.js:1:1876)
at EventEmitter. (/Applications/CocosCreator2.2.2.app/Contents/Resources/app.asar/editor-framework/lib/renderer/ipc.js:1:2952)
at EventEmitter.emit (events.js:194:13)
Simulator: ScriptEngine::cleanup begin …
大佬,请问这个是什么问题啊?

game.html?windowId=2:317 game loadScript error: ReferenceError: requirePlugin is not defined
at eval (eval at (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:289:25), :9:1)
at He (eval at (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:289:25), :1:19662)
at qe (eval at (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:289:25), :1:18847)
at eval (eval at (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:289:25), :46:1)
at eval ()
at http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:313:25
at loadScript (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:315:22)
at http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:299:17
at http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:314:37
at loadScript (http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:315:22)
at http://127.0.0.1:20001/static/dist/public/d54f1be208e5d6e180305886e0cd3a19/game.html?windowId=2:298:13

引擎分离报错 v.2.3.0-rc3版本 --头条模拟器

目前引擎分离只支持微信

原来这种主题都是公告类的,这次不是,找了半天

这个碰撞有回调函数吗?没有2.3.0API不知道上哪去找

你这应该是ts转js后,它会转成 let mod = require( '路径' ).default; 像这样的语句
写一段script把它转回来就好
例如…

//假设你是这样引入的
import { defulat as mod1 } from './mymodule1/index';
//那你就在下面写一段
module.exports['mod1'] = require( './mymodule1/index' );

ps. 其实你自已编译ts成js,看它的最终输出,再来修改会较准确

您好。。。。这边采用的TP打包预乘 + one设置。但是。。。。one模式设置透明度 异常

有个bug想吐槽一下,就是动画编辑器添加帧事件,有时帧事件面板会变空,然后这个空的帧事件不能移动不能删除。

在论坛也找到了解决办法:把json数据手动删除一下。

但是刚刚我删除了帧事件的数据,再从原来的位置添加帧事件,点进面板_bug复现_!

然后我实在没办法删掉了这个动画文件重新添加了一个同名的动画文件,再从原来的位置添加帧事件,bug再次重现

最后无论我重开编辑器还是如何,都不能解决。我想说这个bug不能再凑合了,就这样重做动画要浪费很多时间啊

感谢你的回答。
我使用的是这种方式导入的。import xx from ‘xx’
我试试你的这种办法吧! 但是为什么编译之后引擎就找不到引用了呢? 这个比较奇怪。

有没有稳定重现的办法呢?

这个是demoNewProject_5.zip (246.7 KB)

你能发给包给我复现下么

您好,这边选用的TP预乘打包后,引擎中设置one模式,但是在游戏中进行透明度变更时,one模式的贴图显示异常。

这个压缩包里有个anim文件,随意挂在Animation组件上,然后编辑,里面有个帧事件应该可以重现bugError.zip (328 字节)

已经解决了, 之前是有些代码引入的import Utils from “./Helper/Utils”,但实际“Helper”目录是“helper”是小写的,改成import Utils from "./helper/Utils"就没问题了。这个应该是现在区分大小写了造成的,也怪自己粗心大意。 多谢各位解答!

你好,这个bug我有了进一步发现,当帧率修改为45帧时,在13帧或26帧或1:03帧等位置添加帧事件都会复现;修改回60帧后,该帧事件可以删除。这应该是个比较有用的线索

好的,我试看看,我复现了

已经找到原因了,是之前计算 frame 的方式有问题导致,已提交修复的 pr

老哥,请教一下
这边资源采用的tp打图,有预乘,
在游戏中选用设置的one模式
但是在设置节点透明度的时候图片显示异常,这块现在是还有bug么?

:+1:哈哈那就好。辛苦了,加油!

你能把图片给我们测试下么