----------------------------------
This script automatically 'beams' products from your stations to other stations which needs them as resource. The station which is most in need of the ware gets it first from the producing station that has the most units available.
Stations that are in need of a resource only get wares if the resource amount is under 20%.
It basically works like a complex, just without the pipes and the need of freighters. In the universewide version you can have a cahoona bakery in Argon Prime and a cattle ranch in Seizewell, the cahoona bakery will get its argnu beef from the ranch in Seizewell.
The script does not buy any resources and it doesn't take wares from npc factories. So you will need to have the production kicked on, like you need to provide energy cells for the cattle ranch and the cahoona bakery (unless you have a spp somewhere).
The script might affect your performance, depending on how many factories you have. The loop time is set to 60 seconds. If it runs well for you, you might want to adjust it by changing the number in line 3 of the script.
There's also a pause in the script when you start it, the first transfers will be made after about a minute.
You need to run the script manually from the script editor, it doesn't need any arguments. To disable the script, execute the mts.DisableStationFreightTsp script. It will shut off after a minute in worst case.
Please let me know what you think of it, and if there're any problems.
Download the universewide version here
Download the single sector version here
Please give me some feedback, even if you don't like, let me know and i will see if i can change it.
EDIT: I didn't test how it works with complexes yet. It works with factories that are not in a complex, but it might work with complexes (i knew i would forget something when testing
