we pack a level in project A into file named A_Level.pak, this level has no gamemode in default. Then we hot-reload this pak file in a unrelated project B in runtime, but there’s a problem:
in project B, our step is:
- FPakPlatformFile::Mount(A_level.path);
- using RegisterMountPoint make A register in the path “/Game”
after step 2), we found the default content path in project B is invalid, and something error occurs when loading the A_Level, error info like this:
LogLinker: Warning: Failed to load ‘/Game/BSEditor/Blueprints/GameMode/BP_BSEditorGameMode’: Can’t find file.
LogLinker: Warning: Failed to load ‘/Game/BSEditor/Blueprints/GameMode/BP_BSEditorGameMode’: Can’t find file.
LogUObjectGlobals: Warning: Failed to find object ‘Class /Game/BSEditor/Blueprints/GameMode/BP_BSEditorGameMode.BP_BSEditorGameMode_C’
my question is :
- we’d like to set the default gamemode_B for A_level, and how?
- we’d like to load some uassets in B during hotload A_Level.pak, it seems the original game path is invalid, how to resolve this problem?
many thanks.