Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 4.83 KB

eve-online-mining-bot.md

File metadata and controls

76 lines (48 loc) · 4.83 KB

EVE Online Mining Bot

For this guide, I picked a mining bot optimal for beginners, which means easy to set up and use. After several iterations in development, this bot has matured to be robust regarding interruptions and changes in the game environment.

Maybe you have seen some bots or 'macros' which follow a fixed sequence of actions to perform an in-game task. The bot we will use here does not just follow a rigid series of steps but frequently looks at the current state of the game to decide the next action. This also means it can detect if it failed to perform a particular subtask, (for example, warping to the mining site) and try again. So it also does not matter if your ship is docked or in space when you start the bot.

Before going into the setup, a quick overview of this bot and what it does:

  • When the ore hold is not full, warps to an asteroid belt.
  • Uses drones to defend against rats if available.
  • Mines from asteroids.
  • When the ore hold is full, warps and docks to a station or structure to unload the ore into the item hangar. (It remembers the station in which it was last docked, and docks again at the same station.)
  • Runs away if shield hitpoints drop too low (The default threshold is 70%).
  • Displays statistics such as the total volume of unloaded ore, so that you can easily track performance.
  • Closes message boxes that could pop up sometimes during gameplay.

Setting up the Game Client

Despite being quite robust, this mining bot is far from being as smart as a human. For example, its perception is more limited than ours, so we need to set up the game to make sure that the bot can see everything it needs to. Following is the list of setup instructions for the EVE Online client:

  • Set the UI language to English.
  • In Overview window, make asteroids visible.
  • Set the Overview window to sort objects in space by distance with the nearest entry at the top.
  • Open one inventory window.
  • If you want to use drones for defense against rats, place them in the drone bay, and open the 'Drones' window.

Starting the Mining Bot

To start the mining bot, download the script from https://catalog.botlab.org/43c957667cfc973196b9852a08a6c928427b0fc4f8ca1c6f71cf32f60350a4a9 and then run it.

In case the BotLab client program is not yet installed on your system, the script will redirect you to the installation guide at https://to.botlab.org/guide/how-to-install-the-botlab-client-and-register-the-botlab-command

After completing the installation, run the script again to start the mining bot.

From here on, the bot works automatically. It detects the topmost game client window and starts working in that game client.

In case the bot does not work as expected, the first place to look is in the status message of the bot. Depending on what the bot is seeing and doing at the moment, it can display many different status messages. For example, if you disable the location ('System info') info panel in the EVE Online client, the bot displays the following message:

I cannot see the location info panel.

As soon as you enable this info panel again, the bot will also continue working.

The bot repeats the cycle of mining and unloading until you tell it to pause (SHIFT + CTRL + ALT keys) or stop it.

To give an overview of the performance of the bot, it displays statistics like this:

Session performance: times unloaded: 13, volume unloaded / m³: 351706

Configuration Settings

All settings are optional; you only need them in case the defaults don't fit your use-case.

  • unload-station-name : Name of a station to dock to when the ore hold is full.
  • unload-structure-name : Name of a structure to dock to when the ore hold is full.
  • module-to-activate-always : Text found in tooltips of ship modules that should always be active. For example: "shield hardener".
  • hide-when-neutral-in-local : Should we hide when a neutral or hostile pilot appears in the local chat? The only supported values are no and yes.

When using more than one setting, start a new line for each setting in the text input field. Here is an example of a complete settings string:

unload-station-name = Noghere VII - Moon 15
module-to-activate-always = shield hardener
module-to-activate-always = afterburner

Running Multiple Instances

This bot supports running multiple instances on the same desktop. In such a scenario, the individual bot instances take turns sending input and coordinate to avoid interfering with each other's input. To learn more about multi-instance setup, see https://to.botlab.org/guide/running-bots-on-multiple-game-clients


If you want to learn how this bot or other apps for EVE Online are developed, have a look at the directory of development guides at https://to.botlab.org/guide/overview

In case I forgot to add something here or you have any questions, don't hesitate to ask on the BotLab forum.