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.
LuaEntityPrototype::max_distance/speed for underground belts
LuaEntityPrototype::max_distance/speed for underground belts
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: LuaEntityPrototype::max_distance/speed for underground belts
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.
Re: LuaEntityPrototype::max_distance/speed for underground belts
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!
Re: LuaEntityPrototype::max_distance/speed for underground belts
Why do you need to make requests for so many little things? All prototypes should be readable at runtime, job done.
Re: LuaEntityPrototype::max_distance/speed for underground belts
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.