Help with Obstacle Assault compiling

In Obstacle Assault section 43: Compiling a C++ project the course has me create a new C++ class for a MovingPlatform. The course has me select “Actor” for the parent class, and it opens inside Visual Studio Code.

At this point I am supposed to go to the Terminal menu at the top and select “Run Build Task” and I need to find and run the “ObstacleAssaultEditor Win64 Development Build.”

I do this but it doesnt work and it says some text in the terminal that I dont understand:

  > Executing task in folder ObstacleAssault: Engine\Build\BatchFiles\Build.bat 
  ObstacleAssaultEditor Win64 Development "C:\Users\nevin\Documents\Unreal 
  Projects\ObstacleAssault\ObstacleAssault.uproject" -waitmutex <

  'C:\Program' is not recognized as an internal or external command,
  operable program or batch file.

  C:\Program Files\Epic Games\UE_5.0>

Below is a screenshot of the terminal:

Larger screenshot of screen:

This shows up in the problems section of the terminal:

When I try to open up the Unreal Project again it gives me this prompt:
OpeningUE5

The expected response is that many lines of text scroll along in the terminal and the file compiles successfully.

It looks like you may have selected the development build, rather than the development editor build, scroll down in the build list if you don’t see it right away.

1 Like

First, try the solution Technicolor suggested, and even if the problem is still coming, then send us the log file of your project.
Path for log file:- YouProjectFolder\Saved\Logs

Hi I appreciate the help. I double checked and I was using the Run Build Task called “ObstacleAssaultEditor Win64 Development Build”

That seems to be the one Sam uses in the video.

1 Like

Then provide the log file, it will help us more to understand the issue.

And before sending the log file delete the Saved, Intermediate, Build and Binaries folder and re launch your project.

You will find these folders inside your project folder.

Thank you, I will try that before sending the log.

1 Like

It won’t let me attach a .txt or .log file. What is the best way to send it?

1 Like

Upload it on any file sharing platform like GoogleDrive, and send us the public like so that we could access the file without any restrictions.

Thank you, the log is at this link:

https://drive.google.com/file/d/1jfMgWPRqUQo4HsnetGYHr-Qu5uczQSXW/view?usp=sharing

1 Like

Maybe the problem is related to your environment variables.

Search for Environment Variables on the search bar of your windows…
In System variables, double-click on Path (or single-click, and click on Edit…) to examine (and, if necessary, edit) the variable.

You have to make sure that these directories are defined in the Path variable:

C:\WINDOWS\system32
C:\WINDOWS

You can take the below image as a reference to understand better:-
Screenshot 2022-05-03 114634

NOTE- Make sure to take screenshots of your environment variables so that if anything goes wrong you could easily undo everything.

Did you upload this log file on google drive before relaunching your project by deleting Saved, Intermediate, Build, and Binaries.

I grabbed and uploaded that log file AFTER deleting those folders. So I deleted the folders, then relaunched the project and then I copied the log.

Would you like me to grab the log before deleting the folders?

NO NO, then it is fine.

1 Like

Here is my Path system variables. I see those 2 you mentioned at the top, as well as a bunch of others.

When you relaunched your project the same issue was coming, that rebuild them manually?

Sorry I dont see anywhere that asks to rebuild manually. When I relaunch, I only see this message

Capture1

I usually hit YES and it opens the UE project

1 Like

C++ File

Download this file and try to run this file. This is a file consisting c++ code.

Run the code by clicking on the run button on the top left corner.

This will tell us that your g++ compiler is perfectly set up or not?

Forgive me with how new I am to all this.

I put the code into VSC and saved it, I’m trying to run it in the RUN menu along the top and I click on “Start Debugging” but then I dont know what option to use:

1 Like

Well, I am new to unreal engine, so there is no need to worry. And about your problem, I tried my best as far as I know now it would be best to wait for an expert’s answer. Hope you will get your issue resolved soon. @DanM when you will be free have a look at this question.

Could you go into Saved > Logs and post the contents of the log? If it’s too long use a site like pastebin.

Privacy & Terms