Max Rate Calculator


Calculates maximum consumption/production rates of assemblers, plants, etc. Current version 200.0.49 supports Space Age but NOT anything to do with Quality - that's on the way. Also, idle Recyclers present 0.0 for each product quantity. Active recyclers are ok.

Utilities
6 months ago
0.15 - 2.0
144K

g previous_recipe for smelters

5 years ago

Hi, thanks for making this great mod! I noticed that the mod says smelters don't have a recipe after they've finished smelting their ingredients. Are you aware of previous_recipe? See

https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.previous_recipe

I replaced every occurrence of entity.get_recipe() with (entity.get_recipe() or entity.previous_recipe) in your code and it works great now.

5 years ago

Thanks, I’ll put that in!
I’ve been trying to come up with a way to look at neighboring machines to guess at the recipe, but your solution will help nicely.

New response