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"

How to load a map from PAK File

Sorry For My Poor English.
I want to build a system that can make player add some mods to the game.
The first thing I want to do is let player add their own maps.
I think It can be done by load player's PAK File.
Here is the code:

 IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
 FPakPlatformFile* PakPlatform = new FPakPlatformFile();
 PakPlatform->Initialize(&PlatformFile, TEXT(""));
 return PakPlatform->Mount(*PakFileName, 0, *FPaths::GameContentDir());

I try to load a DLC Pak that create from SunTemple Project.
it will return True. so I think the PAK File has been successful Mounted.
But When I use "Open SunTemple" command,It show this:
alt text
I guess it was because I mount the pak file at a wrong location.So I test the following directory: FPaths::EngineContentDir()
all of these are not work.
I have no idea how to fix that. can anyone help me?

Product Version: UE 4.16
0.png (11.2 kB)
more ▼

asked Jun 30 '17 at 02:19 AM in Using UE4

avatar image

Jack Myth
149 10 16 24

avatar image DisplaySweet Sep 26 '17 at 07:03 AM

What did you include for these headers? My code can not get refrences for these and I'm not sure what to include ....

FPakPlatformFile(); FPakFile

avatar image Jack Myth Sep 27 '17 at 02:04 AM

I Use Visual Assist to help me include header files. I search the document and I think you should include IPlatformFilePak.h.

avatar image evalover Jan 11 '18 at 11:45 AM

hi,now i face the same question,have you deal it?

avatar image Jack Myth Jan 12 '18 at 04:23 AM

no..I have not find any solution.

(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