-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Description:
When I launch the game from the editor, the events work as expected. However, when I export the game, the game launches but nothing works.
Error messages:
On M3 Pro Mac I ran the console app and recorded the error that was being thrown by the game:
Godot version: 4.2.1.stable.mono
Godot-ci version: 4.2.1
How to reproduce:
- Create a game and a scene with a button as a child
-
create a script to attach to the root node and connect the button event to it
-
in the on event as mentioned above make sure you add a command to do something "exit the game in this scenario".
-
Assign the scene as the main scene and test the game, It should start, and when clicking the button it should close. "No problems so far"
-
Create the GitHub workflow and export entries in Godot. Here is an example that builds the game for windows, Linux, and mac:
-
When the code is checked in and the workflow runs and succeeds, I get files for the three platforms.
-
If I test the three games on windows, mac, and Linux the games launch and I can click on the exit button, BUT the game does not close.
I tried buttons and timers so far. I also used the events to show/hide other controls and edit tests just in case the exit feature is broken. They all work before the export, but not after the export.
I am not seeing any errors that indicate an issue. Am I missing something or is this a bug?