Logistic Formulas

by tenerio

Logistic groups computed by formulas from other groups, logistic networks and recipes: sums, scaling, quality shifts, stack rounding, request limits and import locations, organized in sheets and kept up to date as their sources change.

Utilities
32 minutes ago
2.1
0
Factorio: Space Age Icon Space Age Mod
Logistic network
Owner:
tenerio
Source:
https://github.com/Tener/logistic-formulas
Homepage:
https://github.com/Tener/logistic-formulas
License:
MIT
Created:
32 minutes ago
Latest Version:
0.1.0 (32 minutes ago)
Factorio version:
2.1
Downloaded by:
0 users

Logistic Formulas

Logistic groups computed by formulas. Requires Factorio 2.1 with Space Age.

Each formula computes one logistic group from constants, other groups, logistic network contents and recipes, and keeps it up to date as they change. Chests, combinators, cargo landing pads and space platform hubs use that group like one set by hand.

(def "mall"      {transport-belt 200 fast-inserter 50 pipe:rare 10})
(def "mall rare" (quality-up (group "mall") 2))
(def "missing"   (keep-positive (subtract (group "mall") (network "Main" storage))))
(def "line x4"   (round-to-stacks (multiply 4 (ingredients electronic-circuit 1k))))
(def "to orbit"  (import-from (set-max (group "mall") (multiply 2 (group "mall"))) nauvis))

Getting started

Open the editor from the shortcut bar, the corner button or Ctrl+Shift+G (by default). Hovering a function there shows its syntax, parameters and an example, and the ? beside it opens its Factoriopedia page.

The Logistic formulas Factoriopedia tab holds the full reference and a guide: sheets and updates, the language, request settings, the editor, and patterns for malls and space platforms. Tips and tricks has a short introduction.