ShipVersion

From Elite Wiki
Revision as of 17:53, 28 July 2013 by Norby (talk | contribs) (ccl_missionShip support)
Shipversion2.png

Download it from here.

Ship Version

All piloted ships got a version number from 1.0 to 10.0 when manufactured. This means the age of the ship, so it is not changeable like an equipment, this represents the era when the ship created and affect many parts of the ship.

In this way there is a reason to buy another ship from the same type which you have if you get enough money and create a new goal to earn more money after you bought your favourite ship to get another with higher version. Be cautious, you may need to avoid stronger enemies and retreat from the combat if the situation is hard.

The 1.0 is the normal ship, others get bonuses for:

  • Energy and shield recharge (max. +1.8/seconds, NPC shield recharges affected also with CustomShields OXP),
  • Missile reload time.

NPCs get also:

  • Accuracy bonus,
  • Equipments (mainly combat related, see below), awarded more with the higher version.

Player get:

  • Service Level Repair Bot if ShipVersion >= 8.0 which can increase 1% in every 5 minutes of flying.


Ship details screen

Shipversion4.png

If you hit the enter key in the shipyard with this OXP then you will not get the ship instantly but can read ship details including the version number in the heading.

Do not buy the first available ship when you have enough money, watch the version number and wait until a good ship will be sold. Unfortunately if you throw back a ship then the game remove it from the shipyard, but you can get back if reload a saved game. If there are more copy from the wanted ship in the Shipyard then save the game, check the ship versions and if the last is not the best then load the game and choose the best, the versions will not change.

The awarded Ship Version Equipment show the version of the ship in the status screen (F5). If this equipment damaged then the recharge bonus lost until repaired.

If you are attacked by more ship then watch the version numbers at the end of the names and fight with the strongest first. The flags on the scanner has severally adjusted brightness to refer the version of the ships so target the brightest red. Base with red flag means to targeted you and send defensive ships.

Orange flag mean a smaller (escort) ship under 130t with bounty, which is weaker than the red ones but hostile. Yellow is a neutral ship with clean status and purple mean police ship. All of the color changes can be turned off in the Scripts/shipversion.js when set $ShipVersion_Colors to false.

NPCs show the main number of the version only (1 - 10 instead of 1.0 - 10.0) due to the limited detection.

The version numbers comes from the read-only entityPersonality value of the ships willfully. In this way a script can set it when creating a new player ship only and can not change afterwards, so you must find and buy another ship if you want to upgrade to higher version.

Awarded equipments

NPCs get:

Version	Equipments
1	Escape Pod
2	E.C.M. System
3	Extra Energy Unit
4	Shield Boosters
5	ECM Hardened Missiles and Shield Cycler if the OXP with same name is present
6	Witchdrive Fuel Injectors and Q-Charger if the related OXP is present and at least v1.21
7	Military Scanner Filtering, Shield Equalizer and Capacitors if the same OXP is present
8	Military Shield Enhancement
9	Military Scanner Jammer and Naval Energy Unit
10	Cloaking Device and Quirium Cascade Mine (the top 1% of the ships)

You can set the maximum level of the awards with $ShipVersion_AwardMax in the Scripts/shipversion.js, the default is 10. These awarded in addition, so a ship with small version may have advanced equipments if start with it or got it from somewhere else than this OXP.

HardShips support

If both HardShips OXP and IronHide OXP present then the HardShips OXP will award an equivalent of the IronHide Armour to NPCs to compensate the originally player-only IronHide Armour, and award more armour to the ships with high version.

Awarded with HardShips OXP and IronHide OXP:

Version	Equipments
2	Dummy Equipments depending on cargo space
3	Equipment Box
4	Additional Core Hull and if not clean then Renewable Energy Generator
5	IronHide Armour and Hard Nose
6	Additional Front Armour and Emergency Energy Generator
7	Additional Aft Armour and Emergency Shield Generator
8	Military IronHide Armour and Very Hard Nose
9	High-Tech Catalyst if clean and Big Shield Capacitors with ShieldEqualizer+Capacitors OXP
10	1.5x Military IronHide Armour and Anti-Sapper Shield
Shipversion3.png

For example a Viper v8 get 490 armour and 384 shield points over the basic 180 energy, which is 6x more but only 20% of the ships has v8 or above. A zealous player can make tables to all NPC ships from Version 1 to 10 with energy, front-aft-side armour, shield and recharge values modified by the awarded equipments. Please publish if you can do it.

ShipVersion OXP can not award the player-only Ironhide Armour to NPCs without HardShips OXP. But without ShipVersion OXP the HardShips OXP can award it due to the armour-making code simulate the NPC IronHide Armour and use the same entityPersonality-based formula to determine the NPCs who can get this.

If HardShips OXP present then all ship get equal level Hard Shield with the version number also.

The Hard Armour (which is the strongest addition of the HardShips OXP) is not awardable by version due to it is not an equipment. Very large and heavy in real, need additional reinforced holders within the ship so can not added easily to an existing ship, must be made a different subtype to hold. It is something beyond the ship version: a new ship with modified name (for example "Hard Cobra"), smaller thrust and orange tiled textures to make visible the very Hard Armour. But Hard Ships will get version numbers also with the bonuses described above.

Ship sizes

