Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Packaging game not working from the command line


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 "UNREAL_BATCHFILES_DIRECTORY=%WORKING_DIRECTORY%..\\..\\..\\Unreal\\distributions\\UE4_4_9_2_MCS\\Engine\\Build\\BatchFiles\"
 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

Product Version: UE older version
uat_log.txt (25.5 kB)
more ▼

asked Aug 03 '17 at 07:11 PM in Packaging & Deployment

avatar image

54 5 20 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I managed to solve my issue by removing the quotation marks around my relative path variables. They were there to protect against spaces in directory names, but apparently the automation tool command line doesn't like them.

 RunUAT BuildCookRun -project=%UPROJECT_FILE% -noP4 -platform=Win64 -rocket -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory=%WORKING_DIRECTORY%
more ▼

answered Aug 03 '17 at 07:33 PM

avatar image

54 5 20 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question