Loader menu scene injection: mods provide a loader scene #5

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

A mod can provide a "loader scene" that the loader instantiates into the menu environment, adding details and scripts. The base menu environment does not change on its own; mods add to it.

Why: the loader menu is a shared space. Letting mods inject into it means a mod can customize the menu without forking the loader. A library mod could add a stack of books; a weapons mod could add a gun rack; the DeadAir game mod could change the environment around the menu space to be an underground bunker.

Work, in order:

  1. Define how a mod declares a loader scene (a field in da_mod.json, e.g. loader_scene).
  2. The loader instantiates each installed mod's loader scene into the menu environment.
  3. The injected scene can add nodes and run scripts.
  4. Multiple mods' injections compose — every installed mod's loader scene is added.

Done looks like: installing a mod with a loader scene adds its content to the menu environment; removing the mod removes it; installing several mods shows all of their injections together.

Open questions:

  • What field name in da_mod.json declares the loader scene?
  • How are conflicts handled if two mods add to the same spot? (Most likely they do not conflict — both just appear.)
A mod can provide a "loader scene" that the loader instantiates into the menu environment, adding details and scripts. The base menu environment does not change on its own; mods add to it. Why: the loader menu is a shared space. Letting mods inject into it means a mod can customize the menu without forking the loader. A library mod could add a stack of books; a weapons mod could add a gun rack; the DeadAir game mod could change the environment around the menu space to be an underground bunker. Work, in order: 1. Define how a mod declares a loader scene (a field in da_mod.json, e.g. `loader_scene`). 2. The loader instantiates each installed mod's loader scene into the menu environment. 3. The injected scene can add nodes and run scripts. 4. Multiple mods' injections compose — every installed mod's loader scene is added. Done looks like: installing a mod with a loader scene adds its content to the menu environment; removing the mod removes it; installing several mods shows all of their injections together. Open questions: - What field name in da_mod.json declares the loader scene? - How are conflicts handled if two mods add to the same spot? (Most likely they do not conflict — both just appear.)
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#5
No description provided.