Skip to content

B5: Asset resolver #143

Open
Open

Description

@Cadacious

Summary

Implement the asset resolver that searches for game files in mod override directories, then the game install directory, then fallback paths.

Search Order

  1. Active mod directories (in load order, last wins)
  2. Game installation directory
  3. Built-in fallback assets (if any)

Requirements

  • Path resolution: given a relative asset path (e.g. "data/Models/Ships/Galaxy/Galaxy.nif"), find the actual file
  • Support multiple game install path configurations
  • Case-insensitive path matching (BC's filesystem references are inconsistent)
  • TGA texture loading (stb_image)

Acceptance Criteria

  • Resolves NIF model paths from a BC install directory
  • Resolves TGA texture paths
  • Mod directory overrides game directory
  • Case-insensitive matching works
  • Unit tests for path resolution

Blocks: #120

Activity

  1. added
    phase-2Phase 2: Plugin Architecture + Game Client
    track-bTrack B: Game Client
    on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture and designphase-2Phase 2: Plugin Architecture + Game Clienttrack-bTrack B: Game Client

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions