How to link a project to another computer

so I got a new computer, for work only, and I tried to link this project to another computer, but when I tried compiling it said that it couldn’t find the unreal 5.0 folder, I noticed it was just one folder apart from where it was, so I tried to get it to search in that folder by accessing more of the code (no idea if there is a better way to do this nor if this would have actually worked) but then I saw in some other folders that my VS code was able to read that it was trying to reference folders that existed on my other computer, any idea on how to go around this?

You need to re-generate the project files. Right click the .uproject and select that option.

That didn’t work.

this is the error message caused by compiling:

  • Executing task: Engine\Build\BatchFiles\Build.bat SimpleShooterEditor Win64 Development D:\IMPORTS\UEProjects\SimpleShooter\SimpleShooter.uproject -waitmutex

  • The terminal process failed to launch: Starting directory (cwd) “D:\UE_5.0” does not exist.

output error:

[8/24/2023, 2:29:32 PM] “D:\IMPORTS\UEProjects\SimpleShooter.vscode\compileCommands_Default.json” could not be parsed. ‘includePath’ from c_cpp_properties.json in folder ‘SIMPLESHOOTER’ will be used instead.

problems error:

[{
“resource”: “/c:/Users/aocwi/Desktop/Stewart Work Folder/SimpleShooter/.vscode/c_cpp_properties.json”,
“owner”: “c:\Users\aocwi\Desktop\Stewart Work Folder\SimpleShooter”,
“severity”: 4,
“message”: “Cannot find “D:\\IMPORTS\\UEProjects\\SimpleShooter\\.vscode\\compileCommands_Default.json”.”,
“startLineNumber”: 11,
“startColumn”: 32,
“endLineNumber”: 11,
“endColumn”: 111
}]

So, I moved the folder UE 5.0 into the D drive, and got this error message:

  • Executing task: Engine\Build\BatchFiles\Build.bat SimpleShooterEditor Win64 Development D:\IMPORTS\UEProjects\SimpleShooter\SimpleShooter.uproject -waitmutex

Using bundled DotNet SDK
Log file: C:\Users\aocwi\AppData\Local\UnrealBuildTool\Log.txt
ERROR: Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘D:\IMPORTS\UEProjects\SimpleShooter’.
at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator1.Init()
at System.IO.Enumeration.FileSystemEnumerator1..ctor(String directory, Boolean isNormalized, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable1…ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
at System.IO.DirectoryInfo.EnumerateFiles()
at EpicGames.Core.FileUtils.FindCorrectCase(FileInfo Info) in d:\build++UE5\Sync\Engine\Source\Programs\Shared\EpicGames.Core\FileUtils.cs:line 88
at UnrealBuildTool.TargetDescriptor.ParseSingleCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, List1 TargetDescriptors) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetDescriptor.cs:line 314 at UnrealBuildTool.TargetDescriptor.ParseCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, List1 TargetDescriptors) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetDescriptor.cs:line 225
at UnrealBuildTool.TargetDescriptor.ParseCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetDescriptor.cs:line 179
at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 164
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 612

  • The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command Engine\Build\BatchFiles\Build.bat SimpleShooterEditor Win64 Development D:\IMPORTS\UEProjects\SimpleShooter\SimpleShooter.uproject -waitmutex” terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Does this path exist?

Not on the computer it is now in, and I pressed “generate visual studio files” but it didn’t work.

Did you get errors? What happened?

It just loads the bar to the max, then closes with no errors, but when I compile, nothing changes, and just gives me the same errors

I don’t know if this will help, but the way I linked the project to another computer is using a USB stick

Did you change the source code editor on this PC? By default it’ll be using Visual Studio and thus produce a Visual Studio Solution (.sln) and your VS Code files wouldn’t have been updated.

So, something I think I forgot to mention, any time I open the file, it asks me to update the file to a slightly different version, but when I update it, it just doesn’t work, but now, (don’t know what I did differently) it works! and I managed to compile the cpp file!

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

Privacy & Terms