Difference between revisions of "Ship Comparison"

From Elite Wiki
Line 17: Line 17:
 
* Energy recharge rate
 
* Energy recharge rate
 
* Hyperspace capable
 
* Hyperspace capable
 +
 +
==Overriding Data==
 +
If a particular ship needs to have it's own entry, even if it would normally be listed under another ship type, you can override the list entry for that data key.
 +
Put this into the startUpComplete routine of your OXP:
 +
 +
  var sc = worldScripts.ShipComparison;
 +
  if (sc) {
 +
    // add an override for a particular ship data key, giving it a new name
 +
    sc._override["noshaders_z_groovy_cobra1_baker_player"] = "Cobra Mark I Special";
 +
 +
    // optionally, if you need to override the extra cargo capacity or the weapon facings, use the following
 +
    // data element 1 is the additional cargo available for this ship type (5 in the example)
 +
    // data element 2 is the weapon facings on this ship type (1 = forward only, 3 = forward and aft, 15 = all) (15 = All in the example)
 +
    sc._extraData["Cobra Mark I Special"] = [5, 15];
 +
  }
  
 
==Installation==
 
==Installation==
Line 23: Line 38:
  
 
==Download==
 
==Download==
Download v1.2 [[Media:ShipComparison.oxz|ShipComparison.oxz]] (downloaded {{#downloads:ShipComparison.oxz}} times).
+
Download v1.3 [[Media:ShipComparison.oxz|ShipComparison.oxz]] (downloaded {{#downloads:ShipComparison.oxz}} times).
 
<br/>Alternative download for the OXZ from [https://app.box.com/s/ltx66s4lp42typu17y6721qxnaqnrmxs box.com]
 
<br/>Alternative download for the OXZ from [https://app.box.com/s/ltx66s4lp42typu17y6721qxnaqnrmxs box.com]
  
Line 32: Line 47:
  
 
==Version History==
 
==Version History==
 +
1.3
 +
* Added a "+" symbol to extra cargo value to make it clearer it is in addition to the base cargo capacity.
 +
* Additional ship data overrides.
 +
* Added dictionary and code examples to allow OXP's to override ship data for a particular data key.
 +
 
1.2
 
1.2
 
* Added cargo expansion size to list of items.
 
* Added cargo expansion size to list of items.
Line 47: Line 67:
 
==Quick Facts==
 
==Quick Facts==
 
{{Infobox OXPb| title = ShipComparison.oxz
 
{{Infobox OXPb| title = ShipComparison.oxz
|version = 1.2
+
|version = 1.3
|release = 2015-12-13
+
|release = 2015-12-15
 
|license = CC BY-NC-SA 4.0
 
|license = CC BY-NC-SA 4.0
 
|features = Ship Comparison
 
|features = Ship Comparison

Revision as of 05:20, 15 December 2015

Shipcomparison.png

Overview

This OXP aims to help players who are in the market for a new ship by providing a visual, side-by-side comparison of ship specifications.

A new interface screen "Ship Comparisons" allows the details of up to three ships to be displayed. Details included are:

  • Max speed
  • Injector speed
  • Max thrust
  • Max pitch
  • Max roll
  • Max yaw
  • Weapon positions
  • Missile pylons
  • Cargo capacity (plus expansion size)
  • Energy banks
  • Energy recharge rate
  • Hyperspace capable

Overriding Data

If a particular ship needs to have it's own entry, even if it would normally be listed under another ship type, you can override the list entry for that data key. Put this into the startUpComplete routine of your OXP:

 var sc = worldScripts.ShipComparison;
 if (sc) {
   // add an override for a particular ship data key, giving it a new name
   sc._override["noshaders_z_groovy_cobra1_baker_player"] = "Cobra Mark I Special";
   // optionally, if you need to override the extra cargo capacity or the weapon facings, use the following
   // data element 1 is the additional cargo available for this ship type (5 in the example)
   // data element 2 is the weapon facings on this ship type (1 = forward only, 3 = forward and aft, 15 = all) (15 = All in the example)
   sc._extraData["Cobra Mark I Special"] = [5, 15];
 }

Installation

Place the 'ShipComparison.oxz' into your 'AddOns' folder and when you start the game, hold down 'Shift' until you see the spinning Cobra.
Alternatively, you can download the expansion using the expansion pack manager in the game itself.

Download

Download v1.3 ShipComparison.oxz (downloaded 2772 times).
Alternative download for the OXZ from box.com

License

This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Balance image from http://simpleicon.com/balance.html

Version History

1.3

  • Added a "+" symbol to extra cargo value to make it clearer it is in addition to the base cargo capacity.
  • Additional ship data overrides.
  • Added dictionary and code examples to allow OXP's to override ship data for a particular data key.

1.2

  • Added cargo expansion size to list of items.
  • Fixed issue where missing "weapon_facings" value was not defaulting to the correct value. If any ships has been missed or show up incorrectly just let me know.
  • Added a "change scroll direction" function so if you go past the ship you want to can turn around and go back, rather than having to scroll all the way around the list.

1.1

  • Fixed issue where some ship definitions were incorrectly showing with "0" missiles.
  • Fixed issue where some ship definitions were showing a blank in the cargo capacity field.
  • Added code to hide specifications of some ships (classified data and such).

1.0

  • Initial release.

Quick Facts

Version Released License Features Category Author(s) Feedback
1.3 2015-12-15 CC BY-NC-SA 4.0 Ship Comparison Misc OXPs phkb Oolite BB

Gameplay and Balance indicator

Tag-colour-green.png