Announcement

Collapse
No announcement yet.

Loading assets from a DLC ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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:
    Click image for larger version

Name:	TextureOK.jpg
Views:	178
Size:	10.6 KB
ID:	1644794

    Then i try to load a texture that is packaged in a DLC:
    Click image for larger version

Name:	TextureKO.jpg
Views:	139
Size:	7.0 KB
ID:	1644795

    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:
    Click image for larger version

Name:	files.jpg
Views:	147
Size:	22.3 KB
ID:	1644796

    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:
    Click image for larger version

Name:	EngineIni.jpg
Views:	139
Size:	6.4 KB
ID:	1644797

    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

Working...
X