Version 1.00 - Download here - courtesy of Xai Corp
:EDIT: I've radically overhauled this script and rereleased it as Universal Ware Transfer. It uses the same command and page/text file as this, so they can't both be run together. I'm leaving this in case anyone prefers this.
This script allows you to transfer software and upgrades (jumpdrive, fight command software, etc) between two ships docked in the same location. There are checks within the script which should ensure that only items which can be transferred will be.
It uses SymTec Ltds Incoming Question Handler library (great library - thanks STL!)
:EDIT: Also big thanks to B-O'F, as I used is numeric entry library for reference while writing this script.
From the readme:
Readme wrote:Software and Upgrade Transfer v1.00 by eladan
---------------------------------------------
This package will allow you to transfer software and upgrades from any ship you own to another ship docked at the same location.
Upon installation of this script, the command "Transfer Ship Upgrades/Software" will be made available in the General menu of the command console. Upon running this command, if conditions are met for a transfer to take place (the ship is docked, and there is a ship to transfer to,) you will receive an incoming message. The incoming message, when opened, will show a list of the ships which are docked in the same location. Next to each ship is two buttons - one for a whole transfer, and one for a part transfer. The difference between the two modes is:
- If Whole Transfer is chosen the ship will immediately attempt to transfer its entire software and upgrade inventory to the ship you specify. If the receiving ship does not have the software or upgrade, and has a cargo ware class which is capable of installing it, then the transfer will proceed. On any other condition, the transfer will fail, and that software or upgrade will not be transferred. This is repeated for all software and upgrades on the transferring ship.
- If Part Transfer is chosen, Another screen will be displayed, showing the software and upgrades which are eligible to be transferred to the ship you specified. Eligibility is chosen using the same algorithm as for whole transfer - i.e. if the other ship already has the software/upgrade or if the ship is incapable of installing the software/upgrade due to ware category size restrictions, it will not be displayed on the screen. Clicking on the numbers next to each software/upgrade will choose them for transfer. The selection will turn green to show that it has been selected. Clicking on the same selection a second time will unselect it. At the bottom, Clear will clear all selections, and Transfer Selected will complete the transfer of the selected items.
When the transfer is complete, you will receive a message in your log telling you what was transferred and (for whole transfer only) what was not transferred (and why.)
This script uses SymTec Ltds excellent Incoming Question Handler library.
Q: It doesn't work! What do I do?
A: If you are trying to do a transfer, and all conditions are met, but it still doesn't work, you may need to reset the mission director. You do this by hitting the <Enter> key on the number pad when not docked, then clicking on the "reset mission director" button near the bottom. You may then need to save and reload.
Resources used: textfile and page id 8250, General Command 24
Changelog
---------
v1.00 - Initial release.