ID: Difference between revisions

From Hazeron Wiki
Jump to navigation Jump to search
m (→‎Decoding: Corrected the "endian"ness.)
m (Minor edits.)
Line 1: Line 1:
Everything in '''Shores of Hazeron''' has an ID number but may not always be disabled. Most notable is [[avatar]] IDs, as they allow you to distinguish two avatars with the same name. The most common ID number is however the default name of a [[spacecraft]], before a spacecraft is given a name it uses its ID as its name.
Everything in '''Shores of Hazeron''' has an ID number but may not always be displayed to the players. Most notable is [[avatar]] IDs, as they allow you to distinguish two avatars with the same name. The most common ID number is however the default name of a [[spacecraft]], before a spacecraft is given a name it uses its ID as its name.


=Format=
=Format=
Line 109: Line 109:
| 676
| 676
| AAB
| AAB
|-
| 677
| BAB
|-
| 678
| CAB
|-
|-
| colspan=2 style="text-align:center;" | ...
| colspan=2 style="text-align:center;" | ...
|}
|}

Revision as of 10:26, 31 July 2015

Everything in Shores of Hazeron has an ID number but may not always be displayed to the players. Most notable is avatar IDs, as they allow you to distinguish two avatars with the same name. The most common ID number is however the default name of a spacecraft, before a spacecraft is given a name it uses its ID as its name.

Format

The ID number is commonly displayed as a series of letters. The length can vary from anywhere from 1 letter and up.

For example:

  • Q
  • MCPMB
  • LCOPXB

Decoding

Decoding an ID into a base-10 decimal number requires a little math. The ID is encoded in base-26 using only the alphabet. The digits are in little-endian order, so the first digit is the lowest order of magnitude.

This website has a converter: http://www.dcode.fr/base-26-cipher

Decimal Base-26
0 A
1 B
2 C
3 D
4 E
5 F
6 G
7 H
8 I
9 J
10 K
11 L
12 M
13 N
14 O
15 P
16 Q
17 R
18 S
19 T
20 U
21 V
22 W
23 X
24 Y
25 Z
26 AB
27 BB
28 CB
...
676 AAB
677 BAB
678 CAB
...