Windfisch / factorio-bot

Work-in-progress factorio bot
GNU General Public License v3.0
33 stars 4 forks source link

Fill slack time with appropriate tasks #7

Open Windfisch opened 6 years ago

Windfisch commented 6 years ago

When a high prio task is scheduled with an ETA large enough to do some work, but too short to finish any work, then currently the bot will just idle.

It would be better to pick any runnable lower-prio task (that's based on goals, not actions) and execute that to fill the gap. Or to run a resource collector.

Ideally, we pick that task that minimizes the walking durations.

(No crafting can be done, because that high-prio task will occupy the crafting queue until it turns runnable)