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"

Mount fails in Mobile Patching

Hi guys, I'm using the "Mobile Patching System" feature introduced in 4.14 for an android project, to create a small starting map (for the AppStore) that would then download the rest of the game from the cloud. Everything goes well but I'm having a problem at the Mount stage.

These are the steps I'm following:

  1. Create a new Blueprint blank project.

  2. Create an entirely blank map called "Lobby" with only the Mobile Patch Utility Nodes in the level blueprint (https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/PatchingNodes/index.html). All the nodes look pretty much the same as that guide.

  3. Create another map called "Main" which consists of a floor and a couple of cubes lying around. This is the level that would be downloaded from the cloud.

  4. Follow the Mobile Packaging Wizard (https://docs.unrealengine.com/latest/INT/Platforms/Mobile/MobilePackagingWizard/index.html). Create the two profiles, choose "Lobby" as the Distributable APK map and build in Development configuration, choose "Main" as the Downloadable map and select Android_ETC1 texture format.

  5. After running the profiles, a few things were generated:

a. In the game directory, "Android_APK_DLC" folder (as specified in Mobile Packaging Wizard step 3). It contains two folders: App->1.0->EMPTY and HTTPchunks->DLC1.0->...Android_ETC1->DLC1.0->MobileDLC->MobileDLC-Android_ETC1.pak, ...Android_ETC1->ManifestDir->EMPTY.

b. In the game directory, "Releases" folder. Releases->1.0->Android_ETC1->MobileDLC-Android_ETC1.pak and AssetRegistry.bin.

c. In the PC's Documents directory, "Unreal" folder. Contains Android_ETC1 folder with the apk, ChunksV3 folder and the manifest file (MobileDLC_MobileDLCDLC1.0.manifest).

alt text

  • Rename the manifest file to "mobileTEST.manifest" and upload this and the ChunksV3 folder to the server.

  • Install the apk generated in the Documents/Unreal/Android_ETC1 folder in the mobile device.

  • Run the game in mobile. The request, download and installation processes were all successful, but the mount process fails with a "Mount failed" error.

I created another C++ project to debug the Mount function and see what went wrong.

alt text

The FindPlatformFile(TEXT("PakFile")) function is returning null, so then (PakFileMgr == nullptr) is true, the function returns false and the process fails.

Any idea how to solve this problem? Or if I'm doing something wrong? Thanks!

Product Version: UE 4.15
Tags:
request.jpg (70.0 kB)
mount.jpg (47.4 kB)
request.jpg (70.0 kB)
more ▼

asked Mar 28 '17 at 02:54 AM in Packaging & Deployment

avatar image

vicdelacroix
21 1 5 5

avatar image Sean L ♦♦ STAFF Apr 06 '17 at 01:24 PM

Hey vicdelacroix,

I apologize for the delay. I've reached out to our developers for more information on this to see if they have any suggestions for you, and I will respond as soon as I have more information.

Thank you for your patience.

avatar image vicdelacroix Apr 06 '17 at 11:14 PM

Thanks, Sean. I appreciate that. Look forward to hearing back from you soon.

avatar image Sean L ♦♦ STAFF Apr 10 '17 at 06:52 PM

Just an update that the engineer responsible for this is out of the office for a few days. I'll respond as soon as I hear back from them.

avatar image vicdelacroix Apr 11 '17 at 03:26 AM

Ok thanks, Sean. Hopefully they can follow up on this asap

avatar image ddvlost STAFF Apr 14 '17 at 10:31 AM

This is strange that App->1.0 is empty. Android_APK_DLC folder should have App folder where final apk will be placed after packaging process. And Android_APK_DLC/HTTPChunks/../.. should have CloudDir that needs to be uploaded to server. Do you have any packaging errors in the log?

avatar image vicdelacroix Apr 19 '17 at 03:57 AM

Sorry for the delay, please don't close this issue. As a matter of fact I do have packaging errors, but I kept trying because some files were being created. See the screenshot below and I'm also attaching the full log. That's what happens when I launch the APK Profile.

alt text link text

projectlauncher.log (157.2 kB)
log.jpg (287.4 kB)
avatar image ddvlost STAFF Apr 26 '17 at 02:19 AM

Could you delete content of HTTPChunks/ and App/ directories and then run both profiles again, first app profile then DLC profile? Do not rename or move any files.

Also could you check if your setup works on PC? Just open created profiles and change settings there to package for Windows instead of Android.

avatar image vicdelacroix Apr 27 '17 at 12:45 AM

I deleted the content of HTTPChunks/ and App/ directories and then ran both profiles again, but I get the same results, empty folders and that same error in "UAT post launch cleanup".

I also tried changing the settings to package for Windows and again, same results. It creates the same files as in Android and every process finishes successfully except the "UAT post launch cleanup" in the app profile.

avatar image ddvlost STAFF Apr 27 '17 at 12:27 PM

Looks like it complains about Projects/MobileDLC/APK_DLC/App/1.0 which is part of C:\Users\Damian\Documents\Unreal Projects\

Could you move your project to a place where there no spaces in the path, and try again? Looks like last packaging step does not handle spaces in the path correctly. If moving project helps, we will fix it in next release.

avatar image vicdelacroix Apr 29 '17 at 02:32 AM

Yes, thanks! Indeed that was the problem!! I moved the project to the desktop (no spaces in the path) and the packaging finished without any errors. Be sure to fix that in the next release.

Now all the folders and files from the Mobile Packaging Wizard are there. I upload the files to the cloud, the download, installation and mount functions work ok, but now I'm having another problem.

All the patching logic is made on the level BP of the Lobby level. Once the Main level has been successfully downloaded and mounted, I load it calling "Open Level". It does load the level but most meshes are missing, see the screenshots below:

alt text Main level - as seen in the Editor

alt text Main level - screenshot taken from an android device

As you can see, the shadows of the cubes are there but the cubes themselves are not. Also, note that the floor is there but it probably has to do with the fact that it's the same floor that the Lobby level has.

Here's the project I'm using: https://dl.dropboxusercontent.com/u/622526344/MobileDLC.rar (Be aware that the Mobile Packaging Wizard will throw a packaging error which I solved by adding an empty c++ class to the project).

A couple of things I tried but didn't work: 1. Adding a 5-second delay before opening the Main level 2. On the Mount function, changing the Pak Order to 0

editor.jpg (137.3 kB)
phone.png (907.0 kB)
avatar image ddvlost STAFF May 08 '17 at 03:26 AM

Hi, sorry was OOO for a week. Where those cube assets located? What if you move cube asset into /Game/Content/ folder and then package project? I suspect missing cubes are form Engine content which is not included into DLC.

avatar image vicdelacroix May 08 '17 at 10:59 PM

That was it! I copied the cube assets to the /Game/Content/ folder and it worked! Thanks so much.

This issue is resolved, but I do have one more question. I'd appreciate it if you could advise whether this solution or something similar could be used for PC patching. Any examples, documentation of just pointing me in the right direction would be great! Thanks

avatar image ddvlost STAFF May 09 '17 at 05:29 AM

This will work the same way on PC, its called mobile patching because in most cases its used to reduce initial app download size which is important on mobile platforms. But this can be used on PC as well.

avatar image vicdelacroix May 09 '17 at 08:01 AM

Excellent! Thanks for your help.

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

1 answer: sort voted first

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

more ▼

answered Apr 18 '17 at 12:48 PM

avatar image

Sean L ♦♦ STAFF
44.2k 485 149 436

(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