求助,creator项目场景忽然打不开了,该怎么办?

有没有历史记录回退之类的?做了两周了,结果今天忽然出现问题。

一开始是场景2无法打开,于是我复制场景一,新建场景3,结果场景3也无法打开,最后场景1也出错了,然后现在整个项目进不去,其他项目能进去。

场景或 Prefab 等资源损毁后,可以用这个功能还原。(还原不一定会成功,还原前也请自己先备份已损毁的版本)
这个是 1.4 已有功能,有问题的话可以试试。

资源打不开的问题,除了建议用户使用版本控制系统外,我们也会继续强化内建的备份功能和报错提示,如果有重现方法也麻烦各位帮忙反馈

能否描述一下出现场景数据损坏之前,主要是在做哪些操作?

我们目前正在收集信息,试图重现问题

我是1.3版本的…… creator在哪里升级?

当时有两个场景:main,stage2,然后我在main里加了个节点和按钮组件,执行loadScene方法,但是中途多次出现预览的时候,未加载main就直接跳到stage2的情况,然后我在main和stage中反复切了几次,再在main里面执行预览,终于出现优先加载main,然后loadScene方法就一直报错。

报错后,stage2就打不开了,当时没意识到场景文件已损坏,于是试图重启再打开,结果一样的,main能打开,stage2已经损毁。

之后我打算重新建个stage2,于是新建一个场景,然后将main里的部分节点复制过去,结果打开新场景后,就无法再切回main了,最后main的情况和stage2一样,全损坏了。

现在完全重新新建场景,幸好其他资源没有出问题,只有场景文件损坏……

场景里的节点,及节点脚本的对应关系要重新添加……

你在这个过程中,似乎没有进行过保存操作啊?都没有保存的话场景文件为什么会被改变呢?

中途可能习惯性的按了ctrl+s

另外,貌似之前有出现一次,某个节点下面引用了一个预制资源和其他节点,然后,我打算把这个节点拖到预制资源面板生成预制资源,然后报了个错,说是是不能生成预制资源,但是我却可以打开对应的prefab文件,之后,把prefab拖到层级管理器也可以正常生成。最后觉得没必要,又删掉了。

不知道和这个操作有没有关系。

保存操作一般都是习惯性的ctrl+s,按了几次,什么时候按的实在记不起来了

搞个本地svn吧。

项目已经恢复了,现在主要是提供些信息,看看能不能帮忙定位到问题。

又出现了,直接删除场景2里的某个引用资源,编辑器像往常一样有报错提示,然后没注意就切换到场景1,结果场景1变成和场景2一模一样……main.fire文件复制了stage2.fire

