Expose more details about bot targets and charging

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
BicycleEater
Fast Inserter
Fast Inserter
Posts: 153
Joined: Sun Jul 26, 2020 4:05 pm
Contact:

Expose more details about bot targets and charging

Post by BicycleEater »

TL;DR
Add some more variables in the API to expose where a construction drone is trying to reach, and particularly where/whether it is currently trying to recharge.
Why?
This is specifically to allow more detailed mod-based playing with how bots behave - I'm trying to experiment with implementing a mod to do better bot routing, and I think I can do it using only things that the game already stores, although that depends what the game stores.
Details and specific requests
I really want to be able to access:
  • Where the bot is currently trying to go (i.e. the ghost it is trying to build, a storage chest, etc.).
  • Whether the bot is currently trying to recharge.
  • Where the bot is trying to recharge (Ideally read/write, and ideally can be written to make the bot try to recharge there immediately, although I'm not sure if this is possible)
I'd also like an event for when a bot has finished recharging, although I don't really mind that as much.
Post Reply

Return to “Modding interface requests”