Hey Jonathan,
My PAK file is being found, and mounted. The issue is that the AssetRegistry isn’t being loaded from the PAK file when the plugin is located a file outside of the base Squad folder.
In PluginManger.cpp:
FCoreDelegates::OnMountPak.Execute(PakPath, 0, nullptr);
Is succeeding. Its later on in the program when it gets to the AssetRegistry constructor FAssetRegistry::FAssetRegistry() it fails. Inside of there it tries serialize plugins with pak files paks. And that is where it fails. Referencing above it is failing because our Filename is not in the Squad root project so the
if (Filename.StartsWith(MountPoint))
Fails. Here are the details of the case failure.
Fail Case (This is when it is in the Steam Workshop directory):
Filename : c:/steam/steamapps/workshop/content/393380/TestingMod/AssetRegistry.bin
MountPoint : ../../../Squad/
Succeed case (This is when it is in Squad/Plugins)
Filename: ../../../Squad/Plugins/Mods/TestingMod/AssetRegistry.bin
MountPoint: ../../../Squad/
Thanks,
Zak