Godot export issue

Godot Version

4

I am exporting my project as a .exe executable file, but I am have a very strange issue. The starting menu has 3 buttons, a start button, a quit button and a button to see the controls. What’s weird is that when I export as a .exe file and open it on another pc the start button wont work. but the controls page button does work, so why does the start button not move me to the first level, but the options button does move me to the options page?

Is it embed .pck file? If not, you need to keep both .exe and .pck file together.

Have you typed “res://” in the code?
get_tree().change_scene_to_file("res://level1.tscn")

The debugger gets you a red error after you press the start button? Maybe you need to put the code above in a one-shot Timer.

1 Like

its included

yeah, is not that ive tried a lot

I’m not sure if I remember right, but I think if you start your program from a command prompt, if there are errors it should be printed there.

I might be mixing things up though. Worth a try, still. :man_shrugging:

You can make sure your level1.tscn file is set up correctly. Also, try running the .exe from the command prompt to see if any errors show up when you click the start button.

1 Like