Skip to main content

Built-in Modules

Reference for all modules included in the framework.

Infrastructure Modules

init

Core initialization and player profile management.

PropertyValue
DependenciesNone
ServicesNone
UINone

Responsibilities:

  • Database index creation on startup
  • Player profile management (create/load by license)
  • First module to start, foundational for all others

prometheus

Metrics telemetry for monitoring.

PropertyValue
DependenciesNone
ServicesPrometheusService
UINone

Responsibilities:

  • Camera heading sync from client to server
  • Player position export for live map
  • Metrics server lifecycle

Core Modules

characters

Character creation, loading, and state management.

PropertyValue
Dependenciesinit
ServicesCharacterService
UINone

Responsibilities:

  • Character loading on player connect
  • Active character tracking per player
  • Character data persistence with patchCharacterData()
  • Character cache for quick lookups

banking

Banking and account management.

PropertyValue
Dependenciescharacters
ServicesNone
UINone

Responsibilities:

  • Account balance management
  • Transaction processing
  • Account creation for new characters

Feature Modules

spawning

Player spawn and position persistence.

PropertyValue
Dependenciescharacters
ServicesSpawnService
UINone

Responsibilities:

  • Initial spawn position selection
  • Position persistence on disconnect
  • Spawn point management

needs

Player vitals (hunger, thirst, health, armor).

PropertyValue
Dependenciescharacters
ServicesNeedsService
UIhuds/status

Responsibilities:

  • Vital decay over time (server-authoritative)
  • Bidirectional sync with observables
  • Status HUD display

notifications

In-game notification system.

PropertyValue
DependenciesNone
ServicesNotificationService
UIhuds/notifications

Responsibilities:

  • Toast-style notifications
  • Queue management
  • Notification HUD rendering

atm

ATM interface for banking.

PropertyValue
Dependenciesbanking, characters
ServicesAtmService
UIpages/atm-interface

Responsibilities:

  • ATM interaction trigger
  • Balance display
  • Withdrawal/deposit operations

Debug Modules

debug

Development and debugging tools.

PropertyValue
DependenciesNone
ServicesDebugService
UIhuds/debug

Responsibilities:

  • Debug overlay with player info
  • Development commands
  • State inspection tools

Module Load Order

Modules are sorted by dependencies using topological sort:

Independent modules (notifications, debug) can load in any order relative to other independent modules.