EDDN/schemas/codexentry-README.md
Athanasius afa22f4784 schemas: Start expanding on general and per-schema documentation
* Add README-EDDN-schemas.md to hold general documentation for reference
  by other files such as...
* Update codexentry-README.md to reference the general documentation.
2021-10-04 14:37:26 +00:00

1.5 KiB

EDDN CodexEntry Schema

Introduction

Here we document how to take data from an ED CodexEntry Journal Event and properly structure it for sending to EDDN.

Please consult EDDN Schemas README for general documentation for a schema such as this.

Senders

The primary data source for this schema is the ED Journal event CodexEntry.

Elisions

You MUST remove any key where the key name ends in _Localised.

You MUST remove the two keys IsNewEntry and NewTraitsDiscovered.

Augmentations

StarPos

You MUST add a StarPos key with value of type array containing the galaxy co-ordinates of the system. You will need to have obtained these from prior event(s) upon the player arriving, or logging into, the system.

e.g. if the system is Alpha Centauri:

    "StarPos": [3.03125, -0.09375, 3.15625]

BodyID and BodyName

You SHOULD attempt to track the BodyName and BodyID where the player is and add keys/values for these.

For BodyName you MUST retrieve this from the latest Status.json data, using the Body value there-in.

You can obtain the BodyID from a ApproachBody or Location event.
You MUST cross-check the Body value in this to ensure it has the same name as you got from Status.json. One possible issue is binary bodies where you might get an ApproachBody for one before descending towards the other, without an additional ApproachBody to correct things.

e.g. for Bestia A 2 a

    "BodyName": "Bestia A 2 a",
    "BodyID": 15,

Receivers