C++ Feature Content is Broken (Tested with C++ First Person) -- And for if someone is struggling with fresh brand new installs on Windows 11 with 5.6.1

I am putting this here so people who are new to unreal engine run who come across this problem don’t give up out of frustration. This is my experience with 5.6.1 and windows 11 and getting it working.

I encountered both these issues at the same time and didn’t figure it out for a while.

Problem one (Resolved elsewhere but relevant to this problem if just starting).

When following the documentation it will seem to work at first straight out of the box - until you try and build it from visual studio 2022 (used a fresh community install). Installed the extra wanted packages when prompted by VS as instructed, so forth.

  1. the visual studio integration plugin is redundant and causes issues - do not click install to engine or to project.
  2. The error messages will winge about magick package having security flaws. Update only this package (I used version 14.9.1, the latest at the time of writing this) –this will prevent builds of various automation utility tools which are needed. If these are not build there will be error messages about automation utility .dll files not being found (because they never generated).

I found the solution to this here: Visual Studio not compiling the project - #5 by eeshvardasikcm

  1. The other vulnerable package nuget will whine about is microsoft.build - ignore it. If you update this it will try to use .NET9 instead of .NET8 causing other incompatibility related error messages and issues.

Problem Two The C++ content pack FirstPerson is broken and will cause compile errors and will refuse to build. There will be a GUI warning first in unreal about not being able to build this when it is added and in VS when trying to build there an error message about not finding class, enum etc belonging to a AI related class or something.

  1. It requires a plugin which is not added by default and was not added automatically when adding this feature pack. Nor was there any obvious warnings as to what plugin would be missing or even that a plugin was required. The plugin missing is GamePlayStateTree. –easy fix - add it.

  2. The next error message will be about a specific header file not being included first. Easy fix. TP_FirstPerson.h or whatever its called in its .cpp file needs to be first not second - just moved it.

  3. Next set of error messages was about various not finding certain files, possible some typo errors etc. I gave up at this point - deleted all files relevant to this c++ package and used the blueprint version instead. This should work out of the box as a tutorial thing so unless I missed something, it is broken and I don’t know if the other c++ content packs are broken as well.

It took me a few weeks to figure this out as I had a fresh install that opened, opened up a couple of content packs to speed up some basic testing, did a basic setup for what I wanted, saved it, shut it down – and tried to open my project only to get “different engine” errors. It was a combination of the above problems and it took a while to de-tangle them. I hope this helps someone else.