C++ project won't open after closing the editor

Hello, I am using Unreal Engine 4.18.2 and want to finish the C++ FPS Character tutorial.
However, everytime I close the editor, the project won’t open again because the project .dll is missing.
I have tried rebuilding from within Visual Studio 2017 and I have deleted the binaries and regenerated the project files and rebuilded again.
Nothing seems to work. Also, this happens with any kind of C++ project I create.

Is this an engine bug or can I fix it somehow? Any kind pf help is appreciated, thank you. :smiley:

Hi,

To you and whoever that is getting the .dll is missing error, try the following steps to either fix or debug your project:

Close both the Unreal Editor and Visual Studio. Open your project directory and delete all these folders - .vs, Binaries, Intermediate, Saved, and also YourGame.sln files. Make sure that the Config folder is there and that you do NOT accidentally delete it!

Next, right click on the YourGame.urpoject and select Generate Visual Studio project files. Once it finishes, double click on your YourGame.urpoject icon and try opening it. The Editor will prompt you with a missing .dll module again and will ask you to rebuild the solution. Click Yes and it will start rebuilding. If it fails to build, it is most likely due to a bug in your code. Open your project source in Visual Studio and try rebuilding it there. You’ll likely to get some error message and from there on you can further investigate the bugs.

If you need further assistance, please provide more details and the exact error messages that you are getting so that the good people of the UE community can help you.

Best,

Thanks a lot . I’ve done everything you said and the project still won’t open. This is the build log from within Visual Studio 2017:

1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: FPSTutorial, Configuration: Development_Editor x64 ------
2>The screen cannot be set to the number of lines and columns specified.
1>The screen cannot be set to the number of lines and columns specified.
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Check your constructors.

The only constructor in the project is for the FPSCharacter class. Here it is:

FPSCharacter.h

// Sets default values
AFPSCharacter::AFPSCharacter()
{
 	// Set this character to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;
}

That’s strange. If you’re having similar issue with every C++ template project then it might have something to do with your Visual Studio installation itself.

First of all, I’ve never gotten or seen this warning before (The screen cannot be set to the number of lines and columns specified.). Not sure how big of a deal it is but a quick googling shows that it has something to do with Windows, and Command Prompt. So you might want to check some Microsoft forums and get rid of that warning.

Next, make sure that you’ve installed all necessary packages with your Visual Studio. Install the latest version of Visual Studio (Community or any edition). If you already have the latest version, then inside Visual Studio, click on Tools > Get Tools and Features to open the Visual Studio Installer (alternatively you can open it from Start > Search for Visual Studio Installer). In the installer and Workloads tab, make sure all 3 components of Windows category are checked. Scroll down and check Game development with C++ as well. Next, go to the Individual components tab, scroll down to SDKs, libraries, and frameworks and make sure that Windows 8.1 SDK is also checked. Install it and try again. Hopefully, your C++ projects should be able to work now with no issues.

I had downloaded everything for Visual Studio and the project was still not working. I didn’t manage to find a solution with the Command Line problem so I had to delete the project and create a new one.

The problem manifests itself probably if you set up your PIE screen size to 4K, which I always do for my projects. I just left the default settings of the preview in editor as is and everything worked fine AND the project loads normally.

Anyway, thank you for all the help, honestly. :wink:

Have a very Merry Christmas. :smiley:

I’m glad you could fix it.

Merry Christmas :slight_smile:

And please consider marking the question as solved if your issue has been resolved. Thanks :slight_smile: