查看: 656|回复: 11

[引擎各个功能] 【Patching | Unreal Engine】

[复制链接]

1

主题

338

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
74666
发表于 2016-6-25 18:42:55 | 显示全部楼层 |阅读模式



To update your project after release, you can use the patching process available through the Project Launcher. During patching, the engine compares all the content post-cookto the originally released cooked content, and uses that to determine what is included in a patch.  The smallest piece of content is a single package (like a .ulevel or .uasset), so if anything changes in a package then the entire package will be included in the patch. The method you use to get the patch's .pak file to the users will depend on your distribution platforms, but this procedure will allow you to create a much smaller .pak file that just contains the updated content.

Currently, distribution of the patches hasn't been resolved for all platforms. This procedure will walk you through creating the patch package file, as well as through testing the package fileon Windows.

You can patch a project you have previously released using a versioned release. Some things to keep in mind are:

Lock down the serialization code paths at the time of release.

Keep the released cooked content as the UnrealPak tool uses this to determine which content should be in the patch package file.

At runtime, mount both pak files, with a higher priority for the patch file so any content within it is loaded first.

In this example, we are patching ShooterGame with a change to the weapon capacity and magazine size.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



After creating a release version:

Open the Project Launcher, either within Unreal Editor or using Unreal Frontend.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



Create a new Custom Launch Profile using the + button.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



Set a name and description for your profile.

There are a number of settings for the patching process.

Project
You can set the specific project to use, or use Any Project to patch the current project.

Build
Set the build configuration to Shipping.

Optionally, expand Advanced Settings if you need to build UAT as part of the patch process.

Cook
Select By the Book as the cooking method in the dropdown menu.

Check the boxes for all platforms you would like to cook content for. In this example for Windows testing, we have selected WindowsNoEditor.

Check the boxes for all cultures to cook localizations for.

Check the boxes for all maps to cook.

This will determine which content is cooked and then compared to the original package file.

In Release/DLC/Patching Settings:

Enter in the version number to base the patch on.

Check the Generate Patch checkbox.

Expand Advanced Settings and make sure the following options are enabled, as well as any others you need for your specific project's distribution method:

Compress content

Save packages without versions

Store all content in a single file (UnrealPak)

Also under Advanced Settings, set the cooker configuration to Shipping.

Package
Set the build to  Package  store locally.

Deploy
Set the build to Do Not Deploy.

Once you have set all the above settings, navigate back to the main profile window using the Back button in the top right corner.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



Click on the launch icon next to your Patching profile.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



The project launcher will go through the building, cooking, and packaging process. This may take some time depending on the complexity of your project.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



Once the operation is complete, close the window or click on Done.

【虚幻4翻译文档-Patching | Unreal Engine】[虚幻4中文文档]



The patching process creates a pak file in [ProjectName]\Saved\StagedBuilds[PlatformName][ProjectName]\Content\Paks</code>. This pak file is the patch that should be distributed to users.For example, on Windows, you would create an installer to copy that pak file into the user's [ProjectName]\Releases[VersionNumber][PlatformName]</code> folder, next to the originalcontent pak file.



To test the patch on Windows:

Copy the pak file from ShooterGame\Releases\1.0\WindowsNoEditor</code> to ShooterGame\Saved\StagedBuilds\WindowsNoEditor\ShooterGame\Content\Paks</code>

Run ShooterGame.exe</code> from ShooterGame\Saved\StagedBuilds\WindowsNoEditor</code>.
回复

使用道具 举报

0

主题

846

帖子

2784

积分

vip会员

Rank: 1

积分
2784
发表于 2016-7-2 19:06:14 | 显示全部楼层
我现在有的是钱,我要下了!
回复 支持 反对

使用道具 举报

0

主题

845

帖子

2759

积分

vip会员

Rank: 1

积分
2759
发表于 2016-7-3 22:09:19 来自手机 | 显示全部楼层
看看!便宜就好了
回复 支持 反对

使用道具 举报

0

主题

877

帖子

2897

积分

vip会员

Rank: 1

积分
2897
发表于 2016-7-4 06:45:53 来自手机 | 显示全部楼层
楼主真是好人吖~~非常感谢
回复 支持 反对

使用道具 举报

0

主题

1282

帖子

3911

积分

vip会员

Rank: 1

积分
3911
发表于 2016-7-4 18:06:12 来自手机 | 显示全部楼层
这个需要的j8也不少吧
回复 支持 反对

使用道具 举报

0

主题

961

帖子

3158

积分

vip会员

Rank: 1

积分
3158
发表于 2016-7-6 08:52:05 | 显示全部楼层
什么鬼???看着很不错的样子啊!
回复 支持 反对

使用道具 举报

0

主题

860

帖子

2831

积分

vip会员

Rank: 1

积分
2831
发表于 2016-7-8 03:54:36 来自手机 | 显示全部楼层
看看!便宜就好了
回复 支持 反对

使用道具 举报

0

主题

836

帖子

2760

积分

vip会员

Rank: 1

积分
2760
发表于 2016-7-12 17:08:15 | 显示全部楼层
好吗
回复 支持 反对

使用道具 举报

0

主题

846

帖子

2769

积分

vip会员

Rank: 1

积分
2769
发表于 2016-7-13 15:50:22 来自手机 | 显示全部楼层
论坛的好东西真多啊,相信版主放的东西都靠谱,就是希望价格便宜点啦。
回复 支持 反对

使用道具 举报

0

主题

852

帖子

2878

积分

vip会员

Rank: 1

积分
2878
发表于 2016-7-17 00:36:55 来自手机 | 显示全部楼层
谢谢共享,总之先收藏了
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部