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"

Mounting Pak File and using its assets [mod support]

Hello! I've been trying to make my project support player's mods, and I am having some struggle with that.

So firstly I want to put out a list of what I am trying to achieve:

  1. Modders are not required to have any source files of the project.

  2. Modders make their mods in a separate project. (or inside a given mod template project)

  3. Mods can have blueprints, materials, levels, meshes.

  4. Mods are packed into ".pak" files.

  5. Mods are not conflicting with each other in terms of naming and assets naming. (optional)

  6. Mods are packed using "UnrealPak.exe" tool. (optional)

I've managed to find a way to mount an external pak file at runtime and go through its content, but I am failing to cast any blueprints to "UBlueprintGeneratedClass", though I am able to load them as "UObject" (they are still staying dysfunctional). Another thing is that all the hard references inside mod's assets get broken. Ex: blueprints can't find their parents, levels can't find their assets and so on...

I know that the way you pack the mod has a lot to do with the further behavior. I've tried making my mod as just a packaged separate project with both same and different names from the project I want to runt the mods in. At some point, I even tried to package mods as DLS's using Project Launcher, but it eventually got broken and stopped working properly (some other error).

Packaging with "UnrealPak.exe" gave me some very weird results. Firstly it wouldn't respect the directories I wanted to pack, simply packing all the content from those directories into the root of the ".pak" file. Secondly, I couldn't even load anything, after mounting the pak file.

I know it is better to keep the list of what you tried, but at this point, I don't even remember all the ways I've attempted in order to make it work, but I tried a lot, and I am completely stuck now.

Any help is appreciated.

Thanks.

Product Version: UE 4.18
Tags:
more ▼

asked Apr 27 '18 at 10:36 AM in C++ Programming

avatar image

Hnomer
63 3 4 9

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

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