I’m having a problem where whenever I try to launch visual studio 2022 from my ue5 project it opens up a cmd with the wrong path location for the visual studio 2022 build tools. I have followed epic games’s tutorial for installing vs 2022, and reinstalling it didn’t help. Manually opening the project from vs works, but once I try to run the development mode with local windows it games me this error Game files required to initialize the global shader library are missing from:
Please make sure the game is installed correctly.
In the ue5 editor prefrences I have the code editor set to visual studio 2022, and refreshing the code doesn’t help
Regenerate your project solution, open it. On Visual Studio define your game as project initialization by right clicking on your game solution in the solution explore.
I’ve got something similar and I’ve solved in this way.
You may found something like this, the UE5 solution is the default.
Yep, I have created a different project and it works. From the current project I deleted the .vs and .vscode folders. Now when I try running the game development in vs it tells me if I want to use the latest correct build, and when trying to open ue5 it gets stuck on performing replace references. Same thing happens in vscode, but there it highlights this line. The only thing I have added in c++ are a 2 classes, where I followed a tutorila. For the guy it worked with no problems.
After doing the steps you mentione I get this in vs. It tells me that there were build error, the in tells me that it was built with a different engine version. Same applies to if I try to launch it from epic games. This is a clone but I got the same result with the original, and it went back to normal after I restored the original files. Additionally vs give me exit code 8
The command “C:\UE_5.5\Engine\Build\BatchFiles\Build.bat GameIdea1Editor Win64 Development -Project=“C:\Users\Adrian\Documents\Unreal Projects\GameIdeaTEST\GameIdeaTEST.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.
Could you please post here the output error? I mean the compile output, instead of the list error.
I’d like to check what error we are getting.
Usually we got this error when we try to open the unreal engine from visual studio and it it already open, so make sure the engine is closed before open it.
(1) Your engine is open, when you compile from Visual Studio, it’s a good practice close it in order to avoid hot reload or conflict with Live Code. That’s the reason you are getting that error, I’ve told you before.
(3) Clique on ‘YES’, and compile your game with UE closed.
(2) After you compile, show here the Visual Studio compile output.
We need to know the compile output in order to take some action, the compile output tell us if we have committed any mistakes when coding, that’s why I’m asking you that.
Hi, like I said ue5 was closed when performing this. the ue5 from the task bar is the open tab that tells me to recompile. When I click on yes it tells me that it failed and that I should do it manually
I don’t know what is the problem. It seems something with the engine, but before presume anything.
From this last video, we can see the compile get stuck at the same step. So we can try to create another Unreal’s C++ Template, like First Person template and see if it opens with no problem, in case it succeed, so the problem is the current project, so move your C++ classes.
Check if Visual Studio 2022 is using compiler version 14.38, maybe you are using 14.43, if you are using the right version, all remains is try to reinstall the engine.
Alright so it seems like maybe there was a problem with the project? I have no idea what would cause it though. What I did was migrate all of the bluperints I had written to a new projects and now it works.