Space Exploration Zone Combinator

by berggen

A combinator that outputs detailed information about the Space Exploration zone in which it is placed.

Content
1 year, 1 month ago
1.1
257
Circuit network
Owner:
berggen
Source:
https://github.com/juckele/zone-combinator/
Homepage:
N/A
License:
MIT
Created:
1 year, 1 month ago
Latest Version:
1.1.0 (1 year, 1 month ago)
Factorio version:
1.1
Downloaded by:
257 users

Combinator that outputs detailed information about the zone in which it is placed. Inspired by Baisius's discord suggestion.

Features

  1. Introduces 4 new virtual signals: 'Day Length', 'Solar', 'Threat', and 'Robot Interference'.
  2. Introduces a special 'zone combinator' that's effectively a constant combinator that is automatically built with a number signals describing the zone.
    1. Zone id, set on a channel corresponding to the zone type.
    2. Radius, set on the 'Radius' signal.
    3. Day length, set on the 'Day Length' signal and measured in ticks.
    4. Solar, measures solar efficiency with value 100 = 100%.
    5. Threat, as presented by the Universe Explorer, value 100 = 100%.
    6. Water, if present a water signal of 1 is set (waterless is just the lack of water).
    7. Biter Meteors, if present a meteor signal of 1 is set.
    8. Plagued, if present a plague rocket signal of 1 is set.
    9. Life Support, if needed a life support canister signal of 1 is set.
    10. Core Fragment Type, if present a core fragment of the appropriate type will be used as a signal with value 1.
    11. Robot Interference, either wind or radiation is set on a new virtual signal and measured as presened by the Universe Explorer with a 100x scaling factor (1.00 = 100)
    12. Resources, frequency, size, and richness are multiplied together, value 10,000 = 100%.

Limitations

  1. Many of the units the combinators put out are capricious. Day length is in ticks, threat and solar are in percent (100 = 100%), resources(ore/oil) are in
    1/100 of a percent (10k = 100% on mapgen settings), radius are in game units, robot interference are in in game units x100, flags like water, life support,
    plagued, and core type are flags with a value of 1 if present.
  2. If a plague rocket converts the primary resource of a zone from vitamelange to coal, the zone combinator primary resource output will not update until it
    is rebuilt.

Combinator Mask

  1. The source for this mod contains a mask for constant combinator tint for its entity and item - it should make adding different colored combinators easier in other mods.

Credits

  1. test447 - code, combinator mask
  2. berggen - code
  3. https://emojipedia.org/twitter/twemoji-15.0.1 - virtual signal emoji