# HELP! About local pak file async load error

**URL:** <https://forums.unrealengine.com/t/help-about-local-pak-file-async-load-error/356917>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 9, 2016, 4:00pm UTC](https://forums.unrealengine.com/t/help-about-local-pak-file-async-load-error/356917 "2016-05-09T16:00:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e25a63ba1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e25a63ba1](https://forums.unrealengine.com/u/anonymous_user_e25a63ba1)\
**Post date:** [May 9, 2016, 4:00pm UTC](https://forums.unrealengine.com/t/help-about-local-pak-file-async-load-error/356917/1 "2016-05-09T16:00:27Z")

</div>

I followed by all setp(link:[Stream an asset from the internet - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/109485/stream-an-asset-from-the-internet.html#comment-109555-form))，

but when I exec my code, the console output these errors：

LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1 requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1\_ar requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1\_no requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1\_pmdg requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1material0 requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/adh1\_t1material1 requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/NewWidgetBlueprint requested by async loading code.  
LogStreaming:Error: Couldn’t find file for package /Engine/s1\_ui requested by async loading code.  
LogTemp: async load end.

UE4.10 PIE mode

Anybody can tell me what’s wrong?

I guess the pak file did not mount into editor.

Here is my code, it’s a blueprint library function.

```
void UExternalResBPLib::TestLoadRes(const FString& pakPath, const FString& resName)
{
	FString pakRealPath = FPaths::GameDir().Append(pakPath);
	FPakFile tmpPF(*pakRealPath, false);
	
	if (tmpPF.IsValid())
	{
		FPakPlatformFile* pakPlatformFile = new FPakPlatformFile();
		bool res = pakPlatformFile->Initialize(&FPlatformFileManager::Get().GetPlatformFile(), TEXT(""));

		if (res)
		{
			FString mountStr = FPaths::EngineContentDir();
			//FPaths::MakeStandardFilename(mountStr);

			if (pakPlatformFile->Mount(*pakRealPath, 0, *mountStr))
			{
				TArray<FStringAssetReference> TargetAssets;
				TSet<FString> PakContent;
				tmpPF.FindFilesAtPath(PakContent, *tmpPF.GetMountPoint(), true, false, true);

				for (TSet<FString>::TConstIterator SetIt(PakContent); SetIt; ++SetIt)
				{
					FString AssetName = *SetIt;
					UE_LOG(LogTemp, Log, TEXT("orig asset name:%s"), *AssetName);

					if (AssetName.EndsWith(FPackageName::GetAssetPackageExtension()))
					{
						FString AssetShortName = FPackageName::GetShortName(AssetName);
						AssetShortName.RemoveFromEnd(FPackageName::GetAssetPackageExtension());
						AssetName = TEXT("/Engine/") + AssetShortName + TEXT(".") + AssetShortName;
						TargetAssets.Add(AssetName);
					}
				}

				UMyGameInstance* MGI = UMyGameInstance::getInst();
				if (MGI)
				{
					FStreamableDelegate StreamableDeleagte = FStreamableDelegate::CreateStatic(&UExternalResBPLib::TestAsyncLoadCallBack);
					MGI->getStreamMgr()->RequestAsyncLoad(TargetAssets, StreamableDeleagte);
				}
			}
		}

		delete pakPlatformFile;
		pakPlatformFile = nullptr;
	}
}

void UExternalResBPLib::TestAsyncLoadCallBack()
{
	UE_LOG(LogTemp, Log, TEXT("async load end."));
}

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e25a63ba1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e25a63ba1](https://forums.unrealengine.com/u/anonymous_user_e25a63ba1)\
**Post date:** [May 10, 2016, 9:01am UTC](https://forums.unrealengine.com/t/help-about-local-pak-file-async-load-error/356917/2 "2016-05-10T09:01:34Z")

</div>

Anyone can help me?

---

<div class="post-metadata">

**Author:** ![burak.io](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@burak.io](https://forums.unrealengine.com/u/burak.io)\
**Post date:** [September 2, 2016, 8:17am UTC](https://forums.unrealengine.com/t/help-about-local-pak-file-async-load-error/356917/3 "2016-09-02T08:17:41Z")

</div>

Any help would be perfect for community, I also have this issue.
