Compact circuits

Miniaturize a whole logic network into a single entity to save place (similar to factorissimo but for signals).

10 days ago
Circuit network
1 year, 5 months ago
Latest Version:
1.1.2 (10 days ago)
Factorio version:
Downloaded by:
5.57K users


This mod allows to miniaturize a set of combinators into a single combinator.

As in factorissimo, it adds a dedicated surface to edit the combinators but can run without it.

Main features

  • up to 16 input/output point between the internal combinators and the outer objects
  • possibility to pack the internal combinators into hidden ones and to free the editor surface
  • display of the internal lamps in the external combinator with differents size of lamp depending on the count of lamps
  • mini version 1x1 of the processor with 4 input/output points
  • infinite nesting of processor
  • external display of the color of the internally connected wire to input/output pole
  • can set the direction of input/output point for external display
  • fully support of blueprint , copy/paste
  • copy/paste betwen external input/output points to easily configure the interface (exchange the internal io point and also the connected wires)

To use it:

  • search the "Compact circuits" technology, it add a new item: the miniaturization the compact "Processor"
  • craft a processor and put it the map
  • look at the input/output point around the processor, they are numbered from 1 to 16
  • click in the center of the processor and enter the editor mode
  • add internal input/output pole (click on the left button and then put it on the map). It is connected to the external input/output points.
  • maybe, select the internal input/output point to change the index
  • you can also addd a name to a point in order to easily find the matching external point outside the editor
  • build your circuit network in the editor: you can add constant combinator, arithmetic combinator, decider combinator, power pole, input/output pole, and lamp,
    text plates ( and industrial display plates (
  • exit from the editor
  • connect the external input/output point to the rest of of the base
  • you can see the values of the network in the editor
  • once the circuits works as expected, checked the button "Enter the packed mode".
    When you exit the editor, the associated surface is destroyed to save space.
    And you cannot see the real time values in the editor anymore but the network is working with small hidden combinators in the main surface.
    In this mode, if you add lamps in the editor, you will see them outside the editor on the processor entity.
    You can switch back to the non packed mode at any time.
    The lamps are not displayed in non-packed mode

Display combinators

It is now possible to add special display combinators inside a processor. The display can be inside or outside the processor (in packed mode)
It includes:

  • a combinator to display the value of a signal
  • a combinator to display the sprite of the signal with the maximum value
  • a combinator to display a text
  • a meta-combinator that can change the input or the output of another combinator (the signal from the red wire is applied to the combinator connected to the green wire)
  • a combinator to display a set of signals in a table

For the first three combinators, the display can be modified by virtual specific signals X (position in pixel), Y (position in pixel), S (for scale) and the colors.

Input combinators

Special constant combinators can be put inside a procssor. Each are related to an input component:

  • text field to input an integer value
  • a slider
  • one or more toggle, each toggle can set or reset a bit of an integer value
  • a drop down list
  • a component to choose a set of signals
  • a component to input a set of signals with their value

When you <CONTROL> <CLICK> on a processor, all input component are gathered in a form and can be used to modify the internal state of the processor.

A processor to display a single signal:



  • Allow to change the color of the displayed elements
  • Allow to change the refresh rate if display combinator

Models : allow to update a set of processor in one click

  • create a new model name
  • set the name to a set of processor
  • modify one processor
  • click "apply" to apply the modifications to all processor of the same model

Integration of other combinators

The mod contains an interface to integrate other combinators:

  • define a "packed" version of the combinator (and any other entities used) with no display and with the properties:

    packed_entity.flags = { 'placeable-off-grid' , "hidden", "hide-alt-info", "not-on-map", "not-upgradable", "not-deconstructable", "not-blueprintable" }
    packed_entity.collision_mask = {}
    packed_entity.collision_box = nil
    packed_entity.minable = nil
    packed_entity.selectable_in_game = false

  • define a remote interface in the external mod with methods:

    get_info(entity) : get private information on an entity in a structure (properties name, index, position, direction are reserved)
    create_packed_entity(info, surface, position, force) : create a packed entity with info (return from previous call), surface, position, force
    create_entity(info, surface, force) : create a normal combinator with info, surface, force, info.position, info.direction

  • call the Compakt Circuit remote interface:"compaktcircuit", "add_combinator", {

    name = <name of the combinator>,
    packed_names = { <list of used packed combinators> },
    interface_name = <interface name of the external mod interface>


  • An example of a very simple combinator