Dedicated server build - How to correctly include marketplace plugins?

I’m trying to build a standalone server for a project that uses several marketplace plugins for blueprints. I can build successfully, but when trying to run the server build executable, I get the following (the name of my project is
“Alpha1”:

"Missing Alpha1 Modules

The following modules are missing or built with a different engine version: 

BlueprintWebSocket
LowEntryExtendedStandarLibrary
LowEntryExtendedStandarLibraryEditor
NetDBPlugin
NetDBEditor
VaRest
VaRestEditor"

Getting to this state I have:

  1. Built the engine from 4.24 source, “Development Editor” build.
  2. Created a new directory “Plugins” in my project directory.
  3. Copied the Marketplace plugins into this Plugins directory.
  4. Removed the “Binaries” and “Intermediate” directories from each plugin.
  5. Built my project from source “Development Editor” and “Development Server”
  6. Verified that the “Binaries” and “Intermediate” directories for all plugins have indeed been populated.
  7. Open my source build of UE4 editor, and set the “Build Target” to “Alpha1Server”
  8. Build Win64 - server build is successful (But when running it, I get “modules are missing…”)

My server target file is as follows:

using UnrealBuildTool;
using System.Collections.Generic;

public class Alpha1ServerTarget : TargetRules
{
    public Alpha1ServerTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Server;
        DefaultBuildSettings = BuildSettingsVersion.V2;
        ExtraModuleNames.Add("Alpha1");
        ExtraModuleNames.Add("BlueprintWebSocket");
        ExtraModuleNames.Add("LowEntryExtendedStandardLibrary");
        ExtraModuleNames.Add("NetDBPlugin");
        ExtraModuleNames.Add("VaRest");
    }
}

The additional “ExtraModuleNames” with the plugin modules are my attempt at fixing this issue. I can see during build that they are built, but I seem to be missing some important part of this process.

Can anyone spot what I have done wrong?

I changed my server target to the following and rebuilt everything, and I still get the error when running the server executable (even the errors about the editor plugins which I have explicitly disabled in the following snippet). So it seems like changes to the server target are not having any effect. I wonder if there is something cached somewhere that needs to be cleared?

using UnrealBuildTool;
using System.Collections.Generic;

public class Alpha1ServerTarget : TargetRules
{
    public Alpha1ServerTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Server;
        DefaultBuildSettings = BuildSettingsVersion.V2;
        ExtraModuleNames.Add("Alpha1");
        ExtraModuleNames.Add("BlueprintWebSocket");
        ExtraModuleNames.Add("LowEntryExtendedStandardLibrary");
        ExtraModuleNames.Add("NetDBPlugin");
        ExtraModuleNames.Add("VaRest");
        DisablePlugins.Add("NetDBEditor");
        DisablePlugins.Add("LowEntryExtendedStandardLibraryEditor");
        DisablePlugins.Add("VaRestEditor");
    }
}

MODERATOR ATTENTION: I have solved this issue, and it was my own fault… Let’s close this out.

Instead of closing this it would be nice if you would explain what caused it/what the fix was. xkcd: Wisdom of the Ancients

1 Like