game.gd connects autoload signals in the editor, erroring on scene load #149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
game.gdis a@toolscript, so its_ready()also runs when the editor opensgame.tscn. Three signal connections sit outside theif not Engine.is_editor_hint():guard:In the editor, the autoloads aren't
@toolscripts, soGameStateandGameClockare plainNodes without their own code or signals. The first line errors, and_ready()stops there:This shows up in the editor's Output panel and in
--headless --editor --quit. It is editor-only: when the game runs, the autoloads are real and the connections succeed.Fix
Move the three lines inside the existing
if not Engine.is_editor_hint():block. They are game wiring, and nothing in the editor needs them.Acceptance criteria
--headless --editor --quitprints no script errors.