Greetings.
I’m trying to package our game from a batch file and I’m running into an issue of the build and automation tool failing due to the error: Exception in mscorlib: Illegal characters in path.
I only receive this error when using relative path variables for the paths required in the command line (-project and -archiveddirectory). When I use absolute paths for my uproject and archived directory, the command line works fine, but unfortunately, that means the batch file won’t work on other development machines (we want it to). Since the packaging works with absolute paths that at least tells me that I’m using the correct set of arguments for a working cook/package. As far as I can tell, I’m not using any unusual characters in my relative paths. I don’t even have spaces. I haven’t been able to find anything in regards to this error online. Does anyone have any insight into what is causing this error or what set of characters are considered legal?
For reference, here are my batch commands:
SET WORKING_DIRECTORY=%~D0%~P0
SET BATCH_FILENAME=%~N0%~X0
SET "UPROJECT_FILE=%WORKING_DIRECTORY%MCSGame.uproject"
SET "UNREAL_BATCHFILES_DIRECTORY=%WORKING_DIRECTORY%..\\..\\..\\Unreal\\distributions\\UE4_4_9_2_MCS\\Engine\\Build\\BatchFiles\"
CD %UNREAL_BATCHFILES_DIRECTORY%
RunUAT BuildCookRun -project="%UPROJECT_FILE%" -noP4 -platform=Win64 -rocket -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory="%WORKING_DIRECTORY%\"
We’re using version 4.9.2 and that won’t be changing until we start the next project. I’m developing on a Windows 10 machine and we’re delivering on Windows 10. I’ve included the log file from the automation tool as well.
link text