I have an error starting godot

Godot Version

Godot Version 4.0

Question

When trying to start Godot, I have an error that pops up that says “Error: Can’t run project: No main scene defined in the project.” does anyone have a solution to this because I am a complete beginner and have no idea what I’m doing.

The error should prompt you to define a main scene. If you have no scenes, create and save a new scene first. If you’re unable to add a main scene from the error prompt, access your projects settings, then under Application>Run, add a main scene from the menu.

If this error is occurring when you load a project, the project may be corrupt and need to be re-built. You may need to delete the project.godot file, or the .godot directory.

If you are an absolute beginner, starting for the first time, I strongly recommend using a tutorial to set up the first time. This seems to be a popular tutorial on Youtube.

Regards,

1 Like

Thank you. Unfortunately I cannot even open the program, the message pops up in a white box then shuts the program down. I will use your information to keep from this happening again.

If this error is happening when you first start Godot, your installation may be corrupted. I would recommend to re-download and install Godot.

1 Like

Are you able to open the project manager, shown below?

If so, you want to use the Edit button rather than the Run button. The Run button tries to run the game, while the Edit button actually opens up the project in the Godot editor.

1 Like

Okay thank you.

No I am not but I will keep this information in my head when using the program, thank you

Hmm. When you downloaded Godot, you should’ve gotten two executable files (here’s a screenshot of mine):


If you run the one with the name ending in _console.exe, it should open a console in addition to the program itself. Does that happen, and if so, does the console display any error messages?

1 Like

I’m not sure but I somehow got it working again. I will check that in a moment just to be sure but thank you all for your time and patience.

So im using godot for linux and i need a bit of helo i cant seem to launch it it keep sayin erro cant run project no main scene defined in project and it pops up a white small screen with a error sign on it it was working perfectly fine a few days ago