Unable to package ShooterGame

Hello,

I am building a map and I started with using the Unreal ShooterGame demo from marketplace, to use the AI code. I get an error whenever I try to package, or to compile the code. Often I see something related to ShooterGameLoadingScreen.cpp

I tried reinstalling VIsual Studio 15, running as admin and packaging from a fresh project created from ShooterGame.
Not super experienced with VS and UE4. Link with my log attached
[link text][1]

101295-shootergame.log (84 KB)

I also tried building the project from Visual Studio, and the output there is this one in case it helps:

Projects\ShooterGame\Source\ShooterGameLoadingScreen\Private\ShooterGameLoadingScreen.cpp : error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 232 does not match precompiled header
2>C:\Users\chromanin\Documents\Unreal Projects\ShooterGame\Intermediate\Build\Win64\UE4Editor\Inc\ShooterGame\ShooterGame.generated.cpp : error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 254 does not match precompiled header
2>C:\Users\chromanin\Documents\Unreal Projects\ShooterGame\Intermediate\Build\Win64\UE4Editor\Development\ShooterGame\Module.ShooterGame.cpp : error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 254 does not match precompiled header
2> -------- End Detailed Actions Stats -----------------------------------------------------------
2>ERROR : UBT error : Failed to produce item: C:\Users\chromanin\Documents\Unreal Projects\ShooterGame\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-ShooterGameLoadingScreen.exp
2> Total build time: 22.51 seconds
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: The command ““C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” ShooterGameEditor Win64 Development “C:\Users\chromanin\Documents\Unreal Projects\ShooterGame\ShooterGame.uproject” -rocket -waitmutex -2015” exited with code -1.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  • What update is your Visual Studio on?
  • Have you attempted to use a newer version of our engine?
  • If so, did you run into the same error?

Looking forward to hearing back from you, thanks!

Hi , thanks for the reply!

Visual Studio 2015 is version 14.0.25, update 3. I use Unreal 4.10 as most of the projects that I migrated assets from were not compatible with newer versions, and I’ve already done a fair bit of work on it.

I’ll give 4.12 a quick try but I was afraid I’ll run into incompatibilities. Or should I try an older version of VS?

Visual Studio community update 3 is not compatible with UE4.10.

I suggest you update Unreal Engine to version 4.12.5 because UE4.12.5 is compatible with update 3.

Thanks for the hints, I managed to get it to work but it was a little more convoluted.

When I switched a copy of the project to 4.12, it wouldn’t even open anymore due to compiler errors. I noticed a lot of header errors, so on a hunch, I made another clean Shooter Project and overwrote my projects Source folder with the code files from the base project.

Then I kept getting a cooking fail, so I migrated the map to the clean project and now packaging works.

Good, please mark it as an answer so that it will be easier to find for other people with the same issue.