Data packs

A data pack is a mod's data/ folder. It mirrors the game's own data folder (data/ next to the game): a file at the same place replaces the game's, and a file the game does not have is added.

mods/
  night-menu/
    mod.toml
    data/
      art/main/31000.png      the Game Start picture
      art2x/main/31000.png    its 2x copy

Which file wins

When the game looks for a file it tries the packs from the mod lowest in the Options list up, then its own folder. So the last mod in the list wins where two replace the same file.

Pictures

Pictures are PNGs in art/<set>/<id>.png, where the set is the image file they came from (main, universe, planets, ships, combat, empire, infra, surface, tech, advisors) and the id is the picture's number in it.

Other files

Sounds, music and the game's tables are under data/original/ as the game's own files. Fonts are under data/fonts/. Replacing them works the same way, file for file.

Never ship the game's own files

A pack made by changing the game's art holds the game's art, which you may not share. The Night Menu sample builds its picture at install time from the player's own game data instead: samples/NightMenu is a small program that reads the imported picture and writes the pack.