Provide length of LuaTransportLine

Coming soon!
Post Reply
Atria
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat Jul 09, 2016 10:25 am
Contact:

Provide length of LuaTransportLine

Post by Atria »

LuaTransportLine allows placing items on the line but doesn't provide range of the "position" argument. We can check if item can be inserted to specific position, but when it fails we don't know if it failed because of another item blocking the position or that I tried to place item after then end of the line.

Suggestion: Provide new attribute which gives highest valid value of "position" (with 0 being expected lowest value). Basically a length of the transport line.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2250
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Provide length of LuaTransportLine

Post by boskid »

This is implemented for 2.0 as LuaTransportLine::line_length.

Post Reply

Return to “Implemented for 2.0”