Back to Index Page generated: Nov 12, 2024, 11:02:04 PM

Expansion Random Station Names

Content

Warnings

  1. Unknown key 'upload_date' at https://wiki.alioth.net/img_auth.php/7/75/Oolite.oxp.LittleBear.RandomStationNames.0.0.2.oxz!manifest.plist

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Assigns random names to stations throughout the Ooniverse. In the future these names will be persistent, but for now they change every time you load a saved game or re-enter a system from witchspace. Assigns random names to stations throughout the Ooniverse. In the future these names will be persistent, but for now they change every time you load a saved game or re-enter a system from witchspace.
Identifier oolite.oxp.LittleBear.RandomStationNames oolite.oxp.LittleBear.RandomStationNames
Title Random Station Names Random Station Names
Category Ambience Ambience
Author LittleBear LittleBear
Version 0.0.2 0.0.2
Tags ambience, stations, names ambience, stations, names
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://aegidian.org/bb/viewtopic.php?t=20703 n/a
Download URL https://wiki.alioth.net/img_auth.php/7/75/Oolite.oxp.LittleBear.RandomStationNames.0.0.2.oxz http://wiki.alioth.net/img_auth.php/d/d1/Oolite.oxp.LittleBear.RandomStationNames.0.0.2.oxz
License CC BY-NC-SA 4.0 CC BY-NC-SA 4.0
File Size n/a
Upload date 1610873337

Documentation

Also read http://wiki.alioth.net/index.php/Random%20Station%20Names

Equipment

This expansion declares no equipment. This may be related to warnings.

Ships

This expansion declares no ships. This may be related to warnings.

Models

This expansion declares no models. This may be related to warnings.

Scripts

Path
Scripts/randomstationnames.js
"use strict";
this.name = "RandomStationNames";
this.author = "LittleBear";
this.copyright = "2020 LittleBear";
this.description = "World script for Random Station Names OXP";
this.licence = "CC BY-NC-SA 4.0";

// local function
this.$renameMainStation = function $renameMainStation ()
{
	var ms = system.mainStation;
	if (!ms || !ms.isValid) return; // no main station in interstellar space
	if (!ms.shipUniqueName) ms.shipUniqueName = expandDescription("[named_stations_master_list_of_templates_types_for_naming_stations]");
}

// event handler
this.startUpComplete = function ()
{
	this.$renameMainStation();
}

// event handler
this.shipExitedWitchspace = function ()
{
	this.$renameMainStation();
}