Sinnerman49 wrote:Maybe I'm not doing something correct?
I have 4 mining ships, supplying my Mobile Mining Base-Ship. I want 1 trader to automatically sell the ore that the miners drop off at the MMBS. I've the the MMBS as the trader's homebase, and the trader is equiped with a transporter device.
The first time, I had 1 unit of ore in the trader, and selected that for the wares list. It worked great! The trader loaded up the rest of the ore from the MMBS (it was docked), went out, and sold it for a great profit!
That's when things fell apart....it successfully returned home, but instead of getting the next load of ore, it approached the MMBS (never docked), and then turned around and headed to a nearby Chip-Plant (no clue why, it doesn't even use ore).
Now its just going back and forth between the MMBS and the chiplant, never exchanging any frieght.
What could I have done wrong? Is there a better script for this kind of operation?
Its a long time since I wrote this script, and I was at the time, and plan to restart work on it asap, working on an updated version that is much improved. But like I say, it's been a while so I can't remember the exact logic.
I think the logic of MTX ships is basically to approach the home ship and check if it has anything to do (i.e. consult the buy/sell lists, available cargo, etc). If there is nothing to do then dock at a safe station nearby, wait a while, then repeat the process.
I'll have to look into this plugin again closer - I've been on somewhat of an extended X3TC break. But back when I was playing before, and very soon in my current game, it did/will form the backbone of my trading/resupply functions.
I'd be interested to hear if you figure out what went wrong (I mean, I used this script extensively and didn't have problems, but then I knew the inner workings and could make sure everything was set up optimally).
Otherwise, watch this space for an update coming in the not-too-distant future.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.
Black holes are where God divided by zero.