Page 1 of 1

[2.0.5] The target of a `WorkerRobotOrder` can be nil

Posted: Fri Oct 18, 2024 5:54 am
by Quezler
The documentation currently lists the target without a ?

It is possible to get a deconstruction order from the api where the target is missing,
on the test world add the remaining 49 normal robots to the roboport, and then try to deconstruct as many trees as you can in the roboport area.

it might not crash first try, 2-3 save reloads might be necessary, but eventually you'll run into it.

Re: [2.0.5] The target of a `WorkerRobotOrder` can be nil

Posted: Fri Oct 18, 2024 9:29 am
by boskid
Thanks for the report. I am going to mark this field as optional for 2.0.6. I am not sure when exactly are worker robot orders purged from the order queue after entities were invalidated and i am not willing to rework that right now.