Dear Devs,
The current on_robot_built_tile does not contain the surface index, which the similar player event does have.
While the index may be available through the robot as it is on the correct surface, this might cost some computation and add complexity for scripting.
Would it be hard to expose the surface_index in the on_robot_built_tile event?
surface_index in on_robot_built_tile
Re: surface_index in on_robot_built_tile
Okay, added in the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: surface_index in on_robot_built_tile
Is it possible for on_robot_mined_tile to get the same treatment?
The surface index seems to be missing there as well...
The surface index seems to be missing there as well...
Re: surface_index in on_robot_built_tile
Okay, added in the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.