C1083 Plug In Package "UnrealNetwork.h"

Hello there,

I’m not able to package one of my c++ Plug in since it always give me this fatal error:

`ProcessResult.StdOut: [1/6] PCLaunch.rc

ProcessResult.StdOut: [2/6] Module.AdvancedRPGSystem.cpp

ProcessResult.StdOut: [3/6] Module.AdvancedRPGSystem.gen.cpp

ProcessResult.StdOut: [4/6] ARSStatisticsComponent.cpp

ProcessResult.StdOut:
C:\Users\Pasqu\Desktop\Packaged\AdvancedRPGSystem\AdvancedRPGSystem\HostProject\Plugins\AdvancedRPGSystem\Source\AdvancedRPGSystem\Private\ARSStatisticsComponent.cpp(12): fatal error C1083: Non è possibile aprire il file inclusione: ‘UnrealNetwork.h’: No such file or directory

ProcessResult.StdOut: ERROR: UBT ERROR: Failed to produce item: C:\Users\Pasqu\Desktop\Packaged\AdvancedRPGSystem\AdvancedRPGSystem\HostProject\Plugins\AdvancedRPGSystem\Binaries\Win64\UE4Editor-AdvancedRPGSystem.pdb`

My actual build.cs actually is:

PublicDependencyModuleNames.AddRange(
new string[]
{
“Core”,
“CoreUObject”,
“Engine”,
“Slate”,
“SlateCore”,
“UMG”,
“GameplayTags” ,
“Networking”
// … add other public dependencies that you statically link with here …
}
);

	PrivateDependencyModuleNames.AddRange(
		new string[]
		{
			"CoreUObject",
			"Engine",
			"Slate",
			"SlateCore",
            "UMG",
           "GameplayTags" ,
           "Networking"
			// ... add private dependencies that you statically link with here ...	
		}
		);

Is UnrealNetwork.h part of the default engine? Waht am I missing?

Try to add OnlineSubsystem to your private dependencies.
Also why are you adding everything to public AND private dependencies?

Hi, I was just trying all the possible combinations.

Sadly it did not worked, awarning appeared saying that the plug in referenes OnineSubsystem plug in, but it is not included, so I just added

“Plugins”: [
{
“Name”: “OnlineSubsystem”,
“Enabled”: true
},

in the .uplugin files, but then it stopped the packaging even before, because it says that the plug in is missing (???).

I’ll try again this evening again

Hi, I was just trying all the possible combinations.

Sadly it did not worked, awarning appeared saying that the plug in referenes OnineSubsystem plug in, but it is not included, so I just added

“Plugins”: [
{
“Name”: “OnlineSubsystem”,
“Enabled”: true
},

in the .uplugin files, but then it stopped the packaging even before, because it says that the plug in is missing (???).

I’ll try again this evening again

Did you try to include “Net/UnrealNetwork.h” and not just “UnrealNetwork.h”? Because the latter is not supposed to work, whereas the former is.

It seems crazy but it seems to work. Actually I was using Visual assist for automatic include and is the first time I get this kind of errors. Sadly now the packaging files after finishing all the files with the following error:

Log.WriteException: ERROR: Remote compiling requires a server name. Use the editor (Project Settings > IOS) to set up your remote compilation settings.

and this is quite awkward since I’m packaging it for windows (…)!