X: Rebirth
0 of 0

File information

Last updated

Original upload

Created by

jth

Uploaded by

jth1

Virus scan

Safe to use

Tags for this mod

About this mod

Provides ship recycling in Player Shipyards and NPC Shipyards

Permissions and credits
Donations
Objective

To add a way to recycle ships at Player Shipyards or NPC Shipyards

How to Use

Fly to the zone that contains the shipyard that you want to use to recycle your ship
Open communications with the right Ship Trader for the size of vessel that you are recycling
Pick the "Sell or Recycle a ship" menu option
  The Sell button sells the ship in the normal way using standard Egosoft code at the standard price
  The Recycle button opens up the Recycle Cost menu for the selected ship where you can see the recycling information
Then pick "Yes, recycle this ship"
Sit back and watch the ship move into the docking cradle and then observe the hull and weapons getting recycled

v0.07

  • Compensate for format of version string changing in 4.10 RC3 and add extra paranoia when checking version to prevent crashing the GUI

v0.06
  • Compensate for parameter changes to Encyclopaedia API in 4.00 RC2 to prevent Encyclopaedia buttons crashing the GUI
  • Apply a 90% recycling factor to ship hull wares    
  • Rebalance prices to track what shipbuilders pay to buy back ships (80%), drones (85%) and ammunition (90%)    
  • Add an extra 10% handling charge to wares that could be sold to the station by the player before the ship is recycled. As the Teladi say "time is money".
  • Changed API call used for calculating free space to take into account the available space for the ware instead of total available space
  • Fix issue with calculating refund when recycling where there is no storage space for a specific ware. Now correctly refunds 50%
  • Adjusted on screen messages a litle for when ware doesn't all fit into shipyard storage
  • Suppress Drone section when there are no drones
  • Add remote logging via md script to remove false positive Error messages, caused by DebugError logging commands, in debug.log that were actually informational

Features
  • Allows recycling of L and XL ships in Player Shipyards and NPC Shipyards
  • Uses a customised version of Egosoft's PropertyMenu and BuildCostMenu GUI menus to select the ship to be recycled and show you what wares will be recovered
  • Checks a number of pre-requisites to make sure that recycling can proceed and notifies player if there are any problems before allowing the player to continue.
  • PropertyMenu checks that the recycling ship will fit into the individual ShipTrader's ship cradle.
  • BuildCostMenu checks that the shipyard has enough food, energy and construction drones present and that the recycling ship is in the same zone as the player (needed if you want the weapons and shields back).
  • Recycles hull wares taking into account the state of the hull at the time
  • Recycles operational Weapons and Shields plus installed drones, ammunition and cargo
  • When recycling cargo it pays the full price for any wares that will fit in station storage and 50% if they do not fit or are not standard wares for a shipyard
  • If the Shipyard is NPC owned then the player is paid for the ship in the same way as the current Sell a ship
  • Consumes energy and food rations to carry out recycling
  • Moves ship into appropriate ship cradle and chops the hull up piece by piece
  • Pays player for crew and recreates NPC's with same skills as ship crew on shipyard where they can be hired by player. This means that if you spend time training crew then their replacement will also have the benefit of the training.
  • The types of NPC that are recycled are the ship Control Entities which include pilot, captain, defense officer, engineer and architect.
  • Will try to put recreated crew in the bar if it can find it and there is room otherwise picks any personnel docking bay that has space.
  • Maintains individual ShipTrader locking so that an individual ship trader can only do one thing at a time
  • Aborts recycle if ship is destroyed before it gets into dock just like the other ShipTrader operations.
  • Logs ship recycling in player log book
  • Logs a lot of information to debug.log so that the recycling process can be checked and diagnosed
  • Checks selling price of NPC's and if greater than max allowed then compensates by dividing by 100