Compiling In Unreal Engine 4

Did you have to restart the editor after adding your first lines of code to the BullCowComponent and then compiling from within the editor? (Like I had to!)

How many of you are following along the course with VSCode? Post the source code editor you are using below!

That sounds bad. No, didn’t have to. VS IDE :slight_smile:

I couldn’t compile, I got an error saying it couldn’t open ‘ConsolePlugin’ so I closed VS Code and the Unreal Editor.
I opened up the Unreal Editor again and tried to load my project but I got an error message:
“Plugin ‘ConsolePlugin’ failed to load because module ‘ConsolePlugin’ could not be loaded. There may be an operating system error or the module may not be properly set up.”
Any idea what would cause this?

I looked at the log file and this is what it says:
Failed to load ‘C:/UdemyUnrealEngineC++TUT/Section3/Section3_BullsCows/BullCowGameV3/BullCowGameV3/Plugins/ConsolePlugin/Binaries/Win64/UE4Editor-ConsolePlugin-0001.dll’ (GetLastError=1114)
ModuleManager: Unable to load module ‘C:/UdemyUnrealEngineC++TUT/Section3/Section3_BullsCows/BullCowGameV3/BullCowGameV3/Plugins/ConsolePlugin/Binaries/Win64/UE4Editor-ConsolePlugin-0001.dll’ because the file couldn’t be loaded by the OS.

Hi @Danielle_H,

This error occurs when making code changes to the plugin in any way and then compiling within Unreal. (We detected it a couple of times when working on the prototype for this project)

The solution to this would be to build from VSCode:

Terminal > Run Build Task (or press CTRL + SHIFT + B)

Then you want to run the build task named: “BullCowGameEditor Win64 Development Build”

Just like below:

Hope this helps!

1 Like

Thanks, I got it working.
Someone told me to try deleting the Binaries folder in the ConsolePlugin folder. I did that and reopened my project which prompted me to rebuild ConsolePlugin. After doing that the project opened and I was able to compile in Unreal.
Your suggestion is also good to know for the future, so I don’t have to keep deleting things :smile:

2 Likes

Hi I’m having trouble compiling,


not sure what to do

I had to restart the editor. im using VS Code.