LuaEntityPrototype::max_distance/speed for underground belts

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

LuaEntityPrototype::max_distance/speed for underground belts

Post by prg »

What the title says: I'd like to be able to get at the speed of belts and more importantly max_distance of underground belts at runtime. I don't see a sane way of doing this currently.

Seems like access to speed was already requested with a comment that this should be pretty easy to implement, but this hasn't happened yet as far as I can tell.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: LuaEntityPrototype::max_distance/speed for underground belts

Post by sparr »

Myself and viewtopic.php?f=25&t=12420 would also like access to this info. Not just for underground belts, normal belt speed is needed too.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: LuaEntityPrototype::max_distance/speed for underground belts

Post by prg »

While you're at it, max_underground_distance for pipe-to-ground would be great, too!
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: LuaEntityPrototype::max_distance/speed for underground belts

Post by Zeblote »

Why do you need to make requests for so many little things? All prototypes should be readable at runtime, job done.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14822
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntityPrototype::max_distance/speed for underground belts

Post by Rseding91 »

Done for 0.13:
changelog wrote:Added LuaEntityPrototype::belt_speed and underground_belt_distance read.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”