x

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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Can't compile inside UE4 Editor after moving folders

I have this problem that I know how to temporarily fix.

Let's say the folder the project was initially in is:

C:/MyGame

Then, I had to add some extra projects to the source control system, so I created a new folder called MyGameWorkspace and moved the project to that new folder, like this:

C:/MyGameWorkspace/MyGame

The problem is: eventually, and I'm not sure when yet, a folder gets created at the old location (`C:/MyGame`) and, apparently, that causes the engine to go nuts.

If I try to compile from VS2017 everything works perfectly, but if I click the Compile button inside UE4, I get this error:

ERROR: System.IO.FileNotFoundException: Could not find file 'C:\MyGame\MyGame.uproject'.

The temporary solution is to delete the C:\MyGame folder and click Compile inside the editor again, and it will work perfectly after that.

It seems to me I have two problems: 1) Why that old folder gets created? 2) Why the editor priorizes that folder when trying to compile?

Thank you for your attention!

Product Version: UE 4.21
Tags:
more ▼

asked Jan 14 '19 at 12:07 PM in C++ Programming

avatar image

allskar
1 1

avatar image ZeroParadigm Jan 14 '19 at 02:47 PM

Hi @allskar, have you tried deleting the intermediates folder in MyGame and running GenerateProjectFiles again? Perhaps there are generated headers/intermediates etc. which are still pointing to the old directory?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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