I have a game that works fine in the editor but when I export it for Windows I'm having some issues. I appreciate I need to find the issues myself but how do I go about finding what is wrong? I don't get any errors when it runs in the editor. When I export it the game seems to get to the end of a scene but doesn't start the next scene. What is the best way to find out what is happening? I don't have any debug windows or a console screen showing errors/messages, I presume I need something like this. Is there anything built in I should enable? Godot 3.5
Exported game not working properly
I'm also currently trying to get my build bug-free ...
When you export your game, choose 'export all' (left btn) > 'debug' (not 'release').
You can now put print statements in your code, and they will show up in the editor output window.
Thanks. I have tried exporting the debug version from Export All and Export Project but when I run them there isn't any kind of output window for print statements to show up in. I can open the editor and run it from there and the print statements show but it all works perfectly in there. If I run the stand-alone version it doesn't work and and I don't have any way to read messages.
nb_dot launch your debug export from a terminal/command line.
Usually this happens if you use weird characters in your file names. Such as spaces, special symbols, non-English words, etc.
launch your debug export from a terminal/command line.
Thanks. That was the main missing piece. I now have some useful error messages.
The two biggest issues were where I had an image that I'd decided not use in the final game and set it to hidden. It's never shown but the game still wants to load it and I guess the compiler doesn't bother adding to the published file. Deleted those it and now works. I still have some more error messages to get to the bottom of but they aren't fatal to it running.