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.
[2.0.5] The target of a `WorkerRobotOrder` can be nil
[2.0.5] The target of a `WorkerRobotOrder` can be nil
- Attachments
-
- platform-construction-only-no-construction-robots_0.0.1.zip
- (2.11 KiB) Downloaded 20 times
-
- instant construction test world.zip
- (2.23 MiB) Downloaded 22 times
-
- factorio-current.log
- (4.59 MiB) Downloaded 15 times
Re: [2.0.5] The target of a `WorkerRobotOrder` can be nil
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.