Arcitectus / Sanderling

APIs and libraries to read information directly from the EVE Online game client.
https://forum.botlab.org
Apache License 2.0
259 stars 117 forks source link

Mining script: Detect Cluster shutdown #34

Closed tetreum closed 4 years ago

tetreum commented 7 years ago

It would be cool to detect the display of "Cluster Shutdown in..." and set it as retreat reason. http://i.imgur.com/yZ4hQNj.jpg

Viir commented 7 years ago

It would be cool to detect the display of "Cluster Shutdown in..."

The text visible in the center of the screenshot is available in AbovemainMessage property of the memory measurement: https://github.com/Arcitectus/Sanderling/blob/e39100deec46542c84a7b41f22790177da65ec3f/src/Sanderling.Interface/Sanderling.Interface/MemoryStruct/MemoryMeasurement.cs#L58

Just in case anyone is wondering how to inspect this part of the memory measurement without having to wait for a shutdown: You can save a snapshot of the eve client process to inspect it later using the guide from http://forum.botengine.de/t/collecting-samples-for-memory-reading-development/50

tetreum commented 7 years ago

Thank you for the info! Is there any way to attach an event listener? So i just check it whenever the message changes rather than setting an interval/loop?

Viir commented 7 years ago

Is there any way to attach an event listener?

I don't know of a way to attach an event listener.

So i just check it whenever the message changes rather than setting an interval/loop?

How about doing such a check in the same place where the check for hitpoints happens? This way, the existing interval/loop would be reused.