Ships with less than 30t mass can not get the following equipments due to the small inner space: IronHide Armour, Shield Boosters and Shield Capacitors and none from HardShips OXP nor labelled as Military/Naval.

Small ships: Adder (11t), Gecko (23t), Mamba (27t), Sidewinder (25t) and Viper (23t).

Ships under 130t can not get Big Shield Capacitors, Very Hard Nose and nothing labelled as Military/Naval.

Restricted ships: Asp (59t), Cobra I (47t), Constrictor (33t), Fer-de-Lance (51t), Krait (80t), Moray (40t), Viper Interceptor (43t) and the previous small ships.

Large ships can get all (be wise): Anaconda, Boa, Boa Mk2, Cobra MkIII and Python.

The bounty of ships over 30t is increased with version*10 credits so v1-v10 add 10-100. Large non-clean ships get more at high levels: v8 get 100, v9 get 150 and v10 get 200 additional credits.

Player get similar restrictions so can not buy some equipments into small ships: Under 30t no Galactic Hyperdrive, IronHide Armour, Medium Railgun, Military and Mining Laser, Shield Boosters and Shield Capacitors. Under 130t no Heavy and Mining Railgun, Military IronHide Armour and Naval Shield Booster.

Drones in HardShips OXP and custom ships under 3t are not awarded with equipments at all (no room for anything), but get recharge and accuracy bonuses as others.

Service Level

The Service Level equipment show the status of the ship hull based on the following data.

Perfect 100%
Good	90-99%
Weak	80-89%
Bad	76-79%
Minimal 75%

This affect the ship value when you want to sell it to buy another ship so always worth to fix it before.

You will get message from the changes and the name of the equipment show these words to can check it on the status screen (F5). If the version of your ship is at least 8.0 then this equipment contain a repair bot also which can increase 1% in every 5 minutes of flying. Below 8.0 also usable to partially protect your other equipments with these spare parts to take out an equipment damage. Can show the level even if damaged but can not defend other equipments nor repair the ship so worth to fix it.

If drops to minimal then your laser weapons and turrets will be damaged so must quit from the battle and go to repair. Other repair tools can not fix the weapons due to damaged again in every seconds when service level stay at minimal. Normal and ECM Hardened Missiles and Quirium Cascade Mines will be break also, but OXP missiles and mines can survive.

Recover Turrets

If you lost your turrets then choose this in the equipment shop from techlevel 5 to fix a turret for 1000 credits.


Technical Informations

Depending on Oolite v1.77.

Instructions

Unzip the file, and then move the folder named ".oxp" in the end to the AddOns directory of your Oolite installation.

, Shield Boosters and and none from HardShips OXP nor labelled as Military/Naval.

Recommended OXPs

  • CustomShields OXP to put shields into NPC ships.
  • Detectors OXP to see about how many bonuses has the NPCs in different versions.
  • HardShips OXP if you want armoured enemies with extra awards.
  • IronHide OXP to NPCs get extra strong armour (need HardShips OXP also to work).
  • Q-Charger OXP from v1.21 awardable to NPC ships also, you will see some very fast enemy.
  • Shield Cycler OXP help to the NPCs also with transferring shield energy to the weaker side.
  • Shield Equalizer and Capacitors OXP to help NPCs a bit more.
  • Ship Storage Helper OXP is an alternate way to save the ship before check the version of a new one in the Shipyard Screen. Use if another OXP (especially if maded later than this OXP) cause problems with the default method but supported by the SSH OXP. If present then the ShipVersion OXP using it instead of the built-in method, which working also, so SSH is not needed currently.
  • Skilled NPCs OXP to get harder residents in the bad governments.
  • ToughGuys OXP to get even more hard enemies, new ships and ambushes.


Settings in shipversion.js

  • $ShipVersion_AwardMax = 10; //Additional equipments awarded to NPCs in shipSpawned function, level 0-10
  • $ShipVersion_BasicRulesOnly = false; //if true then default rules get versions only (trader, pirate...)
  • $ShipVersion_Colors = true; //flag color adjustments on the IFF scanner
  • $ShipVersion_Debug = false; //show extra messages to help developing


Script_info support

OXP makers can set fixed version from 1 to 10 to any ship in shipdata.plist. Set to 1 is equal with the original ship, but NPCs over 3t get an Escape Pod due to nobody dare to fly without insurance.

script_info = {
	shipversion = 1;
};

Set ccl_missionShip = true; in script_info if a ship need to remain untouched.

License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License version 3.0 If you are re-using any piece of this OXP, please let me know by sending an e-mail to norbylite at gmail.

Changelog

2013.07.28. v1.11 Skip mission ships with ccl_missionShip=true.
                  $ShipVersion_BasicRulesOnly can restrict further to the default rules.
2013.07.27. v1.1  More bounty for large ships with high versions.
                  Player get equipments restrictions in small ships.
                  Script_info support to give fixed version.
                  Minimal service level cause weapon loss.
2013.06.24. v1.0  First betatest version.
2013.06.10. v0.3  HardShips support added.
2013.04.07. v0.2  First working version.
2013.03.31. v0.1  First test files.

Download ShipVersion OXP from here.

Quick Facts

Levelindicator4.png
0-4
Version Released License Features Category Author(s) Feedback
1.11 2013-07-28 CC-BY-SA 3 ships get bonuses scaled with the version Mechanics OXPs Norby BB-Link