Mod loader: load mods and maps; game_mod flag marks the game mod #2
Loading…
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?
Load mods from res://mods and user://mods. A mod is a directory containing da_mod.json. Read its metadata (name, version, description, author, main_scene) and load the game mod's main scene when the player picks "start game". A
game_mod: trueflag in da_mod.json marks the game mod.Why: mods contain content, not the game. The loader needs to know which mod, if any, is the game mod — the one "start game" takes you to. Everything else is just content added to that game.
Work, in order:
game_modboolean to ModMeta and to the da_mod.json format.Done looks like: installing a mod with game_mod=true makes "start game" load its main scene; with no game mod installed, the loader still runs the bare environment and "start game" does nothing (or is hidden).
Later, the flag will likely become a registration system (like items) so the player can pick which game mod to play when several are installed. Most mods will probably just add content to the existing dead-air game mod, so the registration system is a later step, not part of this issue.
Open questions:
game_modin da_mod.json, or something else?