=============
Last updated: 07.11.14
Installation:
Subscribe on steam workshop
What it does:
It changes the asetroid selection logic to the L/XL mining ships to a more "logistically sensible" fashion. No more leaving the small pieces behind.
How does it work:
First some context. The vanilla script always selects the largest asteroid within 3KM as next main target. If none are found, pick a random asteroid within 75KM, If none are found there -> move in a random direction...
Anywho, this mod does this:
Short range scan (1KM), find smallest asteroid. (Mainly to avoid wandering too far off)
Medium range scan (3KM), find smallest asteroid.
Long range scan (75KM), find closest asteroid.
Long long range scan (150KM), find closest asteroid.
Over that -> give up and move in a random direction...
Tested with M ships as well but did not make much difference - vanilla has them searching for smallest asteroid + if fleets of small miners are in the same zone all that rangechecking can make some lagspikes.
Tested (my patience) with a Fedheim and with a Scaldis - the latter worked as planned, the first one... Someone should really mod a couple of extra mining turrets on that thing, if not already done

Edit: eBaracuda had made a fix

Savegame safe?
Probably, the mod do not touch or move any blocking parts in the script.
Would not recommend removing the mod on a save with an active miner in the same zone as the skunk though.
Mod compatibility:
The mod patches the in-sector part of mining.ship.collect.xml, and more specifically the node that handles asteroid selection for L/XL ships. Other mods touching that file could cause trouble (i.e. most mining type mods probably).
Todo:
Thinking about removing the move random completely - it's just annoying to discover the thing is clueless after been following it for a while.
Having the captain do some complaining would be better.
swatti - thanx for giving me a push. Something like this you were looking for?
Feedback and ideas would be most appreciated

Released under WTFPL, so please feel free to hack, extend or bundle the thing if you want. For convenience here are an unpackaged version:
https://dl.dropboxusercontent.com/u/652 ... r_v2.5.zip
https://dl.dropboxusercontent.com/u/652 ... r_v3.0.zip