The ‘clone project’ option in the launcher seems to have a few problems. There appear to have been previous reports about this, but none recently, so here are the issues I see currently, using the latest launcher and a 4.6.1 project.
- After selecting the option, it takes a while for the newly cloned project to appear. If it is actually taking this time to create and is not just a refresh issue, it would be good to provide some progress feedback.
- The visual studio solution files are not automatically updated to reflect the new project name. If opened as they are and built, the project will not run due to mismatched uproject file name.
- If the project is opened through the launcher, the option to refresh solution files or open visual studio is not initially there, and will only appear after adding code to project.
- Having done this and refreshed the solution, the new .build.cs and .target.cs files still reflect the original project name. This is preventing hot reload from working, with the following error:
ERROR: Couldn’t find target rules file for target ‘TestClone’ in rules assembly ‘TestClone_EditorRecompileModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Location: D:\UE4 Projects\TestClone\Intermediate\Build\BuildRules\TestClone_EditorRecompileModuleRules.dll
Target rules found:
UE4Game - C:\Program Files\Epic Games\4.6\Engine\Source\UE4Game.Target.cs
OriginalName - D:\UE4 Projects\TestClone\Source\OriginalName.Target.cs
OriginalNameEditor - D:\UE4 Projects\TestClone\Source\OriginalNameEditor.Target.cs