Hi, I have a problem in opening a project from GitHub.
I have installed UE4.11.2 from epic game launcher (because the project in Git hub was done with this version) and when I try to open the project I get the following errors:
Running C:/Program Files/Epic Games/UE_4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/UR/Unreal-Engine-4-Bicycle-Simulator-with-AI/BikeV3.uproject” -game -rocket -progress -log=“D:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI/Saved/Logs/UnrealVersionSelector-2022.10.12-10.57.58.log” Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015. Discovering modules, targets and source code for game… Messages while compiling D:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI\Intermediate\Build\BuildRules\BikeV3ModuleRules.dll: error CS0042: Unexpected error creating debug information file ‘d:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI\Intermediate\Build\BuildRules\BikeV3ModuleRules.PDB’ – 'Unspecified error ’ UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files
Now I have Visual Studio 2019 installed on my machine. do I need to install the Visual Studio version 2015? is this the way to solve the problem and being able to open the project?
Thank you for your help in avance.
That may be the case. It is a really old version. Have you ensured that you have DotNET installed? I would try and cross reference all the tool chains in the 2015 VS and see if you’re missing any framework from that version to get it to open.
I had this problem when I bought a new PC and was converting my project to it. I had downloaded VS 2022, because well it’s new and better. Well, the project said “nope” and I had to waste time uninstalling it and go back to 2019 with a brief anxiety attack on almost bombing my work.
Thank you Humanasset,
I had installed DotNET before ( .NET Core 3.1)
As the error says" Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015." I tried to check if there is something called Common Tools for Visual C++ 2015 in the installer version of 2019, but I found nothing.
I think I have to install also Visual Studio 2015 and make sure the "Common Tools for Visual C++ 2015 is checked.
Hi, I think I managed to solve some issues and got to the point where I can generate project files. But I was using UE5 and I don’t have ue4 installed.
I think you can only compile the project in ue4 since it uses some classes that are not in UE5.
I can give you the modified source files and you can try opening the project again with the new source and hopefully compile the project.
just extract the source and plugin folder to the root directory of the project.
Hi, Thank you.
I have downloaded the Plugins and Sources from the Google Drive you put in the answer and replaced these two new folders with the folders I had. Now when I double-click on the BikeV3.uproject I see first
then I click yes and after that I see this :
I also attached the picture below that shows the files I have in the directory of the project (below)
I see that other Unreal Engine projects that I have created so far have a file with the type “.code-workspace” where I can open the code and build the project or compile it within the VS Code.
but as you can see, this project has no such a file.
In this case, how can I compile the project manually ?
thanks a lot for your guide, I am new to unreal and your guide will help me a lot!
you can right click on the BikeV3.uproject and select Generate Visual Studio Project Files.
That’s how I do it for Visual Studio, don’t know if it’s the same for VS Code.
Generating project files will create a Solution File (.sln) that you can open with Visual Studio. You can then try to build the project using Visual Studio to see if it works.
So what I did to fix the initial errors was to copy code from a different UE5 project to the build.cs and target.cs files.
Since you’re using UE4.11.2, you could try creating a new c++ project using UE4.11.2 and see if there’s any differences in the build.cs and target.cs files.
Also, the error is saying it couldn’t find “ReadOnlyTargetRules”, So I would assume it’s something different in earlier Unreal versions.
I have “UE4Duino.Build.cs” file in the following directory :
D:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI\Plugins\UE4Duino\Source\UE4Duino
I have also another build “BikeV3.Build.cs” in the following directory :
D:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI\Source\BikeV3
There are two Target files named “BikeV3.Target.cs” and “BikeV3Editor.Target.cs” in the following directory :
D:\UR\Unreal-Engine-4-Bicycle-Simulator-with-AI\Source.
When you said build.cs and target.cs is it “UE4Duino.Build.cs” and “BikeV3.Target.cs” respectively?
Nothing wrong with asking questions, basic or not. That’s what this Q&A forums are for
almost done downloading 4.11.2. Give me 5-10 minutes to see if I can get this working.
EDIT : the download speed went down for some reason and is now really slow, might take up to an hour
Ok, I will create a new C++ project with Unreal Engine 4.11.2, and then I will replace the files to see if it works.
I guess I don’t have installed a plugin named UE4duino, so I will try to find this plugin and install it and then I will do it.
I will tell you about the result.
Thank you so much.
The UE4duino plugin is in the Plugins folder on the Project root directory.
Make sure to only copy code that seems different from what you have ( don’t replace the class names like “BikeV3Target” )
Hello again, sorry for the wait.
I tried on 4.11.2, didn’t work at all, couldn’t even generate project files. then I tried 4.27, was able to generate project files but build failed. There was too many code changes like different include directories and some functions.
I tried making some source code changes, but there were too many and I gave up. And I don’t have any other ideas