Illegal Goods Tweak OXP

From Elite Wiki
Revision as of 09:45, 3 April 2011 by Capt. Murphy (talk | contribs) (Created page with '== Overview == Illegal Goods Tweak version 1.2 (03/4/11) By Capt Murphy 2011 Licence: CC BY-NC-SA 3.0 Tested on Oolite version 1.75.1 == Description == This OXP introduces int…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Illegal Goods Tweak version 1.2 (03/4/11) By Capt Murphy 2011 Licence: CC BY-NC-SA 3.0 Tested on Oolite version 1.75.1


This OXP introduces interaction with Galcop customs for players who dock at main stations with Narcotics, Firearms or Slaves in the hold. Players can ignore warnings, in which case a legal penalty is applied, but they can go on to sell the contraband on the open market; or voluntarily hand over contraband in which case a nominal reward is given; or attempt to bribe the customs officer to turn a blind eye (this could be risky - attempted bribery of a Galcop official can bring it's own legal penalties).

This release in compliant with Thargoid's [Hypercargo v1.04], and [Vortex v1.11] both of which include alternative cargo bay equipment. Players using either of these OXP's and the associated equipment are sometimes immune to Oolite's native legal penalties on launching from main stations carrying contraband. This OXP replicates this behaviour when docking if the appropriate equipment is in use. Players still have an opportunity to voluntarily handover contraband for a small reward.

This release also includes an option for a variable 'detection rate' dependant on Tech Level and Government Type of the system. Low Tech Anarchies will have the lowest detection rate, High Tech Corporate States the highest. High Tech Anarchies and Low Tech Corporate States will fall somewhere in between. If not detected players carrying contraband still have an opportunity to voluntarily handover contraband for a small reward.

To set a variable detection rate open the file


with an appropriate text editor (NOT windows Notepad. Notepad ++ is a good free alternative), edit line 10 from

missionVariables.ig_always_detect = "yes";


missionVariables.ig_always_detect = "no";

This OXP does not interfere with the treatment of scooped escape pods, although they do appear in the manifest as slaves. Oolite automatically removes slaves from scooped escape pods from the manifest before this OXP runs.

Why was this OXP made?

Vanilla Oolite follows Elite in that by default penalties are only applied when launching from a main station with contraband in the hold. There is no penalty for docking with a main station with illegal commodities in the hold.

In the original game this had the effect of making trade in such commodities illegal as the only place they could be bought was main stations. Oolite on the other hand can have many OXP added dockable objects that are not main stations some of which sell illegal items cheaply, in bulk, and with no penalty attached to launching with them from that dockable object (e.g. Random Hit's Seedy Space Bars).

This allows for some very lucrative trading opportunities in illegal commodities from OXP dockables to main stations with no impact on the players legal status. This OXP goes someway to redressing the balance and increasing the risks of this strategy.

Initially (with version 1 of this OXP) Galcop simply introduced penalties for docking with illegal substances. Following intense lobbying from Amnesty Intergalactic and various Bounty Hunter interest groups Galcop agreed to give pilots the opportunity to hand over the goods to avoid penalties and for a small reward. Turning over slaves (who will be freed) rewards the player with a slight premium.

It is rumoured that in the future confidentially clauses may be relaxed and freed slaves will be told the identity of their rescuer after rehabilitation. Some may be in a position to contact the rescuer and offer additional rewards. Watch this space.

Known Issues

Although this OXP does not break the mechanics of insurance/bounty rewards for scooped escape pods, there is a slight anomaly in that the insurance/bounty reward screen is created prior to this OXP running, but is displayed afterwards. This screen may incorrectly report that you still have cargo in the hold when it has already been handed over to the authorities.

Change Log

Version 1.0 - 24/3/11 : Requires oolite 1.75.1 - Simply applies penalties if player docks at main station with contraband. No player interaction.

Version 1.1 - 26/3/11: Requires oolite 1.75.1 - Introduced interaction with customs and option to voluntarily handover contraband to avoid penalties and get a reward.

Version 1.2 - 03/4/11: Requires oolite 1.75.1 - Made compatible with Thargoid's HyperCargo 1.04 and Vortex 1.11 OXP's. Added option to attempt to bribe customs if detected. Added option to make detection rate variable.

What's next?

Version 1.3 - TBA: Will add a chance of time delayed 'additional reward' missions from former slaves when slaves are handed-over to the authorites.


Thanks to Thargoid for advice on the method to interact with another script/OXP's variables.

Thanks to all contributors to the thread on the Oolite BB for suggesting improvements to the original very basic idea.

Download Links

Download current version 1.2 from

Previous version 1.1 can be found at

Previous version 1.0 can be found at


Discussion topic can be found at Oolite BB