Skip to content

astro.Function.encodeModSystemAddress

github-actions[bot] edited this page Aug 13, 2026 · 74 revisions

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

Function: encodeModSystemAddress()

encodeModSystemAddress(parts, origin): bigint

Defined in: astro/system-address.ts:398

Encode system-name parts and a resolved region origin into a modulated address.

Parameters

parts

SystemNameParts

The parsed system-name parts, as parseSystemName returns.

origin

NamingRegionOrigin

The region origin (internal units), from resolveNamingRegionOrigin.

Returns

bigint

The 64-bit modulated system address. These routinely exceed 2^53, so keep them as bigint (or a decimal string) rather than a JS number.

Remarks

Prefer encodeSystemAddress for the normal id64; use the modulated form only when a tool you are feeding expects that specific layout.

Throws

If the mass code is outside 0–7, a letter is outside 0–25, n1 is not one the boxel packer accepts, the origin has a negative coordinate, the name's boxel code or sector falls outside the address layout, or the sequence does not fit the 15-bit modulated field.

Example

import { resolveNamingRegionOrigin } from '@elite-dangerous-almanac/core/astro/naming-region-origins';
import { encodeModSystemAddress } from '@elite-dangerous-almanac/core/astro/system-address';
import { parseSystemName } from '@elite-dangerous-almanac/core/astro/system-name';

const parts = parseSystemName('Synuefe EN-H d11-96')!;
encodeModSystemAddress(parts, resolveNamingRegionOrigin(parts.regionName)!).toString();

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