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

Expansion Traffic Redistributer

Content

Warnings

  1. Unknown key 'upload_date' at https://wiki.alioth.net/img_auth.php/4/49/Oolite.oxp.redspear.traffic_redistributer.oxz!manifest.plist

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Manipulates system traffic to reduce time spent in mass-lock/escape with minimal side-effects. Press 'i' for more information. - - - - - - - - - - Station bound traders are often headed in the same direction as the player and as such can contribute to some of the most time consuming and tedious mass-locks in the game. The basic idea here is to alter the probabilities of the various ships appearing to favour the slower ships in the safer systems without excluding any of the faster ones. Slower ships take less time (and/or fuel) to overtake/escape and therefore result in more tolerable mass-locks and improved escape probability of escapee from combats. Manipulates system traffic to reduce time spent in mass-lock/escape with minimal side-effects. Press 'i' for more information. - - - - - - - - - - Station bound traders are often headed in the same direction as the player and as such can contribute to some of the most time consuming and tedious mass-locks in the game. The basic idea here is to alter the probabilities of the various ships appearing to favour the slower ships in the safer systems without excluding any of the faster ones. Slower ships take less time (and/or fuel) to overtake/escape and therefore result in more tolerable mass-locks and improved escape probability of escapee from combats.
Identifier oolite.oxp.redspear.traffic_redistributer oolite.oxp.redspear.traffic_redistributer
Title Traffic Redistributer Traffic Redistributer
Category Mechanics Mechanics
Author Redspear Redspear
Version 3.0 3.0
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://aegidian.org/bb/viewtopic.php?f=4&t=18672 n/a
Download URL https://wiki.alioth.net/img_auth.php/4/49/Oolite.oxp.redspear.traffic_redistributer.oxz n/a
License CC-BY-NC-SA 4.0 CC-BY-NC-SA 4.0
File Size n/a
Upload date 1707608252

Documentation

Also read http://wiki.alioth.net/index.php/Traffic%20Redistributer

Equipment

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

Ships

Name
adder-mid_system
adder-safe_system
anaconda-mid_system
anaconda-pirate-mid_system
anaconda-pirate-safe_system
anaconda-safe_system
boa-mid_system
boa-pirate-mid_system
boa-pirate-safe_system
boa-safe_system
cobra3-alternate-mid_system
cobra3-alternate-safe_system
cobra3-trader-mid_system
cobra3-trader-safe_system
cobramk1-alt-mid_system
cobramk1-alt-safe_system
cobramk1-mid_system
cobramk1-safe_system
ferdelance-mid_system
ferdelance-safe_system
gecko-mid_system
gecko-safe_system
krait-mid_system
krait-safe_system
mamba-escort-mid_system
mamba-escort-safe_system
mamba-mid_system
mamba-safe_system
moray-mid_system
moray-safe_system
morayMED-mid_system
morayMED-safe_system
python-blackdog-mid_system
python-blackdog-safe_system
python-mid_system
python-safe_system
python-trader-mid_system
python-trader-safe_system
transporter-safe_system

Models

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

Scripts

Path
Scripts/traffic_redistributer.js
this.name        = "traffic_redistributer"; 
this.author      = "Redspear"; 
this.copyright   = "2024 Redspear";
this.licence     = "CC BY-NC-SA 4.0"; 
this.description = "Slower ships in safer systems"; 
this.version     = "3.0";

"use strict";

//	chance of slower ships being more common 
this.allowSpawnShip = function(shipKey) {
	// slowest group
    if (shipKey == "adder-safe_system" || shipKey == "anaconda-safe_system" || shipKey == "anaconda-pirate-safe_system" || shipKey == "boa-safe_system" || shipKey == "boa-pirate-safe_system" || shipKey == "cobra3-trader-safe_system"|| shipKey == "cobra3-alternate-safe_system" || shipKey == "cobramk1-safe_system" || shipKey == "cobramk1-alt-safe_system" || shipKey == "ferdelance-safe_system" || shipKey == "gecko-safe_system" || shipKey == "krait-safe_system" || shipKey == "mamba-safe_system" || shipKey == "mamba-escort-safe_system"|| shipKey == "moray-safe_system" || shipKey == "morayMED-safe_system" || shipKey == "python-safe_system" || shipKey == "python-blackdog-safe_system" || shipKey == "python-trader-safe_system" || shipKey == "transporter-safe_system") {
        if (system.government == 7 || system.government == 6 || system.government == 5) {
             return true; // 'Safe' systems : corporates, democracies & confederacies
        } else {	
			return false; // Not 'safe'
			}
		}
	// average group
	if (shipKey == "adder-mid_system" || shipKey == "anaconda-mid_system" || shipKey == "anaconda-pirate-mid_system" || shipKey == "boa-mid_system" || shipKey == "boa-pirate-mid_system" || shipKey == "cobra3-trader-mid_system"|| shipKey == "cobra3-alternate-mid_system" || shipKey == "cobramk1-mid_system" || shipKey == "cobramk1-alt-mid_system" || shipKey == "ferdelance-mid_system" || shipKey == "gecko-mid_system" || shipKey == "krait-mid_system" || shipKey == "mamba-mid_system" || shipKey == "mamba-escort-mid_system"|| shipKey == "moray-mid_system" || shipKey == "morayMED-mid_system" || shipKey == "python-mid_system" || shipKey == "python-blackdog-mid_system" || shipKey == "python-trader-mid_system" || shipKey == "transporter-mid_system") {
        if (system.government == 4 || system.government == 3 || system.government == 2 ) {
             return true // 'Mid' systems : communists, dictatorships & multi-governments
        } else {
             return false; // Not 'mid'
			}
		}
}