Issues with launcher Clone Project

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

Hello kamrann,

Thank you for the in depth report. I will test these issues and check to see if they have been entered into our system already. I will report back here with any new findings and information.

Cheers,

I know this post is 3 years old but I’ve had the same issue recently and wondering if you ever got it resolved.

Thanks!

I know this post is 3 years old but I’ve had the same issue recently and wondering if you ever got it resolved.

Thanks!

OK, I worked out how to fix this issue. The project cloner in the Epic Game Launcher is just not finished. I did this in version 4.19 preview.

The fix was to manually rename all the files in the source folder that had the original name of the cloned project. I also had to edit all those source code files, including the build files, and rename everything with the original project name to the new name.

I suppose if you kept the original name and just cloned to a new folder this wouldn’t be necessary. But that’s not what I wanted.

It’s all working again now. :slight_smile:

  1. Copy Config / Content / Source folders to a new project folder.
  2. Rename the .sln to the new project name.
  3. Rename the .uproject to the new project name.
  4. Right click on the .uproject and choose Generate visual studio project files.

This did it for me in one click, no need to touch any souce or build files.