PackagingResults:Error: Error Unknown Error build failed

Hi everyone, I’m relatively new to unreal and for some reason my game wont package to windows 32 bit anymore? I haven’t had any problems packaging it in the past. I haven’t changed anything since I last packaged it but we have performed some windows updates.

I would be grateful for any assistance.

Cheers

Hey Paul_55,

Try going to File-> New C++ Class and add a class based on None to the project. Then try to package again.

I believe this will resolve your error.

If not, please provide your log from your project’s Saved->Logs folder after the packaging fails again.

Have a great day

Here are some screen grabs.
Cheers Sean

Hi Sean
That didn’t work, it asks me to recompile the green heart module before it will appear in the content browser failed to generate project files. would you like to see output log for more details.

After doing this the game wouldn’t package so I closed the file and tried to reopen. On reopening I get a missing dll message and it asks if I would like to rebuild. I clicked yes and then it says the file could not be compiled. Try rebuilding from source manually. Now I cant open the file at all?!

I don’t have a clue what’s going on in here. Further assistance would be much appreciated.

In the project directory a new folder has appeared called source, is it something to do with this?

Best Paul

The source folder is created when you add a new C++ Class.

What you’ll need to do is right-click on your .uproject file and Generate Project Files. Then, you’ll see a .sln file appear in your project directory. Then, open this in Visual Studio 2015 and attempt to build your project.

This will give more detail on the errors and we can figure out why the project is failing to compile. When you compile in Visual Studio, please provide the error messages that you see in your Output tab when it fails (assuming it fails again).

Thanks

Hi Sean I right clicked to generate files and got the message below…

Running C:/Program Files (x86)/Epic Games/4.14/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/OLD DATA/Unreal Engine Green Heart/UE_Green_Heart 4.14/UE_Green_Heart.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
Messages while compiling D:\OLD DATA\Unreal Engine Green Heart\UE_Green_Heart 4.14\Intermediate\Build\BuildRules\UE_Green_HeartModuleRules.dll:
d:\OLD DATA\Unreal Engine Green Heart\UE_Green_Heart 4.14\Intermediate\Source\UE_Green_Heart.Target.cs(6,14) : error CS0101: The namespace ‘’ already contains a definition for ‘UE_Green_HeartTarget’
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

I hope this helps in getting to the bottom of this.

Thanks for your help

Could you attach or post UE_Green_Heart.Target.cs? As it seems to have an issue with a namespace inside it

Is that what you mean?

// Fill out your copyright notice in the Description page of Project Settings.

using UnrealBuildTool;
using System.Collections.Generic;

public class UE_Green_HeartTarget : TargetRules
{
public UE_Green_HeartTarget(TargetInfo Target)
{
Type = TargetType.Game;
}

//
// TargetRules interface.
//

public override void SetupBinaries(
	TargetInfo Target,
	ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
	ref List<string> OutExtraModuleNames
	)
{
	OutExtraModuleNames.AddRange( new string[] { "UE_Green_Heart" } );
}

}

Thanks Project gheist

Sorry for the delay. It sounds like you may have some duplicate files somewhere, as your error is stating that the namespace already exists. Try the suggestions listed in the following thread in my accepted answer:

Let me know if that helps