【坑爹】布署CDN时,坑爹的IDC缓存(游戏补丁包被坑一事小记)
2015-07-31 14:43
639 查看
引子:
游戏项目用Unity开发,补丁放置于CDN上面,由于区分Android和iOS平台,所以添加目录区分,例如:5.0 => 5.1
[appstore目录]
|_5.0_5.1.zip
[android目录]
|_5.0_5.1.zip
现象:
不断有玩家反馈,在更新完之后,无法进入游戏
BugReport, 收到玩家的Unity-Log显示:
The file can not be loaded because it was created for another build target that is not compatible with this platform.
Please make sure to build asset bundles using the build target platform that it is used by.\nFile's Build target is: 9
原因:
IDC会根据文件名进行缓存
会把 appstore/5.0_5.1.zip 和 android/5.0_5.1.zip 认为是2个相同的文件!
解决:
文件名添加前缀
android目录/5.0_5.1.zip => ios_5.0_5.1.zip
appstore目录/5.0_5.1.zip => android_5.0_5.1.zip
再也没有发生此现象了。
游戏项目用Unity开发,补丁放置于CDN上面,由于区分Android和iOS平台,所以添加目录区分,例如:5.0 => 5.1
[appstore目录]
|_5.0_5.1.zip
[android目录]
|_5.0_5.1.zip
现象:
不断有玩家反馈,在更新完之后,无法进入游戏
BugReport, 收到玩家的Unity-Log显示:
The file can not be loaded because it was created for another build target that is not compatible with this platform.
Please make sure to build asset bundles using the build target platform that it is used by.\nFile's Build target is: 9
原因:
IDC会根据文件名进行缓存
会把 appstore/5.0_5.1.zip 和 android/5.0_5.1.zip 认为是2个相同的文件!
解决:
文件名添加前缀
android目录/5.0_5.1.zip => ios_5.0_5.1.zip
appstore目录/5.0_5.1.zip => android_5.0_5.1.zip
再也没有发生此现象了。
相关文章推荐
- 我是运营,我没有假期
- 每个 Linux 游戏玩家都绝不想要的恼人体验
- Steam 让我们在 Linux 上玩 Windows 的游戏更加容易
- 如何使用 Steam Play 在 Linux 上玩仅限 Windows 的游戏
- 新一代iPad适配应用之游戏篇
- 使用CDN的优势以及小贴士分享
- IDC提升服务战略 掀年底选购热潮
- VB实现的《QQ美女找茬游戏》作弊器实例
- 互联网迅猛崛起 IDC能否迎来发展高峰期
- IDC市场是否过冬 安全稳定说了算
- PJBlog存在SQL注入漏洞大家要快下补丁了
- Enterprise Library for .NET Framework 2.0缓存使用实例
- PowerShell中编程清空IE缓存方法
- PowerShell中使用.NET将程序集加入全局程序集缓存
- C#中缓存的基本用法总结
- C#实现洗牌游戏实例
- C#实现的算24点游戏算法实例分析
- C#实现简单的井字游戏实例
- C++编写简单的打靶游戏
- C++实现基于控制台界面的吃豆子游戏