Download

How to change name of folder containing project

NOTE - This issue below is fixed (see end of post).

I’m currently stuck between a rock and a hard place.

Rock
I need a folder name for my project which does not contain spaces (for Perforce workspace pathing compatibility). However when I create a clone of the project with a version of the engine built from source, the folder name is created as original name (Space) version number. So the name is not suitable for Perforce.

Hard Place
I can’t change the name of the folder to remove the space, as that then breaks the ability to build with it. Somewhere (not DefaultGame.ini I tried changing the reference there) the pre-renamed absolute path is still referenced.

This gives me this error (not the inclusion of the space in the path in bold).

Parsing command line: -ScriptsForProject=“C:/Ravnstudio/Edit/fgp 4.20/resources.uproject” BuildCookRun -project=“C:/Ravnstudio/Edit/fgp 4.20/resources.uproject” -noP4 -clientconfig=Test -serverconfig=Test -nocompileeditor -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=Switch -build -cook -map=Inside_Tent_Test+Demo_Front_End+Front_End_Content+Mountain_Top_Test+Racing_Test+workshop_test -unversionedcookedcontent -compressed -stage -package -cmdline=" -Messaging" -addcmdline="-SessionId=BC5F448342901DACA9E21997A1FC147A -SessionOwner=‘Ivan’ -SessionName=‘New Profile 0’ " -compile
ERROR: Project ‘C:/Ravnstudio/Edit/fgp 4.20/resources.uproject’ does not exist

So… does anyone know of a way to control the naming a cloned project, or where (other than in DefaultGame.ini) the path to the project file is stored?

NOTE: I found that although the Project listed for the build in the ProjectLauncher, shows only the project file name, it’s the absolute path to that file that is used. So the solution was to click on the Project drop down, then navigate to the new location of the project file and select it, then all was good.