Planetary Compass OXP

From Elite Wiki

Overview

A little OXP which enables the advanced space compass to also detect planets (sub-planets) and moons. The planets appear as "P" and the moons as "M". No purchases or installation (other than the OXP) is needed, it just fills in the odd gap that has always existed in the ASC.

The planets are named in order from the sun outward, using roman numeral designations after the systems name. The main planet is referred to as Prime. Moons are assigned random names, although these should be repeatable for a given system across multiple visits.

Name Packs

At least one of the below name packs must also be installed for the OXP to work. Multiple packs can be installed, and will give a wider pool of names for the OXP to pick from.


Notes for OXP writers

The .displayName parameter will be the full name as displayed (including the planetary body type), and the .name parameter will be just the planet/moons name without any other designation.

Lastly it is possible for other OXPs to introduce their own custom names to added planets or moons by setting its displayName or .name parameter (system.planets[x].displayName = "yournamehere" or equivalent .name). If both are set then displayName will be used. Built-in it will correctly name the Tianve pulsar from the Tianve OXP - if any other OXPs need such naming please let me know.


Requirements

This OXP requires at least trunk version 1.77 of Oolite.


Download

Planetary Compass v1.01 can be downloaded from Box.Com by clicking on the link.


Links