I just installed UE4 today and I am following the Twin Stick Shooter tutorial. I got to the part where I have to create my first C++ file, everything works until the part where the file compiles. It says something about auto compile failing and gives me the option to look at the log. I have been searching for a solution the whole day, but I have not found one. I downloaded windows SDK 8.1, I updated visual studio community with C++ common tools and I also installed visual studio express 2013, but still no fix.
This is the log:
Running C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/TwinStickShooter.uproject" -game -progress -2015
Discovering modules, targets and source code for game...
LogHotReload: Recompiling module TwinStickShooter...
LogVSAccessor:Warning: Couldn't access Visual Studio
Recompiling TwinStickShooter...
Launching UnrealBuildTool... [C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe TwinStickShooter -ModuleWithSuffix TwinStickShooter 1999 Win64 Development -editorrecompile -FailIfGeneratedCodeChanges -canskiplink "C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/TwinStickShooter.uproject" -2015]
Creating makefile for hot reloading TwinStickShooter (no existing makefile)
Compiling game modules for hot reload
Performing full C++ include scan (no include cache file)
Parsing headers for TwinStickShooterEditor
Running UnrealHeaderTool "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\TwinStickShooter.uproject" "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -insta
lled -FailIfGeneratedCodeChanges
ERROR: 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h': Changes to generated code are not allowed - conflicts written to 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h.co
nflict'
Error: Failed to generate code for TwinStickShooterEditor - error code: OtherCompilationError (5)
UnrealHeaderTool failed for target 'TwinStickShooterEditor' (platform: Win64, module info: C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest).
CompilerResultsLog: New page: Compilation - 24 Apr 2016 3:29:05 am
CompilerResultsLog: Info Creating makefile for hot reloading TwinStickShooter (no existing makefile)
CompilerResultsLog: Info Compiling game modules for hot reload
CompilerResultsLog: Info Performing full C++ include scan (no include cache file)
CompilerResultsLog: Info Parsing headers for TwinStickShooterEditor
CompilerResultsLog: Info Running UnrealHeaderTool "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\TwinStickShooter.uproject" "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended
-WarningsAsErrors -installed -FailIfGeneratedCodeChanges
CompilerResultsLog: Info ERROR: 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h': Changes to generated code are not allowed - conflicts written to 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/Bas
eCharacter.generated.h.conflict'
CompilerResultsLog:Error: Error Error: Failed to generate code for TwinStickShooterEditor - error code: OtherCompilationError (5)
CompilerResultsLog: Info UnrealHeaderTool failed for target 'TwinStickShooterEditor' (platform: Win64, module info: C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest).
LogMainFrame: MainFrame: Module compiling took 5.323 seconds