Error when building project


I have followed everything in the course and when I try to build it saids The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command Engine\Build\BatchFiles\Build.bat ObstacleAssaultEditor Win64 Development ‘C:\Users\BossS\Documents\Course Projects\Unreal5\Obstacle Assault\ObstacleAssault\ObstacleAssault.uproject’ -waitmutex” terminated with exit code: 1.

In the problems in visual code it said [{
“resource”: “/C:/Users/BossS/Documents/Course Projects/Unreal5/Obstacle Assault/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h”,
“owner”: “C/C++”,
“code”: “1696”,
“severity”: 8,
“message”: “cannot open source file “MovingPlatform.generated.h””,
“source”: “C/C++”,
“startLineNumber”: 7,
“startColumn”: 1,
“endLineNumber”: 7,
“endColumn”: 38
}]

Try right-clicking on ObstacleAssault.uproject and select “Generate Visual Studio project files”.

I’m using Visual Studio so my context menu probably looks slightly different than yours, but this is the option I mean:

image

Try rebuilding the project again after you’ve regenerated project files.

2 Likes

I have tried this but still have gotten the same results :confused:

Try deleting the Binaries, Intermediate, and Saved folders in your project directory before you regenerate + rebuild.

Same results :frowning: My terminal saids should I try resetting my PC maybe its messed up

Using bundled DotNet SDK
Log file: C:\Users\BossS\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for ObstacleAssaultEditor (no existing makefile)
Parsing headers for ObstacleAssaultEditor
Running UnrealHeaderTool “C:\Users\BossS\Documents\Course Projects\Unreal5\ObstacleAssault\ObstacleAssault\ObstacleAssault.uproject” “C:\Users\BossS\Documents\Course Projects\Unreal5\ObstacleAssault\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\ObstacleAssaultEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\BossS\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
C:/Program Files/Epic Games/UE_5.0/Engine/Source/Runtime/Engine/Classes/GameFramework/GameMode.h(34): Error: Couldn’t find parent type for ‘GameMode’ named ‘AGameModeBase’ in current module (Package: /Script/Engine) or any other module parsed so far.
The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command Engine\Build\BatchFiles\Build.bat ObstacleAssaultEditor Win64 Development ‘C:\Users\BossS\Documents\Course Projects\Unreal5\ObstacleAssault\ObstacleAssault\ObstacleAssault.uproject’ -waitmutex” terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

I have reset my pc and reinstalled everything and now the build is working, I had no other options as I had already rebuilt the project from video one at least 4 times and the build failed every time. However after resetting my PC it is now working perfectly

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms