BUILD FAILED: PlaneTrack.cpp has Error!

Build a Flight Tracker with Cesium for Unreal

has error when package project

LOG :

Running AutomationTool…
Parsing command line: -ScriptsForProject=F:/Cesium02/Cesium02.uproject BuildCookRun -project=F:/Cesium02/Cesium02.uproject -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe=“C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\Win64\UE4Editor-Cmd.exe” -utf8output -platform=Win64 -targetplatform=Win64 -ini:Game:[/Script/UnrealEd.ProjectPackagingSettings]:BlueprintNativizationMethod=Disabled -build -cookonthefly -map= -compressed -stage -deploy -cmdline=" -Messaging" -device=WindowsNoEditor@DESKTOP-9G3B26T -addcmdline="-SessionId=1331B7A64F236623D7D08182F3F7AFC7 -SessionOwner=‘dministratorLSQ’ -SessionName=‘DESKTOP-9G3B26T’ " -run
Setting up ProjectParams for F:\Cesium02\Cesium02.uproject
********** BUILD COMMAND STARTED **********
Running: C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\DotNET\UnrealBuildTool.exe Cesium02 Win64 Development -Project=F:\Cesium02\Cesium02.uproject F:\Cesium02\Cesium02.uproject -NoUBTMakefiles -remoteini=“F:\Cesium02” -skipdeploy -ini:Game:[/Script/UnrealEd.ProjectPackagingSettings]:BlueprintNativizationMethod=Disabled -Manifest=F:\Cesium02\Intermediate\Build\Manifest.xml -NoHotReload -log=“C:\Users\dministratorLSQ\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-Cesium02-Win64-Development.txt”
Parsing headers for Cesium02
Running UnrealHeaderTool “F:\Cesium02\Cesium02.uproject” “F:\Cesium02\Intermediate\Build\Win64\Cesium02\Development\Cesium02.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\dministratorLSQ\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UHT-Cesium02-Win64-Development.txt” -installed
Reflection code generated for Cesium02 in 4.4250948 seconds
Writing manifest to F:\Cesium02\Intermediate\Build\Manifest.xml
Building Cesium02…
Using Visual Studio 2019 14.29.30037 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Building 3 actions with 32 processes…

[1/3] PlaneTrack.cpp

F:\Cesium02\Source\Cesium02\PlaneTrack.cpp(19): error C2039: “ScaleVisualizationWidth”: ??? “USplineComponent” ???

C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Engine\Classes\Components/SplineComponent.h(194): note: ???USplineComponent???
Took 8.9224469s to run UnrealBuildTool.exe, ExitCode=6
UnrealBuildTool failed. See log for more details. (C:\Users\dministratorLSQ\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-Cesium02-Win64-Development.txt)
AutomationTool exiting with ExitCode=6 (6)
BUILD FAILED

“SplineTrack->ScaleVisualizationWidth = 70.f;”
why ?

Hello,

It looks like there may be an issue with the build a flight tracker tutorial. We are looking into it, thanks for bringing this problem to our attention!

Hello,

I’m not sure why that line is causing an issue. However, it’s not necessary for the tutorial or for the flight tracker functionality. Removing or commenting out SplineTrack->ScaleVisualizationWidth = 70.f; from the .cpp file should allow you to package without issue.

I’ll update the tutorial to remove that line, thank you again for bringing it up. Let me know if you have any further issues with the project.

thank,
a new problem: how to change spline line color to package?
Spline color is red in Editor, but spline color is white, why?
In Editor:

to package:

I’m not sure how to change the spline color in the packaged version. The spline color in editor is set to red in the following lines in PlaneTrack.cpp:

  // Set the color of the spline
  SplineTrack->SetUnselectedSplineSegmentColor(FLinearColor(1.f, 0.f, 0.f));

However, as far as I can tell, SetUnselectedSplineSegmentColor() only applies in editor. You could change the color in editor to white in order to match the color in the packaged version, but I’m not sure how you would change the spline color in the packaged version. The documentation page for USplineComponent may be able to tell you more.