x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What is the right way to patch a project?

Hi, I have read the releasing and patching documents. And I have created a release version(1.0) and a patching base on it. I would like to know how to create a second patching. Should I make a new release(2.0) and a new patching base on it? Move the patching 1 and patching 2 to the version 1.0 folder?

Product Version: UE 4.11
Tags:
more ▼

asked Jul 20 '16 at 08:03 AM in Packaging & Deployment

avatar image

AllenTang
6 1 1 3

avatar image gabe_tabcorp Oct 05 '17 at 10:52 PM

Guys sorry to resurrect this thread. But what if we want to use these patches to randomly update the master game. Say for example we don't want to sequentially update the game with patches 1 by 1, but rather, we have dynamic assets that we want to load in depending on a value set by the user. Such as loading in a table, loading in furniture, or whatever. Are we able to use the patch system to choose which patch (Pak) we want to load in at runtime?

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

AllenTang,

Did you follow all of the instructions within the documentation? It gives you a step by step guide on how to create your patch and also how to install the patch.

Samantha

more ▼

answered Jul 20 '16 at 05:54 PM

avatar image AllenTang Jul 21 '16 at 01:32 AM

Sure, I am OK with how to create and install patch. I would like to know how to create multiple patches for different versions of project. BTW, did you read my question?

avatar image mngpssn Feb 20 '17 at 09:41 PM

Hey Allen, actually I want to do the same as you. I have an empty room for making first version. After that I want to make three different patches so the pack one has five items, the second one has another different items and the last pack has another five items as well. What I want is just choose the pack I need and include it in my folder for having the items availables.

(comments are locked)
10|2000 characters needed characters left

Allen,

When you're creating your second patch, it would be built based off of your first patch so to speak. So you'd update the "Release version this is based on" accordingly, because the new patch would be based on the old patch but with additional updated included. For example: 1.0 to 1.1, and then to 1.2.

Once it's built, you should follow the installing a patch section of the documentation provided.

Installing a Patch

The patching process creates a pak file in [ProjectName]\Saved\StagedBuilds[PlatformName][ProjectName]\Content\Paks. 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] folder, next to the original content pak file.

The patch pak file will automatically be mounted when it is located on the device in any of the pak search directories set in FPakPlatformFile::GetPakFolders. To prioritize patches, the mounting system uses a _p at the end of the filename to determine that it gets priority over other pak files. It can be renamed, but you need to include the _p.pak at the end of the file name.

If you build two patches from the same release version, they are both complete patches, so while installing the second patch, you should also remove the first.

Good luck!

more ▼

answered Jul 21 '16 at 06:26 PM

avatar image Death wyrm Nov 13 '16 at 09:10 PM

OK, but it has to take the information from the previously built pak file.

So say I've built out that pak file, and I want to add a patch for new content. Where do I put the original pak file so that the patch system will see it and use it to check against the new patch that it is creating?

avatar image Samantha Sutton ♦♦ STAFF Nov 17 '16 at 05:14 PM

If you look back in my last response, there is an example:

"On Windows, you would create an installer to copy that pak file into the user's [ProjectName]\Releases[VersionNumber][PlatformName] folder."

(comments are locked)
10|2000 characters needed characters left

,Guys Sorry to resurrect this thread,

more ▼

answered Oct 05 '17 at 10:50 PM

avatar image

gabe_tabcorp
6 2 1

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question