Ghost Scanner2

by Tiavor

Adds a combinator reading ghost requests from the logistic network it's placed in. -> now with better performance <-

Content
2 years ago
1.1
5.30K
Circuit network

Changelog

Version 2.0.2
Date: 2022-01-22
  Bugfixes:
    - fixed short signal duration (flicker) on large scan zones
	- fixed no signal on large scan zones
Version 2.0.2
Date: 2022-01-22
  Bugfixes:
    - (probably) fixed a nil-value error in get_ghost_as_signals line 359 when radius <= 0 (modded roboports?)
Version 2.0.1
Date: 2022-01-20
  Bugfixes:
    - fixed a nil-value error in add_signal
Version 2.0.0
Date: 2022-01-20
  Changes:
    - fixed missing ghost signals
    - added migration from GhostScanner 1.6.x
    - complete rework of control.lua to improve performance
    - added settings: scan-areas-per-tick, which can drastically increase performance, but reduces time inbetween updates of each scanner
V previous code/versions by Optera V
Version: 1.6.5
Date: 2022-07-22
  Bugfixes:
    - removed duplicate info icons
Version: 1.6.4
Date: 2021-12-10
  Features:
    - option to show hidden items (default off)
  Changes:
    - replaced '_' in setting names with '-'
    - added info images to settings with mouse over information
Version: 1.6.3
Date: 2021-01-31
  Changes:
    - removed requirement for Advanced Electronics
    - moved group after base circuits once again
Version: 1.6.2
Date: 2021-01-24
  Bugfixes:
    - fixed tech icon size
Version: 1.6.1
Date: 2020-11-26
  Features:
    - requests are scanned in order over all cells instead of per cell
Version: 1.6.0
Date: 2020-11-26
  Features:
    - updated to Factorio 1.1
Version: 1.5.8
Date: 2020-06-26
  Changes:
    - use on_entity_destroyed to generate uid for proxies
  Bugfixes:
    - support proxy_target = nil
Version: 1.5.7
Date: 2020-05-22
  Features:
    - holding ghost scanner displays logistic coverage
Version: 1.5.6
Date: 2020-04-28
  Features:
    - option to disable cells count signal
Version: 1.5.5
Date: 2020-04-22
  Features:
    - report number of cells (roboports) in Logistic Network
Version: 1.5.4
Date: 2020-03-30
  Features:
    - report amount of cliff explosives, does not account for bots optimizing use of explosives
  Changes:
    - area check for request proxy and tiles uses old, faster method, works only with collision boxes <= 1x1
Version: 1.5.3
Date: 2020-03-08
  Bugfixes:
    - scanner counts ghosts outside constructible area if they protrude into it
Version: 1.5.2
Date: 2020-03-08
  Bugfixes:
    - reduce search area slightly so find_entities_filtered doesn't include ghosts sharing construction area bounds
Version: 1.5.1
Date: 2020-01-21
  Bugfixes:
    - fixed mipmap warning
Version: 1.5.0
Date: 2020-01-21
  Features:
    - updated to Factorio 0.18
Version: 1.4.9
Date: 2020-01-13
  Bugfixes:
    - 1.4.8 introduced nil index errors with tile ghosts
Version: 1.4.8
Date: 2020-01-13
  Features:
    - even more performance tweaks by OwnlyMe
Version: 1.4.7
Date: 2020-01-13
  Features:
    - increased performance with lookup table for items_to_place_this, thanks to OwnlyMe for letting me know about this
Version: 1.4.6
Date: 2019-09-20
  Features:
    - report items required for upgrades
    - handle script_raised_built and script_raised_revive
Version: 1.4.5
Date: 2019-08-10
  Features:
    - ghost scanners can be turned off like regular constant combinators
Version: 1.4.4
Date: 2019-06-09
  Features:
    - added option to round item counts up to full stacks
Version: 1.4.3
Date: 2019-05-22
  Changes:
    - Module requests for existing entities are aggregated after entity ghosts and their module requests.
Version: 1.4.2
Date: 2019-04-15
  Changes:
    - moved scanner into subgroup with other combinators unlocked by circuit network 2
Version: 1.4.1
Date: 2019-03-09
  Changes:
    - changed recipe to coper wire and electronic circuits
    - moved recipe into circuit combinators 2
Version: 1.4.0
Date: 2019-02-27
  Features:
    - updated to Factorio 0.17
    - replaced mined.result hack with 0.17 functionality
Version: 1.3.1
Date: 2019-02-03
  Bugfixes:
    - Limit Scan Results is applied against unique entity count instead of sum of entities found across logistic cells
Version: 1.3.0
Date: 2019-02-03
  Features:
    - Limit Scan Results can be turned off by setting it to 0
  Changes:
    - Limit Scan Results counts per scanner instead of per logistics cells
Version: 1.2.1
Date: 2019-01-07
  Features:
    - correctly count rails for curved rail ghosts using mined.result as workaround until 0.17
Version: 1.2.0
Date: 2019-01-06
  Features:
    - improved load distribution for few scanners using on_nth_tick
Version: 1.1.0
Date: 2018-10-19
  Features:
    - added setting limiting scan results for better performance
  Bugfixes:
    - skip logistic cells with 0 sized construction radius
Version: 1.0.1
Date: 2018-09-29
  Bugfixes:
    - recipe missing when circuit network had been researched
Version: 1.0.0
Date: 2018-09-16
  Features:
    - read item and tile ghosts from logistic network
    - read item requests (modules) from logistic network
    - runtime setting update frequency
    - runtime setting invert output