x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

C++ errors

I have been trying to follow along with the Twin Stick shooter 5 base character class video. When creating a new c++ class I get this error.

Successfully added class 'MyCharacter2', however you must recompile the 'TwinStickShooter' module before it will appear in the Content Browser. Failed to generate project files.

Would you like to open the Output Log to see more details?

I also have another error when following along with 3rd Person Power-Up Game with C++ Videos When trying to create a new project with C++.

Running C:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="C:/Users/Justin Michael Ortiz/Documents/Unreal Projects/MyProject4/MyProject4.uproject" -game -rocket -progress -2015 Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015. Discovering modules, targets and source code for game... UnrealBuildTool Exception: ERROR: Windows SDK v8.1 must be installed in order to build this target.

I'm new to Unreal and have no idea how to fix this. Please help!

Product Version: UE 4.10
Tags:
more ▼

asked Feb 10 '16 at 11:45 PM in C++ Programming

avatar image

Knives008
26 2 3 4

avatar image fszczemton Feb 11 '16 at 07:55 AM

Do you have Visual Studio 2015 with all the C++ components installed?

avatar image RebelMoogle Feb 11 '16 at 08:49 AM

What is your platform? Which Visual Studio version do you have installed?

Maybe obvious, but just to check, have you checked to see if the right Windows SDK is installed correctly? ("ERROR: Windows SDK v8.1 must be installed in order to build this target.")

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

Solved this problem.... All I needed to do was reinstall visual studio 2015. Everything works now.

more ▼

answered Feb 29 '16 at 11:44 PM

avatar image

Knives008
26 2 3 4

(comments are locked)
10|2000 characters needed characters left

You don't have to reinstall Visual Studio 2015. Another way is to completely uninstall Unreal Engine first (I don't think you will lose all of your project configuration or data, so don't worry about it. If you do, just make a backup).

Then, open a new project in Visual Studio; go to File>New>Project. Select "Game" then click the package called Install Unreal Engine. This will automatically install Epic Games Launcher. After the installation is done, fire up the launcher and install Unreal Engine as usual.

After it's installed, launch the game engine and try to create a new C++ file from the menu. Make sure to install all the necessary prerequisites when the window pop up. It will compile and automatically opens up VS.

more ▼

answered Jun 12 '17 at 04:30 PM

avatar image

kennywilliam
6

(comments are locked)
10|2000 characters needed characters left

Hey Knives008-

This message typically means that the class was created as expected however the hot reload that the editor preforms automatically when a new class is added failed to complete. If you return to Visual Studio you should see the MyCharacter2 class you added. If you choose to build the project it should tell you if there are any errors that prevent it from compiling successfully. Fixing these compile issues will prevent the message from appearing when another new class is created.

Cheers

Doug Wilson

more ▼

answered Feb 11 '16 at 08:19 PM

avatar image Knives008 Feb 11 '16 at 09:37 PM

Thanks for the reply Doug! I'm really new to Unreal 4. Can you elaborate a little more in laymans terms how to fix the compile issues? I just tried opening My TwinStickShooter Project and its saying, the following modules are missing or built with a different engine version:UE4Editor-TwinStickShooter.dll...... And when I try to rebuild its say TwinStickShooter could not be compiled. Try rebuilding from source manually. not sure what happend....

avatar image Doug E ♦♦ STAFF Feb 12 '16 at 02:18 PM

If you open the project in Visual Studio by running the ProjectName.sln in the project folder you can select Build from the toolbar and then Build Solution. If this succeeds then you should be able to open the project without errors. If this fails, the Error List and Output tabs along the bottom should provide information about what is causing it to fail.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question