Skip to content

astro.Function.lettersToBoxelCode

github-actions[bot] edited this page Aug 26, 2026 · 73 revisions

@elite-dangerous-almanac/core / astro / lettersToBoxelCode

Function: lettersToBoxelCode()

lettersToBoxelCode(l1, l2, l3, n1): number

Defined in: src/astro/system-name.ts:71

Pack a boxel's (l1, l2, l3, n1) letter code into the single base-26 index the address format uses (the boxel code).

Parameters

l1

number

First letter as a zero-based index, 025 (AZ).

l2

number

Second letter as a zero-based index, 025.

l3

number

Third letter as a zero-based index, 025.

n1

number

The boxel number that follows the letters (d11-9611), a non-negative integer small enough that the packed code stays exact.

Returns

number

The packed base-26 boxel code.

Throws

If any letter is not an integer in 0–25, or n1 is not an integer between 0 and the largest value that still packs exactly. Such a field packs as a different boxel than the one asked for rather than failing.

Example

import { lettersToBoxelCode } from '@elite-dangerous-almanac/core/astro/system-name';

lettersToBoxelCode(4, 13, 7, 11); // the 'EN-H …11' boxel of a d-class sector

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally