Wrong Paths for generated include files

Tested in Visual studio only with Development Editor:x64 configuration with 4.20.3 Engine version (github:release)

When UnrealBuildTool generate Include Search Paths All generated files searches in wrong places.

Used ${PROJECT}Editor directory instead of UE4Editor and Project folder instead of Engine folder

I wrote temporary fix script for fixind it, but i forced to use it every updates of project files.

ENGINE_PATH=$1
PROJECT=$2

echo $PROJECT
echo $ENGINE_PATH

PRJFILE="Intermediate/ProjectFiles/${PROJECT}.vcxproj"

sed -e "s/${PROJECT}Editor\\\Inc\\\\${PROJECT}/UE4Editor\\\Inc\\\\${PROJECT}/g" -e "s/\.\.\\\Build\\\Win64\\\\${PROJECT}Editor/${ENGINE_PATH}\\\Intermediate\\\Build\\\Win64\\\UE4Editor/g"	-e "s/\\\\${PROJECT}Editor\\\/\\\UE4Editor\\\/g" ${PRJFILE} > ${PRJFILE}.tmp

mv ${PRJFILE}.tmp ${PRJFILE}

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Hey, I think I’m getting the same error as you, I’m using a D: drive but the project is looking for the C: drive instead. Could you explain your solution a little more? I’m still new to unreal and don’t know where to put this. Thanks.

Hey, I think I’m having the same problem as you. My project’s looking for the C: folder but I use the D: instead. Could you explain your solution a bit more please? I’m still new to unreal and don’t exactly know what to do with your code. Thanks.

Hey. Honestly, I don’t think this is a problem with mine. The problem described above appears only when compiling the game code in Visual Studio. However, if you describe your problem in detail with an individual, the community, including myself, will be happy to help you solve it.

But if I’m wrong, you can use my script (I updated it for version 4.21, you can take it from my github: Unreal-Engine-4-Patches/projectfix.sh at master · TehnoMag/Unreal-Engine-4-Patches · GitHub ).

It is quite simple to use. You will need install a Bash interpreter (I recommend the msys2 assembly: https://www.msys2.org/). After that, edit the script for yourself:
in ENGINE_PATH, specify the full path to the engine directory (as in the example)
In PROJECT specify the name of the project (like uproject file named).
The script itself put in the directory with the project and run with bash (from msys2 console).