Back to Index Page generated: Nov 24, 2025, 1:21:31 AM

Expansion Trade Outpost

Content

Warnings

  1. http://wiki.alioth.net/index.php/Trade%20Outpost -> 404 Not Found
  2. Information URL mismatch between OXP Manifest and Expansion Manager string length at character position 0

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Adds Griff's Trade Outpost to certain systems, and updates the textures on Constores. Adds Griff's Trade Outpost to certain systems, and updates the textures on Constores.
Identifier oolite.oxp.Griff.TradeOutpost oolite.oxp.Griff.TradeOutpost
Title Trade Outpost Trade Outpost
Category Ships Ships
Author Griff Griff
Version 2.0 2.0
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL n/a
Download URL https://wiki.alioth.net/img_auth.php/4/42/TradeOutpost_2.0.oxz n/a
License Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with clauses - see readme file Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with clauses - see readme file
File Size n/a
Upload date 1763254301

Documentation

readme.txt

Trade Outpost 
Version 2.0 Update

This OXP does two things:
1. It will update the textures on all Constores and on the SFEP Trade Outposts, added normal, gloss and specular maps.
2. Optionally, it can replace the Coriolis main station in around 10% of cases.

To enable the second option, you need to use Library Config, find the setting and change the flag "Replace Main Stations" to "true".

Equipment

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

Ships

Name
Trade Outpost
trade_outpost_antenna
trade_outpost_dockingbay
trade_outpost_subents
trade_outpost_top

Models

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

Scripts

Path
Config/script.js
"use strict";
this.name = "trade_outpost";
this.author = "phkb";
this.copyright = "2025 phkb";
this.description = "Main script for Trade Outpost";
this.licence = "CC BY-NC-SA 3.0";

this._replaceMainStations = false;

this._toConfig = {
	Name: this.name,
	Alias: expandDescription("[trade_outpost_config_alias]"),
	Display: expandDescription("[trade_outpost_config_display]"),
	Alive: "_toConfig",
	Bool: {
		B0: { Name: "_replaceMainStations", Def: false, Desc: expandDescription("[trade_outpost_main_stations]") },
		Info: expandDescription("[trade_outpost_config_bool_info]")
	},
};

this.startUp = function() {
	if (missionVariables.TradeOutpost_MainStations && missionVariables.TradeOutpost_MainStations == "replace") this._replaceMainStations = true;
}

this.startUpComplete = function() {
	if (worldScripts.Lib_Config) {
		var lib = worldScripts.Lib_Config;
		lib._registerSet(this._toConfig);
    }
}

this.playerWillSaveGame = function() {
	if (this._replaceMainStations == true) {
		missionVariables.TradeOutpost_MainStations = "replace";
	} else {
		delete missionVariables.TradeOutpost_MainStations;
	}
}
Scripts/trade_outpost_conditions.js
"use strict";
this.name        = "trade_outpost_conditions";
this.author      = "phkb";
this.copyright   = "2025 phkb";
this.description = "Condition script for ships";
this.licence     = "CC BY-NC-SA 3.0";

//-------------------------------------------------------------------------------------------------------------
this.allowSpawnShip = function(shipKey) {
    if (shipKey == "trade_outpost")
        return worldScripts.trade_outpost._replaceMainStations;
    return false;
}