无法打开粒子 SKS 文件 [英] Can't open particle SKS files

查看:12
本文介绍了无法打开粒子 SKS 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 SpriteKit 使用 Xcode 6 GM 制作游戏,出于某种原因,我的一些 .SKS 粒子文件现在正在使 Xcode 崩溃,这使得它们无法打开.我还注意到,当使用 NSKeyedUnarchiver 未实现时,使 Xcode 崩溃的文件也会使我的应用程序崩溃.所以我假设考虑到崩溃的情况,我的一些 SKS 文件已经损坏.对于我所有损坏的 SKS 粒子文件,除了从头开始重新开始之外,还有其他解决方案吗?我可以通过外部编辑器以某种方式手动修改 SKS 文件并解决问题吗?将来我还可以采取任何措施来确保我的 SKS 文件不会再次损坏(即我应该知道 Xcode 6 中是否存在一些导致 SKS 文件损坏的错误).

I've been making a game with Xcode 6 GM using SpriteKit, and for some reason out of the blue a number of my .SKS particle files are now crashing Xcode which makes them impossible to open. I've also noticed that the files that are crashing Xcode are also crashing my App when unachieved using the NSKeyedUnarchiver. So I'm assuming that given the circumstances of the crashes, some of my SKS files have become corrupt. Is there any resolution to this other than starting from scratch all over again for all of my corrupt SKS particle files? Can I somehow manually modify the SKS files through an external editor and fix the issue? Also are there any steps I can take in the future to ensure my SKS files don't become corrupted again (i.e. is there some bug in Xcode 6 that I should be aware of that's causing corrupted SKS files).

编辑:Xcode 似乎将这些文件视为场景而不是导致崩溃的粒子文件.因此,由于某种原因,Xcode 6 GM Sprite Kit 编辑器没有正确保留文件格式,这导致粒子文件被保存为场景文件,从而导致文件损坏.

Edit: It appears Xcode is treating these files as Scenes rather than particle files which is leading to the crashes. So for some reason the Xcode 6 GM Sprite Kit Editor is not preserving file format correctly which is leading to particle files being saved as scene files resulting in a corrupted file.

推荐答案

不要在 Xcode 6 GM 中打开你的 SKS 粒子文件!有一个错误导致它们被保存为 SKScene,从而导致文件损坏.

Do NOT open your SKS particle files in Xcode 6 GM! There is a bug that is causing them to be saved as SKScenes, which leads to the file becoming corrupt.

您需要下载 Xcode 6.1 beta,它修复了 Apple 的 sprite kit 编辑器中的错误.

You need to download Xcode 6.1 beta which fixes the bug in Apple's sprite kit editor.

但是,如果您的文件已经损坏,您将需要从头开始重新创建粒子 SKS 文件.但如果你有像我一样的备份,你就不需要这样做了.

However, if your file is already corrupted you will need to recreate the particle SKS file from scratch. But if you have a backup like I did you won't need to do this.

但是,如果您没有备份,这里有一个提示可以帮助您查看损坏的发射器的属性,以便您快速重新创建 SKS 文件.如果您右键单击损坏的 SKS 文件并在 Sprite Kit 编辑器中打开,Xcode 不会崩溃,因为它实际上会选择错误地包裹发射器的场景.从那里您可以查看发射器的属性.然后我会拍一张照片,这样当您重新创建 SKS 文件时,您可以再次快速设置其属性.请记住,您不能只单击需要右键单击并在 Sprite Kit 编辑器中打开的文件.

But if you don't have a backup, here is a tip for helping you to view your properties of your corrupt emitter so you quickly recreate the SKS file. If you right click your corrupt SKS file and open in Sprite Kit Editor, Xcode will not crash because it will actually select the scene that it incorrectly wrapped your emitter in. And from there you can view the properties of your emitter. I would then take a picture so that now when you recreate the SKS file you can quickly set its properties again. Remember you can't just click the file you need to right click and open in Sprite Kit Editor.

以后我建议每个人都按原样备份您的 SKS 文件,并且在整个 Xcode 6 测试版中一直存在很多错误,而 GM 中的这个主要错误是不可接受的.我也不会为您的场景使用 SKS 文件,因为我遇到了一些奇怪的错误和崩溃,您最不想做的就是必须重新创建整个场景!SKS 文件可能很有用,但它们还没有准备好发布 IMO.因此,要么持续备份您的 SKS 文件,要么仅以编程方式制作场景和发射器,直到 Sprite Kit Editor 变得更加稳定.

In the future I suggest everyone backup your SKS files as they are and have been very buggy throughout the Xcode 6 betas, and this major bug in the GM is unacceptable. I would also stay away from using SKS files for your scenes because I've had some strange bugs and crashes and the last thing you want is to have to recreate an entire scene! The SKS files can be useful but they weren't ready for release IMO. So either continuously backup your SKS files or just make your scenes and emitters programmatically until Sprite Kit Editor becomes more stable.

这篇关于无法打开粒子 SKS 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