# 71kevin/hollow-lantern-se architecture

> Architecture diagram of the GitHub repository 71kevin/hollow-lantern-se, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/71kevin/hollow-lantern-se
- Repository: https://github.com/71kevin/hollow-lantern-se

## Overview

Hollow Lantern is a Skyrim outfit mod, with a Python/Blender toolchain for generating its meshes, textures, and BodySlide assets, plus an in-game plugin and crafting script. The user-facing path is to install the outfit, build supported pieces in BodySlide, enable the plugin, then craft and equip the items in Skyrim. The graph includes the documented outfit capabilities and major generator modules; some piece-builder calls are supported by the build_meshes source index rather than shown excerpts.

Main entry points: [`tools/build_meshes.py`](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/build_meshes.py) (Mesh build coordinator), [`tools/hl_parts.py`](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_parts.py) (Mesh part utilities), [`tools/hl_fit.py`](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_fit.py) (Body and slider fitting), [`tools/piece_corset.py`](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_corset.py) (Corset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Asset generation"]
  node_build_meshes["Mesh build coordinator<br/>[build_meshes.py]"]
  node_textures["Texture atlas generation<br/>[make_textures.py]"]
  node_presets["Optional body presets<br/>[make_presets.py]"]
  node_corset["Corset<br/>[piece_corset.py]"]
  node_shorts["Shorts<br/>[piece_shorts.py]"]
  node_boots["Boots<br/>[piece_boots.py]"]
  node_axe["Lantern axes<br/>[piece_axe.py]"]
  node_mask["Masquerade mask<br/>[piece_mask.py]"]
  node_horns["Horns<br/>[piece_horns.py]"]
  node_lantern["Carried lantern<br/>[piece_lantern.py]"]
  node_other_pieces["Other outfit pieces"]
end

subgraph group_geometry["Mesh and fit"]
  node_fit["Body and slider fitting<br/>[hl_fit.py]"]
  node_parts["Mesh part utilities<br/>[hl_parts.py]"]
  node_geometry_ops["Geometry operations<br/>[hl_geom.py]"]
  node_blend_ops["Blender mesh operations<br/>[hl_blend.py]"]
  node_preset_io["Preset and slider data<br/>[hl_preset.py]"]
end

subgraph group_delivery["Game assets"]
  node_export["Mesh and BodySlide export<br/>[hl_export.py]"]
  node_nif["NIF mesh writer<br/>[hl_nif.py]"]
end

subgraph group_runtime["In-game mod"]
  node_plugin["Plugin records<br/>[Program.cs]"]
  node_craft_script["Crafting script"]
end

node_user(("Player / mod user"))
node_skyrim["Skyrim SE/AE"]
node_blender["Blender"]
node_body_slide["BodySlide / Outfit Studio"]

node_user -->|"builds outfit"| node_body_slide
node_user -->|"plays with"| node_skyrim
node_build_meshes -->|"builds"| node_corset
node_build_meshes -->|"builds"| node_shorts
node_build_meshes -->|"builds"| node_boots
node_build_meshes -->|"builds"| node_axe
node_build_meshes -->|"builds"| node_mask
node_build_meshes -->|"builds"| node_horns
node_build_meshes -->|"builds"| node_lantern
node_build_meshes -->|"builds"| node_other_pieces
node_build_meshes -->|"uses"| node_fit
node_build_meshes -->|"exports through"| node_export
node_corset -->|"uses"| node_parts
node_shorts -->|"uses"| node_parts
node_boots -->|"uses"| node_parts
node_axe -->|"uses"| node_geometry_ops
node_mask -->|"uses"| node_geometry_ops
node_horns -->|"uses"| node_parts
node_lantern -->|"uses"| node_parts
node_parts -->|"transfers weights"| node_fit
node_parts -->|"solidifies meshes"| node_geometry_ops
node_fit -->|"queries surfaces"| node_blend_ops
node_fit -->|"computes mesh data"| node_geometry_ops
node_corset -->|"conforms sliders"| node_fit
node_corset -->|"samples presets"| node_preset_io
node_build_meshes -.->|"pairs with"| node_textures
node_build_meshes -.->|"uses Blender tooling"| node_blender
node_export -->|"writes meshes"| node_nif
node_export -->|"writes BodySlide files"| node_body_slide
node_user -->|"enables"| node_plugin
node_plugin -->|"adds game records"| node_skyrim
node_user -->|"uses crafting"| node_craft_script
node_craft_script -.->|"runs in game"| node_skyrim
node_presets -->|"uses fitting"| node_fit

click node_build_meshes "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/build_meshes.py"
click node_textures "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/make_textures.py"
click node_presets "https://github.com/71kevin/hollow-lantern-se/blob/main/presets/tools/make_presets.py"
click node_corset "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_corset.py"
click node_shorts "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_shorts.py"
click node_boots "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_boots.py"
click node_axe "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_axe.py"
click node_mask "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_mask.py"
click node_horns "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_horns.py"
click node_lantern "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_lantern.py"
click node_other_pieces "https://github.com/71kevin/hollow-lantern-se/tree/main/tools"
click node_fit "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_fit.py"
click node_parts "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_parts.py"
click node_geometry_ops "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_geom.py"
click node_blend_ops "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_blend.py"
click node_preset_io "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_preset.py"
click node_export "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_export.py"
click node_nif "https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_nif.py"
click node_plugin "https://github.com/71kevin/hollow-lantern-se/blob/main/plugin/Program.cs"
click node_craft_script "https://github.com/71kevin/hollow-lantern-se/blob/main/scripts/HollowLanternCraftScript.psc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_build_meshes,node_textures,node_presets,node_corset,node_shorts,node_boots,node_axe,node_mask,node_horns,node_lantern,node_other_pieces,node_user toneBlue
class node_fit,node_parts,node_geometry_ops,node_blend_ops,node_preset_io toneAmber
class node_export,node_nif toneMint
class node_plugin,node_craft_script toneRose
class node_skyrim,node_blender,node_body_slide toneIndigo
```

## Components

### Asset generation

- [Mesh build coordinator](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/build_meshes.py): `tools/build_meshes.py`
- [Texture atlas generation](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/make_textures.py): `tools/make_textures.py`
- [Optional body presets](https://github.com/71kevin/hollow-lantern-se/blob/main/presets/tools/make_presets.py): `presets/tools/make_presets.py`
- [Corset](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_corset.py): `tools/piece_corset.py`
- [Shorts](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_shorts.py): `tools/piece_shorts.py`
- [Boots](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_boots.py): `tools/piece_boots.py`
- [Lantern axes](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_axe.py): `tools/piece_axe.py`
- [Masquerade mask](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_mask.py): `tools/piece_mask.py`
- [Horns](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_horns.py): `tools/piece_horns.py`
- [Carried lantern](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/piece_lantern.py): `tools/piece_lantern.py`
- [Other outfit pieces](https://github.com/71kevin/hollow-lantern-se/tree/main/tools): `tools`

### Mesh and fit

- [Body and slider fitting](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_fit.py): `tools/hl_fit.py`
- [Mesh part utilities](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_parts.py): `tools/hl_parts.py`
- [Geometry operations](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_geom.py): `tools/hl_geom.py`
- [Blender mesh operations](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_blend.py): `tools/hl_blend.py`
- [Preset and slider data](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_preset.py): `tools/hl_preset.py`

### Game assets

- [Mesh and BodySlide export](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_export.py): `tools/hl_export.py`
- [NIF mesh writer](https://github.com/71kevin/hollow-lantern-se/blob/main/tools/hl_nif.py): `tools/hl_nif.py`

### In-game mod

- [Plugin records](https://github.com/71kevin/hollow-lantern-se/blob/main/plugin/Program.cs): `plugin/Program.cs`
- [Crafting script](https://github.com/71kevin/hollow-lantern-se/blob/main/scripts/HollowLanternCraftScript.psc): `scripts/HollowLanternCraftScript.psc`

### Other components

- **Player / mod user**
- **Skyrim SE/AE**
- **Blender**
- **BodySlide / Outfit Studio**

## Connections

- Player / mod user → BodySlide / Outfit Studio: builds outfit (evidence: `README.md`)
- Player / mod user → Skyrim SE/AE: plays with (evidence: `README.md`)
- Mesh build coordinator → Corset: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Shorts: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Boots: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Lantern axes: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Masquerade mask: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Horns: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Carried lantern: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Other outfit pieces: builds (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Body and slider fitting: uses (evidence: `tools/build_meshes.py`)
- Mesh build coordinator → Mesh and BodySlide export: exports through (evidence: `tools/build_meshes.py`)
- Corset → Mesh part utilities: uses (evidence: `tools/piece_corset.py`)
- Shorts → Mesh part utilities: uses (evidence: `tools/piece_shorts.py`)
- Boots → Mesh part utilities: uses (evidence: `tools/piece_boots.py`)
- Lantern axes → Geometry operations: uses (evidence: `tools/piece_axe.py`)
- Masquerade mask → Geometry operations: uses (evidence: `tools/piece_mask.py`)
- Horns → Mesh part utilities: uses (evidence: `tools/piece_horns.py`)
- Carried lantern → Mesh part utilities: uses (evidence: `tools/piece_lantern.py`)
- Mesh part utilities → Body and slider fitting: transfers weights (evidence: `tools/hl_parts.py`)
- Mesh part utilities → Geometry operations: solidifies meshes (evidence: `tools/hl_parts.py`)
- Body and slider fitting → Blender mesh operations: queries surfaces (evidence: `tools/hl_fit.py`)
- Body and slider fitting → Geometry operations: computes mesh data (evidence: `tools/hl_fit.py`)
- Corset → Body and slider fitting: conforms sliders (evidence: `tools/piece_corset.py`)
- Corset → Preset and slider data: samples presets (evidence: `tools/piece_corset.py`)
- Mesh build coordinator → Texture atlas generation: pairs with
- Mesh build coordinator → Blender: uses Blender tooling
- Mesh and BodySlide export → NIF mesh writer: writes meshes (evidence: `tools/hl_export.py`)
- Mesh and BodySlide export → BodySlide / Outfit Studio: writes BodySlide files (evidence: `tools/hl_export.py`)
- Player / mod user → Plugin records: enables (evidence: `README.md`)
- Plugin records → Skyrim SE/AE: adds game records (evidence: `README.md`)
- Player / mod user → Crafting script: uses crafting (evidence: `README.md`)
- Crafting script → Skyrim SE/AE: runs in game
- Optional body presets → Body and slider fitting: uses fitting (evidence: `presets/tools/make_presets.py`)
