0

I developed an environment using Unreal 4.25. In order to connect it with Airsim, I followed the instructions given over here - https://microsoft.github.io/AirSim/unreal_custenv/.

I'm stuck at the point where they say to right click the .uproject file and select Generate Visual Studio Project Files, since I do not have that option.

enter image description here

desert_ranger
  • 1,096
  • 3
  • 13
  • 26
  • 1
    You didn't mention if you followed their Tip: section, below the instructions: Tip: If the Generate Visual Studio Project Files option is missing you may need to reboot your machine for the Unreal Shell extensions to take effect. If it is still missing then open the LandscapeMountains.uproject in the Unreal Editor and select Refresh Visual Studio Project from the File menu. – boocs Dec 27 '20 at 09:24
  • @ boocs I honestly did not see that tip :) – desert_ranger Dec 27 '20 at 10:45

2 Answers2

7

In case other people face this issue with their unreal engine project file association not being setup correctly, there's a few ways to address this, regardless of whether you have a source build (github version) or a binary build (launcher version) of the engine installed:

  1. If you got the engine from the launcher and the uproject file association is incorrect, then typically, after restarting the Epic Games Launcher application, you will be prompted to fix the file association.
  2. If for whatever reason, you have a launcher version of Unreal Engine, and the prompt to fix the association doesn't pop up, then right click a uproject file and select "Open with > Choose another app". Then, make sure the "Always use this app to open uproject files" option is checked, click on "More apps" and "Look for another app on this PC". Look for and select the UnrealVersionSelector application located in the %EPIC_GAMES_LAUNCHER%/Engine/Binaries/Win64 directory. By default on Windows, it's typically C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64
  3. This is rare, but possible, even after fixing the file association, the directory where you have unreal engine downloaded/installed may not be recognized as an Unreal Engine installation. So if you're experiencing this issue after suggestion #2, then copy that "UnrealVersionSelector" application that we just talked about, go to %UNREAL_ENGINE_INSTALLATION%\Engine\Binaries\Win64, paste the file there, run the app, and select "Yes" to the prompt. Note that by default on Windows, the engine directory for launcher builds will usually be C:\Program Files\Epic Games\UE_{version-number}\Engine\Binaries\Win64
  4. For those with a source build of Unreal Engine, normally the file association gets set before you build the engine for the first time, specifically after running the Setup.bat/Setup.sh script. So try rerunning that file if you're experiencing issues on a source build only.
  5. Lastly, suggestions #2 and #3 can both be applied to source builds. The only difference is where UnrealVersionSelector is located. It also goes by a different name, UnrealVersionSelector-Win64-Shipping and for source builds, it's located in the same place as the Unreal Engine build directory, %SOURCE_BUILD_DIRECTORY%\Engine\Binaries\Win64 so you don't have to copy and paste anything. Just set the file association and register the directory as needed.
Chris Gong
  • 8,031
  • 4
  • 30
  • 51
2

The tips given in the documentation are helpful. However, that was not my issue. I did not restart Epic games after installing Unreal Engine therefore the project file extensions were not associated with my Engine. Please refer to this post for more details - https://github.com/microsoft/AirSim/issues/1219

desert_ranger
  • 1,096
  • 3
  • 13
  • 26