Newly constructed machines wait for their modules

by Quezler

You probably wouldn't want machines with productivity or quality to start crafting prematurely.

Utilities
2 days ago
2.0
367
Manufacturing Blueprints

Changelog

Version: 1.1.17
Date: 2024. 12. 16
  Info:
    - Switch from checking .active to .disabled_by_script
Version: 1.1.16
Date: 2024. 11. 23
  Info:
    - Fix crash when placing an assembler that crafts a parameter
Version: 1.1.15
Date: 2024. 11. 15
  Info:
    - Suggest the presence of newsletter-for-mods-made-by-quezler
Version: 1.1.14
Date: 2024. 11. 14
  Info:
    - Require the presence of newsletter-for-mods-made-by-quezler
Version: 1.1.13
Date: 2024. 11. 06
  Info:
    - Fix crash when cloning an entity
Version: 1.1.12
Date: 2024. 11. 04
  Info:
    - Fix race condition when swapping the last waiting for module with another to wait for module
Version: 1.1.11
Date: 2024. 11. 03
  Info:
    - Fix crash when inserting module ghosts into an upgrading entity
    - Fix crash when the entity was disabled by control behavior
Version: 1.1.10
Date: 2024. 11. 03
  Info:
    - Fix crash when the recipe has not been researched yet
Version: 1.1.9
Date: 2024. 11. 03
  Info:
    - Fix crash when trying to wait for modules on a frozen building
Version: 1.1.8
Date: 2024. 11. 02
  Info:
    - Fix assertion error message and include actual status in debug
Version: 1.1.7
Date: 2024. 11. 01
  Info:
    - Remove some nested tables from the debug message
    - Use serpent.block, there's enough room on the dialog
    - Do not sort the serpent keys
    - Try to clear custom_status & active upon entity death
    - Clear the "waiting for modules" for new entities so revived ghosts do not already have it
Version: 1.1.6
Date: 2024. 11. 01
  Info:
    - Centralize assert entity debug information
Version: 1.1.5
Date: 2024. 11. 01
  Info:
    - Fixed pending beacon module requests from preventing a table getting cleared
Version: 1.1.4
Date: 2024. 11. 01
  Info:
    - More helpful assertion texts
Version: 1.1.3
Date: 2024. 10. 31
  Info:
    - Fixed "the foundry crash" (speed module got delivered later than the productivity)
Version: 1.1.2
Date: 2024. 10. 31
  Info:
    - Try and debug a failed assertion
Version: 1.1.1
Date: 2024. 10. 31
  Info:
    - Fix crash when updating to 1.1.0
Version: 1.1.0
Date: 2024. 10. 31
  Info:
    - Begin listening to item request proxies being created
    - Abuse created triggers firing before on_tick
    - Support pausing existing assemblers with new quality/prod requests
    - Pickup requests screw with the tick order, so put new_proxies in storage
    - Do not just check for the presence of the module request, confirm its for a module slot
    - Sleep again when the requested module does not replace a module we wait for
Version: 1.0.2
Date: 2024. 10. 30
  Info:
    - Remove assert that crashed everything other than assemblers
Version: 1.0.1
Date: 2024. 10. 30
  Info:
    - Fix assembling machines requesting only speed/efficiency always freezing
Version: 1.0.0
Date: 2024. 10. 30
  Info:
    - Mod portal release
Version: 0.0.2
Date: 2024. 10. 30
  Info:
    - Cleanup prototype code
    - Add the "waiting for modules" status
    - Unfreeze the crafting machine when the proxy dies
    - Check the proxy in case it is manually edited (or it had a mix of modules to begin with)
Version: 0.0.1
Date: 2024. 10. 29
  Info:
    - Initial commit (initial control.lua done on the 30th)