Hello,
I am new to UE and to game programming in general. I am starting with BuildingEscape, particularly in lecture " ‘Include What You Use For 4.17+’ which is the 13th lecture of the section, and 70th in archived Unreal course.
I realized that most of the changes Sam show are now included in UE 4.22.3, however, I still ahve some basic things to sort out. I would appreciate any help I could get. Here we go:
Q1: I cannot compile from VScode. Since it recognizes entire folders instead of '‘solution’, am not 100% from which cpp file I should run ‘CTRL+SHIFT+B’ and/or this decision is relevat or not.
Q2: Regardless if I use
bUseUnityBuild = false;
bUsePCHFiles = false;
in .Editor.Target.cs, when I open BuildingEscape.cpp and build, I get the following ‘Missing precompiled manifest for ‘Launch’’ error:
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder BuildingEscape: Engine\Build\BatchFiles\Build.bat BuildingEscape Win32 Debug 'C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\BuildingEscape.uproject' -waitmutex <
Using 'git status' to determine working set for adaptive non-unity build (C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape).
Creating makefile for BuildingEscape (no existing makefile)
Parsing headers for BuildingEscape
Running UnrealHeaderTool "C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\BuildingEscape.uproject" "C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win32\BuildingEscape\Debug\BuildingEscape.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for BuildingEscape in 16,7776984 seconds
ERROR: Missing precompiled manifest for 'Launch'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in Launch.build.cs to override.
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
So far, I only compile from UE editor, and
LogSlate: FSceneViewport::OnFocusLost() reason 2
LogSlate: FSceneViewport::OnFocusLost() reason 2
LogSlate: FSceneViewport::OnFocusLost() reason 2
LogSlate: FSceneViewport::OnFocusLost() reason 2
LogSlate: FSceneViewport::OnFocusLost() reason 2
LogSlate: Window 'About Unreal Editor' being destroyed
LogSlate: FSceneViewport::OnFocusLost() reason 0
Candidate modules for hot reload:
BuildingEscape
Launching UnrealBuildTool... [C:/Program Files/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe -ModuleWithSuffix=BuildingEscape,1706 Win64 Development -TargetType=Editor -Project="C:/Users/Home2/Documents/UE Programming Course/OLD Course/03_BuildingEscape/BuildingEscape/BuildingEscape.uproject" "C:/Users/Home2/Documents/UE Programming Course/O
LD Course/03_BuildingEscape/BuildingEscape/BuildingEscape.uproject" -IgnoreJunk]
Warning: Starting HotReload took 0.0s.
CompilerResultsLog: New page: Compilation - 24 jul 2019 04:25:31
CompilerResultsLog: Using 'git status' to determine working set for adaptive non-unity build (C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape).
CompilerResultsLog: Invalidating makefile for BuildingEscapeEditor (BuildingEscapeEditor.Target.cs modified)
CompilerResultsLog: Parsing headers for BuildingEscapeEditor
CompilerResultsLog: Running UnrealHeaderTool "C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\BuildingEscape.uproject" "C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\BuildingEscapeEditor\Development\BuildingEscapeEditor.uhtmanifest" -LogCmds="lo
ginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
CompilerResultsLog: Reflection code generated for BuildingEscapeEditor in 8,9206503 seconds
CompilerResultsLog: Using Visual Studio 2019 14.21.27702 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
CompilerResultsLog: Building 9 actions with 8 processes...
CompilerResultsLog: [1/9] BuildingEscape.cpp
CompilerResultsLog: [2/9] PositionReport.cpp
CompilerResultsLog: [3/9] BuildingEscape.init.gen.cpp
CompilerResultsLog: [4/9] PositionReport.gen.cpp
CompilerResultsLog: [5/9] BuildingEscapeGameModeBase.cpp
CompilerResultsLog: [6/9] BuildingEscapeGameModeBase.gen.cpp
CompilerResultsLog: [7/9] UE4Editor-BuildingEscape-1706.lib
CompilerResultsLog: Creating library C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\BuildingEscape\UE4Editor-BuildingEscape-1706.lib and object C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4E
ditor\Development\BuildingEscape\UE4Editor-BuildingEscape-1706.exp
CompilerResultsLog: [8/9] UE4Editor-BuildingEscape-1706.dll
CompilerResultsLog: Creating library C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\BuildingEscape\UE4Editor-BuildingEscape-1706.suppressed.lib and object C:\Users\Home2\Documents\UE Programming Course\OLD Course\03_BuildingEscape\BuildingEscape\Intermediate\Build
\Win64\UE4Editor\Development\BuildingEscape\UE4Editor-BuildingEscape-1706.suppressed.exp
CompilerResultsLog: [9/9] BuildingEscapeEditor.target
CompilerResultsLog: Total time in Parallel executor: 3,76 seconds
CompilerResultsLog: Total execution time: 15,65 seconds
LogMainFrame: MainFrame: Module compiling took 15.852 seconds
LogUObjectHash: Compacting FUObjectHashTables data took 0.80ms
LogContentBrowser: Native class hierarchy updated for 'BuildingEscape' in 0.0005 seconds. Added 2 classes and 2 folders.
Display: HotReload successful (0 functions remapped 0 scriptstructs remapped)
LogUObjectHash: Compacting FUObjectHashTables data took 1.36ms
LogContentBrowser: Native class hierarchy populated in 0.0108 seconds. Added 2735 classes and 663 folders.
Display: HotReload took 16.0s.
So I see no errors in UE’s Output.log
Q3: On the other hand, ‘Launch’ folder is not created, as you can see in the screenshot above, while UE documentation does not mention any ‘Lauch’ folder in their directory structure document. It seems that this folder is used when lauching the game to a given platform (?), which could make sense if we don’t see it right now.
Thank you in advance for all your help.
Cheers.
/Nicolás