Page 1 of 1

[Solved] Robot Construction Queue

Posted: Tue Oct 13, 2020 12:47 pm
by ChrislyBear
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.

Re: Robot Construction Queue

Posted: Tue Oct 13, 2020 1:23 pm
by DaveMcW
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.

Re: Robot Construction Queue

Posted: Tue Oct 13, 2020 1:26 pm
by ChrislyBear
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 :(