Inserter Throughput Lib


A library for other mods to calculate and estimate inserter throughput in different setups.

Internal
9 days ago
1.1 - 2.0
5.10K

Changelog

Version: 2.0.0
Date: 2024-10-26
  Changes:
    - Update to Factorio 2.0, note that belt stacking support is not implemented
    - Add support for quality to inserter_data_based_on_prototype
Version: 1.1.5
Date: ????
  Bugfixes:
    - Fixed pickup_from_linked_belt not actually using/storing linked_belt_type
Version: 1.1.4
Date: 2024-02-17
  Minor Features:
    - Added vector.is_zero
    - Added inserter_throughput.is_unreasonable_definition
  Changes:
    - Added 'direction' field to InserterThroughputInserterDefinition
    - Changed vector.set_length to take an optional precomputed current length just like normalize
    - Changed vector set_length, normalize, get_radians, get_orientation to error on zero length vectors
    - Added set_length_safe, normalize_safe, get_radians_safe, get_orientation_safe
  Bugfixes:
    - Fixed estimate_inserter_speed erroring on zero length pickup or drop vectors
    - Fixed estimate_inserter_speed and is_estimate erroring on weird inserter and belt speeds
Version: 1.1.3
Date: 2024-01-30
  Changes:
    - Added support for Factorio versions 1.1.99 and lower. (1.1.100 is where belt_shape got added)
Version: 1.1.2
Date: 2024-01-28
  Bugfixes:
    - Fixed error for inserters "picking up" from rails
Version: 1.1.1
Date: 2024-01-28
  Bugfixes:
    - Fixed error when estimating speed for inserter picking up from undergrounds, loaders or linked belts
Version: 1.1.0
Date: 2024-01-28
  Features:
    - Added api for utility, definition creation and estimation functions
    - Added type annotations as a form of documentation
    - Added readme.md as another form of documentation as well as an overview
    - Added calculation for picking up from inventories and ground
    - Added calculation for dropping to inventories, ground and belt connectables, except for loaders
    - Added estimation for picking up from straight and curved belts
    - Added capping throughput to belt speeds, with partial handling of dropping to splitters