Plugin DLL not found.

Since upgrading to 4.4 I can’t run my project anymore. It consists of one game module and one plugin. The plugin exports some UObject classes to the game module, so it’s defined in the module’s PrivateDependencyModuleNames.

It builds just fine and worked well in 4.3.1. But now, when opening the editor, it says UE4Editor-MyPlugin.dll is missing. I can find this dll inside the Binaries folder of the plugin directory, but not in the root Binaries folder. I guess that’s the problem?

Hey lucasncv-

We’re trying to recreate this so that we can find out the exact cause. What plugin are you using that is causing this problem?

It’s my own plugin, I’m trying to isolate the exact problem. I tried switching back to 4.3.1 but the problem persisted… I’m must have corrupted something somewhere. I’ll get back to you with more details.

Okay, thanks for letting me know. Let me know what you find and if the problem is something to do with the editor then we will continue our investigation.

, I’ve managed to isolate the problem to a simple project. It doesn’t seem to work in any version, even 4.3.1. Let me break it down:

In MyProjectPlayerController I use two external objects, one from UObjectPlugin (the engine plugin) and the other from MyPlugin (included in the project).

Builds fine, but says MyPlugin.dll is missing. If I remove MyPlugin, everything works.

Why UObjectPlugin works but MyPlugin does not? They’re almost identical, I think.

If I set MyPlugin’s LoadingPhase to PreDefault, it says MyPlugin was not found and then loads the project anyway. But the second time I load it, it crashes.

EDIT: The test project needed at least one class inheriting from UObject to work correctly.

Figured it out, the plugin needs to load before the Game Module, e.g. LoadingPhase: PreDefault.