Hello and good evening,
I am having some issues with unreal, i have added an AActor derived class through the editor, however, when I try to declare a variable using my new class in GameMode/HUD/Character classes unreal crashes while compiling, and then when I try to re-open the project it tries to compile the game again, however it always fail *even after the removal of the intermediate and binaries folder;
Here is how I am declaring the variable (maybe it’s not a bug and I am just doing things wrong, if so, please forgive me and teach me if possible how to do it right):
-
Create the class through the editor (Add Code->AActor->RandomNamedClass)
-
In visual studio, open the GameMode/HUD/Character class header file (.h)
-
Add the “#include “RandomNamedClass.h”” line before the “.generated.h” include line
-
In the public section of the class, adding “ARandomNameClass RandomNamedClass;”
-
Save all and Compile
-
Unreal then crashes while compiling, SOMETIMES the crash dialog shows up, shows the hardwareID and no mindump
Unreal Version: 4.7.6-2513093+++depot+UE4-Releases+4.7
OS: Windows 8.1 Pro build 9600
Visual Studio: Microsoft Visual Studio 2013 Ultimate with Update 4
Machine:
Processor: AMD FX-9590 @ 4.7Ghz
GPU: AMD/ATI Asus 290X 4GB
RAM: 32GB Corsair Dominator @2100Mhz
HDD: 3TB Generic HardDrive (with about 1.5TB free)
Thanks for the attention!