2017-03-06T07:15:22.413Z - failed: Failed to drop asset 4fc807f9-ee89-4304-9e36-1bf786f6486b, message: Error: Can not create node from cc.RawAsset at F:\CocosCreator\resources\app.asar\editor\page\scene-utils\utils.js:1:320 at F:\CocosCreator\resources\engine\cocos2d\core\platform\CCAssetLibrary.js:121:25 at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:5427) at emitMany (events.js:127:13) at EventEmitter.emit (events.js:201:7) 2017-03-06T07:15:34.554Z - failed: Failed to drop asset 4fc807f9-ee89-4304-9e36-1bf786f6486b, message: Error: Can not create node from cc.RawAsset at F:\CocosCreator\resources\app.asar\editor\page\scene-utils\utils.js:1:320 at F:\CocosCreator\resources\engine\cocos2d\core\platform\CCAssetLibrary.js:121:25 at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:5427) at emitMany (events.js:127:13) at EventEmitter.emit (events.js:201:7) 2017-03-06T07:22:14.855Z - info: 只有预置节点 "wrap/xbl" 及其子节点会被保存。 2017-03-06T07:23:46.762Z - info: 只有预置节点 "wrap/xbl" 及其子节点会被保存。 2017-03-06T07:23:47.306Z - info: 只有预置节点 "wrap/xbl" 及其子节点会被保存。 2017-03-06T07:29:38.881Z - normal: Compiled successfully 2017-03-06T07:32:29.937Z - normal: Compiled successfully 2017-03-06T07:39:03.123Z - normal: Compiled successfully 2017-03-06T07:39:04.553Z - error: Error: Can not get asset url by uuid "fd81baa4-f239-4ebb-aee7-de92d08fb112", the asset may be deleted. at F:\CocosCreator\resources\engine\cocos2d\core\platform\CCAssetLibrary.js:128:30 at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:5427) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:39:04.554Z - error: Error: Can not get asset url by uuid "fd81baa4-f239-4ebb-aee7-de92d08fb112", the asset may be deleted. at F:\CocosCreator\resources\engine\cocos2d\core\platform\CCAssetLibrary.js:128:30 at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:5427) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:03.879Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:04.082Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:05.333Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:12.770Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:22.378Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T07:52:23.135Z - error: TypeError: Cannot read property 'enabled' of undefined at handleDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:5246) at e.r (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:921) at Object.exports.dumpDiff (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\dump.js:1:1567) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:6008 at Array.forEach (native) at editor-timeline.editor:record-node-changed (file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:5974) at EventEmitter.<anonymous> (F:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ui\utils\polymer-utils.js:1:261) at emitTwo (events.js:106:13) at EventEmitter.emit (events.js:191:7) 2017-03-06T08:14:22.084Z - error: TypeError: Cannot read property '0' of null at t.value (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\node.js:1:2172) at t.value (F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\data.js:1:1863) at file:///F:/CocosCreator/resources/app.asar/editor/builtin/timeline/panel/timeline.js:1:4291 at F:\CocosCreator\resources\app.asar\editor\builtin\timeline\panel\manager\clip.js:1:11669 at CCLoader.<anonymous> (F:\CocosCreator\resources\engine\cocos2d\core\platform\CCAssetLibrary.js:104:17) at F:\CocosCreator\resources\engine\cocos2d\core\load-pipeline\CCLoader.js:195:38 at F:\CocosCreator\resources\engine\cocos2d\core\platform\utils.js:45:21 at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) 2017-03-06T08:18:29.484Z - normal: Compiled successfully 2017-03-06T08:18:30.062Z - normal: _ccsg.Label._initBMFontWithString(): Impossible to create font. Please check file 2017-03-06T08:25:42.667Z - error: TypeError: Cannot read property '_uuid' of null at Object.PrefabUtils.linkPrefab (F:\CocosCreator\resources\app.asar\editor\page\scene-utils\prefab-utils.js:1:4261) at cc_Node._onHierarchyChanged (F:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1068:36) at cc_Node.set (F:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:166:26) at F:\CocosCreator\resources\app.asar\editor\page\scene-utils\index.js:1:6463 at fn (F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:746:34) at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1213:16 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:166:37 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:706:43 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1209:30 2017-03-06T08:25:56.155Z - error: TypeError: Cannot read property '_uuid' of null at Object.PrefabUtils.linkPrefab (F:\CocosCreator\resources\app.asar\editor\page\scene-utils\prefab-utils.js:1:4261) at cc_Node._onHierarchyChanged (F:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1068:36) at cc_Node.set (F:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:166:26) at F:\CocosCreator\resources\app.asar\editor\page\scene-utils\index.js:1:6463 at fn (F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:746:34) at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1213:16 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:166:37 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:706:43 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37 at F:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1209:30 2017-03-06T08:30:21.441Z - normal: Compiled successfully 2017-03-06T08:30:59.179Z - normal: Compiled successfully 2017-03-06T08:41:01.717Z - normal: Compiled successfully 2017-03-06T08:41:39.844Z - normal: Compiled successfully

编辑器日志

现在手动恢复main.fire文件了……

对了,我进行了节点复制操作,就是把场景2的节点复制到场景1,以及把场景1的节点复制到场景2

不知道是不是这个操作导致整个main.fire被替换。

因为进行其他操作的时候,偶尔会有界面显示和实际文件引用不同的情况。

1赞

您好,我现在用的2.0.9也出现场景损坏没法打开,场景文件里都空了,
之前是出 这个报错 Please change the definition of property ‘allEffects’ in class ‘GameMusics’.
之后重新打开场景经崩了。。。。现在我有打包出来的微信小游戏的包,可以用那里得场景复原cocos里的场景么?
求指导!!急急急!!!!

最后怎么解决的?我也遇到了,求大佬解救

我是重做的

希望能给无法打开场景的资源文件

注意:如果以后遇到该问题记得保留场景文件,让我们排查看看,有可能能恢复过来

非常抱歉给您带来不便!建议使用 Git 或者 SVN 维护项目,避免发生意外。非常抱歉!
如果您有使用 TimeMachine,可以直接回退 Mac 到昨天的备份。
如果您需要使用磁盘恢复软件进行还原,建议确保不再对磁盘进行任何写入操作,以免数据被覆盖。
否则,您可以尝试在以下文件夹找回:

  • temp/BackupAssets/
  • temp/quick-scripts/
  • build/ (优先使用 Debug Mode 下构建的版本)
    我知道以上目录肯定无法涵盖你的所有资源,特别是 build 目录下的文件已经丢失了所有文件名了,而且文件的资源索引可能也会丢失。因此我们诚心给您道歉!
    为了杜绝此类错误再次发生,我们会继续对底层 API 进行优化。

安利一个巨NB的免费svn。。。https://svnbucket.com/#/
把自己确定正确的在修改前上传一下。。这样就可以随便搞了。。。

卸载重装吧

你好,我也突然出现某个场景打不开,现在该如何解决呢