Phase 0.3: Embed all game data files into Go binary #4

Open
opened 2026-06-07 22:43:33 -06:00 by ppreeper · 0 comments
Owner

Description

Bygfoot has extensive game data: country definitions (42+ countries), player name lists, live commentary strings, CPU strategies, and team definition files. These currently live in support_files/definitions/ as XML files.

Tasks

  • Use //go:embed to embed the support_files/definitions/ directory tree
  • Use //go:embed to embed commentary files (support_files/lg_commentary/)
  • Use //go:embed to embed player name XML files (support_files/names/)
  • Use //go:embed to embed strategy files (support_files/strategy/)
  • Write Go functions to load embedded data into game structs
  • Remove filesystem path dependency from file_find_support_file and similar functions

Acceptance Criteria

  • Game can start without any external files on disk
  • Single binary contains all game data
  • Building without data files fails at compile time (not runtime)
## Description Bygfoot has extensive game data: country definitions (42+ countries), player name lists, live commentary strings, CPU strategies, and team definition files. These currently live in `support_files/definitions/` as XML files. ## Tasks - [ ] Use `//go:embed` to embed the `support_files/definitions/` directory tree - [ ] Use `//go:embed` to embed commentary files (`support_files/lg_commentary/`) - [ ] Use `//go:embed` to embed player name XML files (`support_files/names/`) - [ ] Use `//go:embed` to embed strategy files (`support_files/strategy/`) - [ ] Write Go functions to load embedded data into game structs - [ ] Remove filesystem path dependency from `file_find_support_file` and similar functions ## Acceptance Criteria - Game can start without any external files on disk - Single binary contains all game data - Building without data files fails at compile time (not runtime)
ppreeper added this to the Phase 0 milestone 2026-06-07 22:50:12 -06:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/bygfoot#4
No description provided.