Hello fellow Factorians,
Quick question: I'm trying to find out if an entity is being constructed/deconstructed/upgraded/serviced by personal robots (the logistics cell the robot belongs to has a character as owner and is mobile) or not. Is there any way to tell which robot is on the way to which entity?
Or differently phrased: Can I access the robot job queue somehow, or infer otherwise which bot builds a certain entity?
Best regards,
Chris
Edit: I have found, that ConstructionRobots have listed a construction_vector in their prototype, but I cannot access/find this property. Could this be part of the solution? (Iterate over personal robots, get the vector, find entities at the position the vector is pointg towards... just a thought).
Edit2: It would also suffice to find the LogisticsNetwork, the robots doing the construction belong to. I could tell if it's a personal/mobile logistics cell or not.
[Solved] Robot Construction Queue
-
- Burner Inserter
- Posts: 14
- Joined: Thu Jul 05, 2018 7:46 am
- Contact:
[Solved] Robot Construction Queue
Last edited by ChrislyBear on Tue Oct 13, 2020 2:50 pm, edited 1 time in total.
Re: Robot Construction Queue
construction_vector is just an offset for where to hover while building.
There is no API access to get info on a robot in the air.
There is no API access to get info on a robot in the air.
-
- Burner Inserter
- Posts: 14
- Joined: Thu Jul 05, 2018 7:46 am
- Contact:
Re: Robot Construction Queue
That's unfortunate. I just found Rseding91 confirming such a thing in 2018 (here: viewtopic.php?p=388344#p388344). Scanning the targets of the personal robots would be enough for my purposes.
Chris
Edit: Bilka confirmed this on the Discord. There's no way to access the robot's destination via the API
Chris
Edit: Bilka confirmed this on the Discord. There's no way to access the robot's destination via the API