Release v16.03.04
Improvements since v16.02.04:
- extended memory reading API for reading of complex capture timer in space. As requested at http://forum.botengine.de/thread/getting-information-about-complexes-capturing/
- fixed a bug in the included mining script as reported at http://forum.botengine.de/thread/sanderling-release-v16-02-04/?order=all#comment-742d6236-b872-4428-b206-a5c10063fa43
- extended the included mining script: support multiple mining sites, support unloading to different containers (like POS)
- simplified identification of ice harvester type modules as requested at http://forum.botengine.de/thread/ice-harvesting/
- added notification sound when script run fails
- extended parsing of agent dialogue: wait time to decline without loss of standing
example using the new Inflight bracket to read the remaining complex capture time:
bool IsCapture(IInSpaceBracket bracket) =>
bracket?.LabelText?.Any(label => label.Text?.RegexMatchSuccessIgnoreCase("capturing") ?? false) ?? false;
int? CaptureTimeRemaining(IInSpaceBracket bracket)
{
var secondCount = bracket?.LabelText?.Select(label => label.Text.SecondCountFromBracketTimerText())?.WhereNotDefault()?.FirstOrDefault();
if(secondCount.HasValue)
return secondCount;
if(bracket?.LabelText?.Any(label => label.Text?.RegexMatchSuccessIgnoreCase("Captured") ?? false) ?? false)
return 0;
return null;
}
int? captureTimeRemaining =>
CaptureTimeRemaining(Sanderling.MemoryMeasurementParsed.Value.InflightBracket?.FirstOrDefault(IsCapture);