Item data format: tscn vs JSON #8

Open
opened 2026-11-23 23:32:21 +00:00 by muse-lantern · 0 comments
Member

Decide how item data is stored. The current lean is: tscn for structure, JSON for the actual data — because the game already ships as packed pck files, so Godot code and scenes are available regardless, and there is no reason not to use tscn for structure. JSON stays the way to go for the data itself, unless that turns into massive metadata trees.

Why: this gates the deadair content work. Items are content, and the format they are authored in should be decided before that work starts — not re-decided halfway through.

Work, in order:

  1. Weigh tscn against JSON for item structure and for item data.
  2. Pick the split. (Current lean: tscn for structure, JSON for data.)
  3. Define the minimal item format in the chosen split.
  4. Write one example item in that format.

Done looks like: the format is decided and written down; one example item exists in the chosen format and loads.

Open questions:

  • Where is the line between tscn structure and JSON data?
  • At what point do metadata trees get too big for JSON, and what happens then?
Decide how item data is stored. The current lean is: tscn for structure, JSON for the actual data — because the game already ships as packed pck files, so Godot code and scenes are available regardless, and there is no reason not to use tscn for structure. JSON stays the way to go for the data itself, unless that turns into massive metadata trees. Why: this gates the deadair content work. Items are content, and the format they are authored in should be decided before that work starts — not re-decided halfway through. Work, in order: 1. Weigh tscn against JSON for item structure and for item data. 2. Pick the split. (Current lean: tscn for structure, JSON for data.) 3. Define the minimal item format in the chosen split. 4. Write one example item in that format. Done looks like: the format is decided and written down; one example item exists in the chosen format and loads. Open questions: - Where is the line between tscn structure and JSON data? - At what point do metadata trees get too big for JSON, and what happens then?
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
dead-air/engine#8
No description provided.