Pak C++ plugin
I am creating a mod for my game, and I have trouble packaging the native classes of the plugin.
I am able to cook my plugin into a .pak, and use the blueprints/other assets in there in my game without issues, but the native classes are missing, giving me errors like this:
I am guessing that the dll is not cooked into the .pak. I tried to put my plugin dll in the same folder as the game .exe, but no luck.
Is there a way to pack C++ plugins?
asked Jun 03 '17 at 05:15 PM in Packaging & Deployment
Unreal has functionality for dynamic load of DLLs, but I don't think you can call any functions from it without having the header compiled with the main game, for the signatures.
So perhaps a way would be to have your main code load DLLs created from the same base class, so the main game can know it. Then, for each different DLL, there'd be an extension of this base class that knows how to work with other new code. But I have no idea how you'd separate the compilation of DLC vs base code in Unreal. It compiles all code in the project for the base game. Unless you had DLC code in a separate project, but then the main one might not have the slightest idea on how to access it.
Usually DLCs are only new Assets, with classes based on classes from the base game only.
answered Oct 30 '18 at 09:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here