Difference between revisions of "Darkside Moonshine Distillery"

From Elite Wiki
m (Updated link)
(Added Phkb's fix)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
Note: Phkb has created a DMD Facelift OXP - find it [https://app.box.com/s/5xbksy48qr9cp31z2wpef6wjla05s3ih/file/1994238736092 here]
 
[[File:DMD_d.jpg|thumb|right|DM Distillery]]
 
[[File:DMD_d.jpg|thumb|right|DM Distillery]]
 
[[File:DMDa.jpg|thumb|right|DM Saloon]]
 
[[File:DMDa.jpg|thumb|right|DM Saloon]]
Line 18: Line 19:
 
{{OXPLevel|1}}
 
{{OXPLevel|1}}
  
* Get it from the in-game [[Expansions Manager]].
+
* Get it from the in-game [[Expansions Manager]] (v.0.8).
 
* Or from [[Media:Darkside Moonshine Distillery 0.5.oxz|Darkside Moonshine Distillery OXZ]] - (downloaded {{#downloads:Darkside_Moonshine_Distillery_0.5.oxz}} times)
 
* Or from [[Media:Darkside Moonshine Distillery 0.5.oxz|Darkside Moonshine Distillery OXZ]] - (downloaded {{#downloads:Darkside_Moonshine_Distillery_0.5.oxz}} times)
 +
* Get v.0.9 from [https://app.box.com/s/dt22xgd5ndr03yohzxnmi3zvhubazpe1 box.com] (2025 version which works with The Galactic Almanac OXZ - but see [https://bb.oolite.space/viewtopic.php?p=302814#p302814 Phkb's note])
 +
 +
== Fix ==
 +
Phkb noted a small error in the dmd_trade.js file. (If you want to inspect an OXZ you've downloaded with the expansion pack manager, copy it out of the ManagedAddOns folder first, then open it with your unzipping program. '''OR''' The Expansions Manager can do this for you when you press the "x" key.) 
 +
 +
The following are lines 59-54:
 +
    var way = system.info.routeToSystem(sysInfo);
 +
    if (way) {
 +
        this.$priceMultiple = way.route.length * 0.025;
 +
    } else {
 +
        this.$priceMultiple = 99 * 0.025; // if the system is unreachable, then prices will be really high
 +
    }
 +
    if(this.$witchlogging) log(this.name,this.name+"  waylong = "+way.route.length);
 +
 +
The last line expects to have "way" populated, but there can be instances where it is null, which causes an error.
 +
 +
The easiest fix is probably to do this:
 +
 +
    var way = system.info.routeToSystem(sysInfo);
 +
    if (way) {
 +
        this.$priceMultiple = way.route.length * 0.025;
 +
        if(this.$witchlogging) log(this.name,this.name+"  waylong = "+way.route.length);
 +
    } else {
 +
        this.$priceMultiple = 99 * 0.025; // if the system is unreachable, then prices will be really high
 +
    }
 +
 +
By moving the line where "way" is referenced into the If clause where we know it's not null, the error is avoided. [https://bb.oolite.space/viewtopic.php?p=302814#p302814 Phkb, 2025]
  
 
== Requirements ==
 
== Requirements ==
Line 28: Line 56:
 
* [[Snoopers]]
 
* [[Snoopers]]
 
* [[Explorers'_Club_OXP|Explorers Club]] and/or [[GalCop Galactic Registry]]: (showing the Tortuga Expanse in game).
 
* [[Explorers'_Club_OXP|Explorers Club]] and/or [[GalCop Galactic Registry]]: (showing the Tortuga Expanse in game).
* [http://www.aegidian.org/bb/viewtopic.php?t=6053 Clym's vector maps] (not an oxp but very useful)
+
* [https://bb.oolite.space/viewtopic.php?t=6053 Clym's vector maps] (not an oxp but very useful)
  
 
== Links ==
 
== Links ==
Line 47: Line 75:
 
|category = Dockables OXPs‏‎
 
|category = Dockables OXPs‏‎
 
|author = Stormrider
 
|author = Stormrider
|feedback = [http://aegidian.org/bb/viewtopic.php?f=4&t=18179 BB-Link]
+
|feedback = [https://bb.oolite.space/viewtopic.php?f=4&t=18179 BB-Link]
 
}}
 
}}

Latest revision as of 15:51, 8 June 2026

Note: Phkb has created a DMD Facelift OXP - find it here

DM Distillery
DM Saloon

Overview

The Darkside Moonshine Distilleries are only found in a few systems in each galaxy, often clustered in poor agricultural regions such as the Tortuga Expanse in the far east of galaxy 1. They offer a highly desired commodity that is only available at DMD stations, Witchfire Whiskey. The price for Witchfire grows with the distance from production centers making cross galaxy runs very profitable.

Smaller Darkside Moonshine Saloons appear in random systems around the chart. Although Witchfire is unavailable for purchase in bulk from the Saloons, they offer an alternative docking facility for those who may wish to avoid the patrol.

This OXP does three things:

  • It adds two new dockable stations.
  • It adds a new commodity to Oolite. The value depends on distance.
  • It adds colour to a specific region.

Saloon Bar interface

Stormrider wanted to make much more of this OXP. An unfinished bar interface for the Saloons can be found in Stormrider's collection (2014-7) Here!. He mentions widely that he is happy for people to take over his ideas as long as they credit him for what he did.

Download

Levelindicator1.png
1-{{{2}}}

Fix

Phkb noted a small error in the dmd_trade.js file. (If you want to inspect an OXZ you've downloaded with the expansion pack manager, copy it out of the ManagedAddOns folder first, then open it with your unzipping program. OR The Expansions Manager can do this for you when you press the "x" key.)

The following are lines 59-54:

   var way = system.info.routeToSystem(sysInfo);
   if (way) {
       this.$priceMultiple = way.route.length * 0.025;
   } else {
       this.$priceMultiple = 99 * 0.025; // if the system is unreachable, then prices will be really high
   }
   if(this.$witchlogging) log(this.name,this.name+"  waylong = "+way.route.length);

The last line expects to have "way" populated, but there can be instances where it is null, which causes an error.

The easiest fix is probably to do this:

   var way = system.info.routeToSystem(sysInfo);
   if (way) {
       this.$priceMultiple = way.route.length * 0.025;
       if(this.$witchlogging) log(this.name,this.name+"  waylong = "+way.route.length);
   } else {
       this.$priceMultiple = 99 * 0.025; // if the system is unreachable, then prices will be really high
   }

By moving the line where "way" is referenced into the If clause where we know it's not null, the error is avoided. Phkb, 2025

Requirements

  • This OXP needs Oolite v1.79.

Recommendations

No other OXPs are required for this to run, however, the distilleries are clustered in areas that have been defined in a few other oxps, installing them may help provide ambience.

Links

  • Stormrider's other OXP's
Manifest Scanner
Stormbrewer (light transport)
Amber Moon Chronicles (unfinished, but brilliant! Archaeological ruins...)

Quick Facts

Version Released License Features Category Author(s) Feedback
0.5 2016-04-20 CC BY-NC-SA 4.0 DMD Stations Dockables OXPs‏‎ Stormrider BB-Link