升级2.0rc4,场景加载失败

如题,现在游戏有一个场景加载出错
preloadScene时页面报错

text-downloader.js:69 GET http://localhost:7456/res/import/44/4478f9a4-8fa5-4dae-adf7-f05e6572bef9.json 404 (Not Found)
module.exports @ text-downloader.js:69
downloadUuid @ downloader.js:199
114.Downloader.handle @ downloader.js:330
flow @ pipeline.js:51
(anonymous) @ pipeline.js:64
(anonymous) @ asset-loader.js:83
queryAssetInfo @ CCAssetLibrary.js:182
AssetLoader.handle @ asset-loader.js:49
flow @ pipeline.js:51
proto.flowIn @ pipeline.js:275
proto.append @ loading-items.js:508
proto.flowInDeps @ CCLoader.js:313
loadDepends @ uuid-loader.js:111
loadUuid @ uuid-loader.js:290
Loader.handle @ loader.js:193
flow @ pipeline.js:51
(anonymous) @ pipeline.js:64
(anonymous) @ downloader.js:333
xhr.onload @ text-downloader.js:53
CCDebug.js:242 Object {status: 404, errorMessage: “Load text file failed: res/import/4c/4cd7d840-7b44-4a59-8547-7590dcae39dc.json(wrong status)”}
26.cc._throw @ CCDebug.js:242
(anonymous) @ uuid-loader.js:153
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:180
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:180
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
flow @ pipeline.js:87
(anonymous) @ pipeline.js:64
(anonymous) @ downloader.js:333
loadCallback @ downloader.js:105
CCDebug.js:242 Object {status: 404, errorMessage: “Load text file failed: res/import/44/4478f9a4-8fa5-4dae-adf7-f05e6572bef9.json(wrong status)”}
26.cc._throw @ CCDebug.js:242
(anonymous) @ uuid-loader.js:153
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:180
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
(anonymous) @ uuid-loader.js:180
(anonymous) @ CCLoader.js:302
proto.allComplete @ loading-items.js:528
proto.itemComplete @ loading-items.js:716
LoadingItems.itemComplete @ loading-items.js:379
proto.flowOut @ pipeline.js:319
flow @ pipeline.js:87
(anonymous) @ pipeline.js:64
(anonymous) @ downloader.js:333
loadCallback @ downloader.js:105
CCDebug.js:277 Failed to preload ‘LoginToHallScene’, undefined
26.cc.errorID @ CCDebug.js:277
(anonymous) @ CCDirector.js:596
(anonymous) @ CCLoader.js:259
(anonymous) @ utils.js:80

这个场景编辑器打开正常,没有报错但是有警告

Please change the definition of property ‘manifestUrl’ in class ‘UpdatePanel’. Starting from v1.10,
The ‘type’ attribute of ‘Playeroptions_fullscreen.roleSpine’ is undefined when loading script
The ‘type’ attribute of ‘Playeroptions_fullscreen.cpRoleSpine’ is undefined when loading script

The Asset used by component “cc.Sprite” in scene “LoginToHallScene.fire” is missing. Detailed information:

The Asset used by component “cc.Sprite” in scene “LoginToHallScene.fire” is missing. Detailed information:

  • Creator 版本:2.0rc4

如果不preloadScene而直接loadScene,则只报这2个错误,但是场景无法加载切换
Object {status: 404, errorMessage: “Load text file failed: res/import/44/4478f9a4-8fa5-4dae-adf7-f05e6572bef9.json(wrong status)”}
Object {status: 404, errorMessage: “Load text file failed: res/import/44/4478f9a4-8fa5-4dae-adf7-f05e6572bef9.json(wrong status)”}

这是加载回调的参数

这是直接加载场景的错误
“Error: [AssetLibrary] loading JSON or dependencies failed: undefined
at CCLoader. (http://localhost:7456/app/engine/bin/cocos2d-js-for-preview.js:24467:40)
at http://localhost:7456/app/engine/bin/cocos2d-js-for-preview.js:19941:32
at http://localhost:7456/app/engine/bin/cocos2d-js-for-preview.js:29222:11

项目里是有这个文件的
但是CCLoader的_cache里没有这个key

关键在于场景中的报错,missing assets 是必须解决的,component 定义也需要更新

是要解决这些吗?

Please change the definition of property ‘manifestUrl’ in class ‘UpdatePanel’. Starting from v1.10,
The ‘type’ attribute of ‘Playeroptions_fullscreen.roleSpine’ is undefined when loading script
The ‘type’ attribute of ‘Playeroptions_fullscreen.cpRoleSpine’ is undefined when loading script

The Asset used by component “cc.Sprite” in scene “LoginToHallScene.fire” is missing. Detailed information:

The Asset used by component “cc.Sprite” in scene “LoginToHallScene.fire” is missing. Detailed information:

对啊,这提示很明确了呀,你的资源都丢失了,加载场景当然会失败

好滴好滴,我这就修复

我还以为警告可以先不管先跑起来看看:12:

Please change the definition of property ‘manifestUrl’ in class ‘UpdatePanel’. Starting from v1.10,
这个怎么改 没弄明白啥意思

这个把警告打开里面有详细说明 会教你怎么改

panda 大大 我和这位老哥的问题完全一样。。。可是我的没有log什么都没有。。。missing assets 是必须解决的,component 定义也需要更新。这些都没有的。 然后节点树上的红色节点也还原好了。。。。可能是什么原因造成的?我是1.9.0升级到2.0.8版本

1赞

右击 ->在标签页中打开 可以看大图。。:sweat_smile: