entity objects of items on transport line (0.12.27)
Posted: Sun Mar 20, 2016 3:25 am
Hi,
is there currently (0.12.26/0.12.27) a way of getting a list of entities on a transport line? it seems, former solutions of finding them with game.surface.find_entities and game.surface.find_entities_filtered do not work anymore. once an item is "inserted" into a LuaTransportLine, it is not findable by these functions.
It looks like currently a line transports the items (assumingly) inserted into it, but their entities can not be accessed from outside. But a line or a belt also transports items, which are in the same location, but (assumingly) were not inserted into the line (just somehow happened to end up on the belt). The entities of the later can be accessed via the find_entities functionality.
I can get name and count of items. But to shuffle them around in a proper way, i need access to the entities. e.g. access their health value. access their exact position on the line.
Any ideas?
Thanks
is there currently (0.12.26/0.12.27) a way of getting a list of entities on a transport line? it seems, former solutions of finding them with game.surface.find_entities and game.surface.find_entities_filtered do not work anymore. once an item is "inserted" into a LuaTransportLine, it is not findable by these functions.
It looks like currently a line transports the items (assumingly) inserted into it, but their entities can not be accessed from outside. But a line or a belt also transports items, which are in the same location, but (assumingly) were not inserted into the line (just somehow happened to end up on the belt). The entities of the later can be accessed via the find_entities functionality.
I can get name and count of items. But to shuffle them around in a proper way, i need access to the entities. e.g. access their health value. access their exact position on the line.
Any ideas?
Thanks