GalCop Galactic Registry

From Elite Wiki
Revision as of 01:06, 19 November 2018 by Phkb (talk | contribs) (3rd Party interface)

Overview

This OXP aims to provide pilots with data relating to their current sector, and provide tools pilots can use to better understand the galaxy they work in. This expansion adds a new interface screen, the "GalCop galactic registry", which had the following sub-options:

  1. Regions: Each sector has a number of galactic regions, and this menu allows pilots to see all named regions and display their location.
  2. Spacelanes: There are a number of spacelanes in each section, largely related to trade routes. This menu will list each of the different spacelanes defined in the current galactic sector, and allow you to display each route on the galactic chart.
  3. TechLevel: This menu allows pilots to highlight all systems of a particular techlevel, and (if the Advanced Navigational Array is installed) to automatically plot a course to the closest one.
  4. Government Types: This menu allows pilots to highlight all systems of government type, and (if the Advanced Navigational Array is installed) to automatically plot a course to the closest one.
  5. Economy: This menu allows pilots to highlight all systems of a particular economy, and (if the Advanced Navigational Array is installed) to automatically plot a course to the closest one.
  6. Galactic Navy Sector Commands: If you have the Galactic Navy OXP installed, this option will become available. This will highlight each system that is home to a GalNavy sector command, and (if the Advanced Navigational Array is installed) allow you to automatically plot a course to the closest one.
  7. GalCop Sector HQ: This menu allows pilots to highlight the GalCop Sector HQ system in the sector.
  8. Full system list: This function will list all systems in the sector. The list can be sorted by name, tech level, government type or economy type. Additionally, two systems can be selected from the list, and then the details of these two systems can be displayed along with a galactic map showing the route between them.
  9. Search registry: This function will take any text input and search all planetary descriptions for that criteria.

Map v Systems View

For each section, it is possible to switch between the galactic map view, and a list of systems. The menu item chosen will change its description to have "(show map)" or "(show systems)" to indicate which view can be shown.

Installation

Place the 'GalCopGalacticRegistry.oxz' into your 'AddOns' folder and when you start the game, hold down 'Shift' until you see the spinning Cobra.
Alternatively, you can download the expansion using the expansion pack manager in the game itself.

3rd Party interface

It's possible for other OXP's to add their own planet lists to the registry. To add your list, use this code:

 var gr = worldScripts.GalacticRegistry;
 gr.$addCustomSystemList({name:"My Planet List", shortName:"My List", markerColor:"whiteColor", markerShape:"MARKER_DIAMOND", planetList:[1,2,3,4,5]});

where

nameThe text to appear on the menu.
shortNameThe text to appear in the title when the list is selected.
If not specified, this will default to the "name" property.
markerColorThe color specifier to use when marking planets on the map.
If not specified, will default to "whiteColor".
markerShapeThe shape to use for the planet markers. Must be one of MARKER_X, MARKER_PLUS, MARKER_SQUARE, MARKER_DIAMOND.
If not specified, will default to "MARKER_DIAMOND".
systemsAn array of planet ID's to be shown. The ID's must be in the current galaxy.
listTypeCan be one of the following:
unconnected: all systems in the systems list are unconnected and will be marked individually on the map
This is the default setting when "listType" is not specified.
region: all systems in the list are connected, and all possible connections between them will be highlighted on the map.
The systems themselves will not have markers.
path: each system in the list represents one point on a defined path, and only the links between consecutive items will be highlighted on the map.
The first and last system in the list will have map markers.
connectColorThe color specifier to use when highlighting links on the map.
If not specified, this will default to "greenColor".

Note: The list of custom items will be reset whenever the player enters a new galaxy. OXP's will need to re-add their data after a galactic jump. The best time to do this is during the "shipDockedWithStation" world event.

Adding an entry with the same name as an existing item will overwrite existing data with the new data.

Download

Download GalCopGalacticRegistry.oxz v4.0 (downloaded 4357 times).

License

This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

Galaxy image from http://simpleicon.com/solar_system.html

Version History

4.0

  • Made compatible with OXP's that change the system.concealment property.
  • Added interface to allow 3rd party OXP's to add their own planet lists, regions and paths.

3.3

  • When setting a course to a target system, F7 screen will now display the new destination.

3.2

  • Added GalCop HQ system to the menu (used by Bounty System OXP, and Email System OXP).
  • Added a "search" facility where planetary descriptions can be searched for entered criteria.
  • Code refactoring.

3.1

  • Removed debug log entries.

3.0

  • Added a "Full system list", which lists all system names, and allows sorting by name, tech level, government or economy type. Also has ability to select two systems and show route between the two, as well as other system details.
  • Removed redundant header from all system lists.

2.0

  • Added ability to view a list of planet names for any given sub-section of the chart.
  • Added markers to the start and end of spacelanes.

1.6

  • Fixed issue with HUD not becoming visible again after use.

1.5

  • Changed "==" comparisons to "===" for performance improvements.
  • Fixed issue with the paging for TechLevels.

1.4

  • Updated check for "Allow Big GUI".
  • Fixed issue where the interface screen wasn't being added when docking at a new station.

1.3

  • Improved menu unsability by auto selecting the next item in the menu.
  • Updated screenID's to enable BGS background sounds.
  • Renamed background overlay image to prevent possibility of future duplication.
  • Toned down overlay image.
  • Code refactoring.

1.2

  • Removed unnecessary link to "Display Current Course".
  • Fixed issue where current course was always showing with the shortest plot.

1.1

  • Small tweaks to menu text.
  • Smugglers chart markers now removed from various Galactic Registry screens to make the image clearer.

1.0

  • Initial release

Quick Facts

Levelindicator0.png
0-{{{2}}}

Minimum Oolite versionCPU usage lowMemory usage lowGPU usage low

Version Released License Features Category Author(s) Feedback
4.0 2018-11-19 CC BY-NC-SA 3.0 Route planning Ambience OXPs‏‎ phkb Oolite BB

Gameplay and Balance indicator

Tag-colour-green.png