Initialize Godot 4 project structure #9

Closed
agent-bot wants to merge 8 commits from agent/997c429bc6b4 into main
Collaborator

Auto-opened for task 997c429bc6b4.

Create the initial Godot 4 project with the correct directory layout:

  • project.godot with correct export config
  • res://scenes/ for game scenes
  • res://scripts/ for GDScript
  • res://addons/ for plugins
  • res://assets/ for game assets
    Commit to git.
Auto-opened for task 997c429bc6b4. Create the initial Godot 4 project with the correct directory layout: - project.godot with correct export config - res://scenes/ for game scenes - res://scripts/ for GDScript - res://addons/ for plugins - res://assets/ for game assets Commit to git.
agent-bot added 8 commits 2026-08-17 17:53:23 +00:00
Collaborator

The core directory structure is correct (scenes/, scripts/, addons/, assets/ all present with .gitkeep, project.godot has config_version=5, main scene set, rendering config). The test artifact (new_feature.txt) was properly removed. However, the added main menu scene/script has several genuine correctness issues:

  1. Bug — reference to non-existent scene: scripts/main_menu.gd _on_play_button_pressed() calls change_scene_to_file("res://scenes/game.tscn"), but no game.tscn exists in the project. This will fail at runtime if ever invoked.

  2. Bug — buttons not wired to handlers: PlayButton and QuitButton in scenes/main_menu.tscn have no [connection] entries, so _on_play_button_pressed() / _on_quit_button_pressed() are dead code. The main menu is non-functional (clicking Play/Quit does nothing). Since this scene is the project's main scene, this is a broken entry point.

  3. Invalid UID: uid="uid://main_menu" — Godot UIDs are base64-encoded strings (e.g. uid://bq3x...); uid://main_menu (contains an underscore) is not a valid UID and Godot will regenerate/flag it.

  4. Missing .gitignore: No .gitignore exists, so Godot's .godot/ editor cache/import directory would be committed. Standard Godot 4 projects exclude .godot/.

  5. Minor: Export presets are embedded in project.godot under [export_options] sections, but Godot 4 stores export presets in export_presets.cfg, not project.godot. The task asked for "correct export config" — this is non-standard.

Please fix the scene/script (either remove the broken main_menu scene or wire up the buttons and point Play at an existing scene), use a valid UID, and add a .gitignore for .godot/.

The core directory structure is correct (scenes/, scripts/, addons/, assets/ all present with .gitkeep, project.godot has config_version=5, main scene set, rendering config). The test artifact (new_feature.txt) was properly removed. However, the added main menu scene/script has several genuine correctness issues: 1. **Bug — reference to non-existent scene:** `scripts/main_menu.gd` `_on_play_button_pressed()` calls `change_scene_to_file("res://scenes/game.tscn")`, but no `game.tscn` exists in the project. This will fail at runtime if ever invoked. 2. **Bug — buttons not wired to handlers:** `PlayButton` and `QuitButton` in `scenes/main_menu.tscn` have no `[connection]` entries, so `_on_play_button_pressed()` / `_on_quit_button_pressed()` are dead code. The main menu is non-functional (clicking Play/Quit does nothing). Since this scene is the project's main scene, this is a broken entry point. 3. **Invalid UID:** `uid="uid://main_menu"` — Godot UIDs are base64-encoded strings (e.g. `uid://bq3x...`); `uid://main_menu` (contains an underscore) is not a valid UID and Godot will regenerate/flag it. 4. **Missing `.gitignore`:** No `.gitignore` exists, so Godot's `.godot/` editor cache/import directory would be committed. Standard Godot 4 projects exclude `.godot/`. 5. **Minor:** Export presets are embedded in `project.godot` under `[export_options]` sections, but Godot 4 stores export presets in `export_presets.cfg`, not `project.godot`. The task asked for "correct export config" — this is non-standard. Please fix the scene/script (either remove the broken main_menu scene or wire up the buttons and point Play at an existing scene), use a valid UID, and add a `.gitignore` for `.godot/`.
Collaborator

Superseded by #14, which addressed the requested changes and merged. Closing.

Superseded by #14, which addressed the requested changes and merged. Closing.
reviewer-bot closed this pull request 2026-08-17 21:30:04 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daddy/modbison#9