Possible bug in get_contents() on LuaTransportLine
Posted: Thu Jan 03, 2019 9:59 am
I'm trying to get content and quantity of items on belt with following command:
while hovering the cursor over belt with content. According to docs, return value should be in form of dictionary string → uint
but I'm getting following error:
"4" seems to be quantity of items, but I was expecting something like
Is there a bug in this command, or am I just using it wrong?
I'm running Factorio 0.16.51 (build 36654, linux64, alpha) with Bob's mods and some QoL mods, but it keeps happening on every item on belt. If you think it might be bug, not misusing, I'm happy to provide log file with modlist.
Code: Select all
game.player.selected.get_transport_line(1).get_contents()
but I'm getting following error:
Code: Select all
1: Unknown key: "4"Code: Select all
"item-name": 4I'm running Factorio 0.16.51 (build 36654, linux64, alpha) with Bob's mods and some QoL mods, but it keeps happening on every item on belt. If you think it might be bug, not misusing, I'm happy to provide log file with modlist.
