Plugin

[=Rednalreden;111038]
Hello again ,

I’ve got everything working now from the editor but when I make a build the game won’t start and I’m presented with the following error:
LogModuleManager:Warning: ModuleManager: Module ‘HydraPlugin’ not found - it’s StaticallyLinkedModuleInitializers function is null.

When I look at the Unreal Engine documentation at (FModuleManager::LoadModuleWithFailureReason | Unreal Engine Documentation) I can see that the reason it’s failing is EModuleLoadResult::FileNotFound.
As far as I can see the dll’s from the plugin aren’t built with the project. Do I need to tell Unreal Engine to package extra DLL’s?

When I try to run it from the Editor or launch it directly from the project folder (right click the .uproject and select launch) it works without a hitch. (I guess because the library’s are available in the engine)

Can you point me in the right direction again?
[/]

So I took a look at the packaging process and what if anything needs to be done to support the shipping build. The answer is not much, just copy the plugins folder into your packaged build! Ideally the dll should be automatically copied in the packaging process; paging any epic staff who could help me with adding additional shipping build instructions to copy specified files into the packaged directory, but for now is the best I could come up with.

Considering only the sixense dll is required for shipping, I updated the plugin with a slimmed-down convenience version and some more verbose logging for when it can’t find the DLL. update is completely optional as it doesn’t change any functionality, only convenience and shipping instructions.

The steps look like this:

  1. As of UE4.3, your project needs code. Even if you’re using blueprint only, add code to your project and compile (it doesn’t need to do anything).
  2. Package your game
  3. Copy the ‘Plugins’ folder (either the full one you have with any of the plugin versions or the slimmed down one found in v0.6.3) into your packaged build ‘ProjectName’ folder. E.g. if I packaged a project called ‘HydraTest’ in my packaged directory (typically called WindowsNoEditor) find the HydraTest folder and place the Plugins folder there.

  1. Confirm its working by launching your packaged game from the ‘Binaries’ subfolder where you placed your ‘Plugins’ folder.

FAQ Troublshooting with Shipping Builds:

Error:


Your project runtime also continues working, but your hydra does not respond.

Fix: means that you have no code added to your project, as of 4.3 your project needs code to run a plugin. Add any code (e.g. new pawn that doesn’t do anything extra) and compile to fix.

Error:


also if you search your logs (v0.6.3) and find


Fix: error means the sixense dll file is missing. Copy the Plugins folder from ShippingBuildOnly into your {packaged root}/{Project Name}

Hope helps!