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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Map from pak file missing materials and meshes

Hi everyone!

I've been working on this for a few days and I finally have it to a place where I think I'm close to it working. I'm trying to build a system which allows a user to download a .pak file from a server (this part is working) and launch a level from it in the game. Each .pak file is essentially a packaged level. Everything is working and I finally made it so that i can open console and type open minimal_default and it will load the level. (I have created a pak file from a blank project with starter content following these instructions)

The level loads, but none of the meshes or materials load, it's just an empty map. When I check the logs, I get this message repeated for each asset.

 LogStreaming: Error: Couldn't find file for package /Game/StarterContent/Props/SM_TableRound requested by async loading code. NameToLoad: /Game/StarterContent/Props/SM_TableRound
 LogStreaming: Error: Found 1 dependent packages...
 LogStreaming: Error:   /Engine/LevelTest/Content/StarterContent/Maps/Minimal_Default

My Code: This is the code I'm using the mount the pak file.

 UE_LOG(LogTemp, Log, TEXT("MountPak(%s)"), *FullFilePath);

 // get mod UID
 FString PathPart, FilePart, ExtPart;
 FPaths::Split(FullFilePath, PathPart, FilePart, ExtPart);
 FString PathPart2, ModUID, ExtPart2;
 FPaths::Split(PathPart, PathPart2, ModUID, ExtPart2);
 UE_LOG(LogTemp, Log, TEXT("ModUID=%s"), *ModUID);

 IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
 FPakPlatformFile* PakPlatform = new FPakPlatformFile();
 PakPlatform->Initialize(&PlatformFile, TEXT(""));

 if (PakPlatform->Mount(*FullFilePath, 0, *(FPaths::EngineContentDir()))) {
     UE_LOG(LogTemp, Log, TEXT("Successfully mounted %s at %s"), *FullFilePath, *FPaths::EngineContentDir());
     UE_LOG(LogTemp, Warning, TEXT("Failed to mount %s"), *FullFilePath);

Product Version: UE 4.17
more ▼

asked Apr 30 '18 at 11:23 PM in C++ Programming

avatar image

351 7 6 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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