Loading assets from a DLC ?

Hello,

I’m trying to split the content of my game into DLCs and this seems to break the loading of assets at runtime.

I’m using functions such as LoadObject (for single assets) and LoadBlueprintAssetDataFromPath (for UObjectLibrary).

This works very well as long as the assets are in the main game package but fails when the objects are packaged in a DLC.

Those debug captures were done during the same game session.
First i load a texture that is packaged in the main game:

Then i try to load a texture that is packaged in a DLC:
TextureKO.jpg

The problem is not related to pak files: it also happens when i package the DLC without the pak option.

I can even see the assets:
files.jpg

The files seem to be split in multiple files (uasset + ubluk + uexp).
This doesn’t seem to be a problem in the main game but as a test i tried to disable the spliting by adding this option in my DefaultEngine.ini file:
EngineIni.jpg

It didn’t make any difference: the asset files are still split.

Is there a secret option to use DLC files as any other files, or does anyone know a correct way to disable the spliting ?

Thanks
Cedric

1 Like