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"

How to load pakfiles especial the references

Hello,

I'm working on an application that will need to load content -- uassets -- that will be generated over time after the application's release. Sort of like DLC, but it' doesn't have to be very automatic or tightly integrated into the user experience. If the simplest way to do this is command line flags when running the application, then so be it.

I've been hunting around for solutions to this, and I don't see a lot of helpful information out there. The best I've got so far is that I'm packaging up my umap and associated uassets into a pak file, using FPakPlatformFile to mount it at runtime, and using FStreamableManager to load all that into memory. This is all pretty much gleaned from ( https://answers.unrealengine.com/questions/109485/stream-an-asset-from-the-internet.html ).

However, this is still not working as I'd like. Specifically:

The FPakPlatformFile only seems to be able to mount the pak file to the Engine Content directory, and not the Game Content directory (if you try to mount under game content the files just don't show up). This breaks all the asset references, such as the materials applied to the models, because that was all created under Game Content.

Once the contents of the pak file have been loaded, I have been able to use some of the assets, by doing things like spawning in StaticMeshActors that utilize the meshes from the pak file. However, I have yet to be able to successfully load a level (umap) from the pak file. I've tried various methods, including using UGameplayStatics::OpenLevel and level streaming with UGameplayStatics::LoadStreamLevel, but everything crashes in different ways, depending on if I'm trying to do it in the Editor or standalone.

Can what I want to do be done? It really seems like it should be possible, but if it is, then the solution seems remarkably hard to find. Please help! Thank you!

the issue from https://answers.unrealengine.com/questions/229280/what-is-the-best-way-to-load-a-map-and-other-conte.html. but no answer

Product Version: UE 4.18
Tags:
more ▼

asked Jun 07 '18 at 08:18 AM in C++ Programming

avatar image

UnrealLF
1 1 1

(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