I’m working on downloadable content system for my game project. I’m creating .pak files with cooked .uassets and .umaps using UnrealPak.exe. Mounting .pak files works fine, but when i try to load any object from this file like that:
LogLinker:Warning: Unable to load package (../../../Engine/Content/pyramid_torus_map.umap). Package contains EditorOnly data which is not supported by the current build or vice versa.
It’s kinda dead end for me. Any tips on what might i be doing wrong?
Ok this is solved. This error happens, when you try to load cooked assets in editor, or try to load not-cooked assets in released game. Kinda obvious but still…
First i m cooking all my assets with command line. You can use FMonitoredProcess class to call command line from code. Then i call UnrealPak.exe using the same class to create pak file. To mount pak files you can use this code:
The most not obvious thing about this process are paths to files. Files need to be mounted in engine dir. Game dir just doesnt work - i have no idea why. Also remember that assets are referenced with relative paths, so you need to keep the same catalog structure.
If you have more specific questions feel free to ask. Good luck.
I’ve been doing the following from the command line:
Engine/Binaries/Win64/UnrealPak.exe [path to the directory you want the pak in] -create=[path to a text file that lists the paths to the .uassets you want in the pak]
You can also make them from the editor by following the steps in this post: http://www.tomlooman./add-mod-support-to-your-unreal-engine-4-game/
I’ve been doing the following from the command line:
Engine/Binaries/Win64/UnrealPak.exe [path to the directory you want the pak in] -create=[path to a text file that lists the paths to the .uassets you want in the pak]
You can also make them from the editor by following the steps in this post: http://www.tomlooman./add-mod-support-to-your-unreal-engine-4-game/
Hello!From the UnrealEngine community,How to dynamically load the specified content in the PAK (as in a blueprint, material, and the name of the image from the PAK).Can you give me a demo code?My email address is comThanks to you!