Everything was ok. And then out of nowhere, this pop up:
1>------ Rebuild All started: Project: RPG, Configuration: DebugGame_Editor x64 ------
1> Cleaning RPGEditor Binaries...
1> Parsing headers for RPGEditor
1>EXEC : error : Failed to generate code for RPGEditor
1>EXEC : error : UnrealHeaderTool failed for target 'RPGEditor' (platform: Win64, module info: D:\Unreal\RPG\Intermediate\Build\Win64\RPGEditor\DebugGame\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command ""D:\Unreal\Unreal Engine\4.0\Engine\Build\BatchFiles\Rebuild.bat" RPGEditor Win64 DebugGame "D:\Unreal\RPG\RPG.uproject" -rocket" exited with code 1.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Does anyone had similar issue ?
Been googling for a while about it, but there seems as many solutions to the problem, as there are project setups.
I guess it somehow paths related, but wish I know where it even start looking.
edit:
I tried building from console and Unreal Header Tool Crashed.
Are there any log files for UHT that would help diagnose problem ?
edit2:
I found the issue, though it doesn’t bring me closer to solve it. I though it might be looped depdency in header files, but it doesn’t seem the case.
In my RPGCharacter.h I have:
#include "GameFramework/SpringArmComponent.h"
#include "Common/RPGCharacterAttributes.h"
#include "Common/RPGCharacterStructs.h"
//#include "Components/RPGEquipmentManagerComponent.h"
//#include "Powers/RPGPowerBase.h"
#include "RPGCharacter.generated.h"
When I Comment this line:
//#include "Components/RPGEquipmentManagerComponent.h"
It’s working fine (aside from unresolved member variables, that I need from this file).
When I uncomment it UHT crashes.
These are headers from component in question:
#pragma once
//#include "RPG.h"
//#include "RPGCharacter.h"
#include "../Items/RPGWeaponBase.h"
#include "../Items/RPGItem.h"
#include "RPGEquipmentManagerComponent.generated.h"
Character class is commented so it shouldn’t be problem.