Twin Stick Shooter compiling error in character class

Severity Code Description Project File Line Suppression State
Error The first include statement in source file ‘C:\Users\GMPineda\Documents\Unreal Projects\TwinStickShooter\Source\TwinStickShooter\BaseCharacter.cpp’ is trying to include the file ‘TwinStickShooter.h’ as the precompiled header, but that file could not be located in any of the module’s include search paths. TwinStickShooter C:\Users\GMPineda\Documents\Unreal Projects\TwinStickShooter\Intermediate\ProjectFiles\EXEC 1

Severity Code Description Project File Line Suppression State
Error MSB3073 The command ““C:\Program Files (x86)\Epic Games\4.11\Engine\Build\BatchFiles\Build.bat” TwinStickShooterEditor Win64 Development “C:\Users\GMPineda\Documents\Unreal Projects\TwinStickShooter\TwinStickShooter.uproject” -waitmutex” exited with code -1. TwinStickShooter C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37

Have this two error codes in visual studio 2015 (community). Have checked coding and any possible spelling errors all seems to be okay. Ive been trying to figure this out for 4 days already and havent figured it out yet.

Hello g.pineda15,

It seems that the BaseCharacter classes are looking for the projectname.h file to include, which seems to be missing from your project. There should be a TwinStickShooter.cpp and a TwinStickShooter.h in your Source/TwinStickShooter folder. The contents of the .h would be:

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.

#ifndef __TWINSTICKSHOOTER_H__
#define __TWINSTICKSHOOTER_H__

// This file is the private precompiled header for your game.
// You must include it first in each .cpp file.
//
// Place any includes here that are needed by the majority of your .cpp files

#include "EngineMinimal.h"

DECLARE_LOG_CATEGORY_EXTERN(LogMyProject3, Log, All);


#endif

And the contents of the .cpp would be:

#include "TwinStickShooter.h"


IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, TwinStickShooter, "TwinStickShooter" );

DEFINE_LOG_CATEGORY(LogTwinStickShooter)

Please note that every mention of “TwinStickShooter” would be your project name in any other case. This error should go away after these files are added. If you’re curious on how to do this, since they’re not actual classes, you should be able to just add a class to the project via the C++ Class Wizard based off Object (so it doesn’t really get anything) and then plugin the provided code.

Hope this helps!

I had one spelling error and a folder issue, problem resolved. thanks matt