Train Wagon Combinators deprecated


Deprecated: It's not efficient, though it still works. Would rather have people use better mods. Read the output of wagons stopped at stations, in different ways. Warning: UPS Heavy, mostly a toy mod

Content
3 years ago
0.17 - 1.1
90
Circuit network
Owner:
Honktown
Source:
N/A
Homepage:
N/A
License:
The Unlicense (Public Domain)
Created:
4 years ago
Latest Version:
1.125.0 (3 years ago)
Factorio version:
0.17 - 1.1
Downloaded by:
90 users

Warning: UPS Heavy, mostly a toy mod
Gui opens when mod is installed or on reconfigure. Default key (CONTROL + R) is shown in lower left, or unknown key.

Open a stop or combinator to record it in the GUI. Forgot to mention that in the changelog.

Read from indexed wagons assigned to constant combinators:

[1] Completely empty spaces.
[2] Empty spaces and empty stack room
[3] Current inventory.

Wagons: 1-5 and nil to "empty" a combinator's memory.

The connection is "wireless", and only one combinator can be assigned per wagon index. When train stops in station, combinator turns on and starts outputting, and when train leaves station, station dies, wagon dies, etc, combinator is turned off. Most of the actions are trigger-driven, so to simplify code, a cleaning function sweeps through every half-hour to check for invalid entities, instead of finding every condition the entities could die/become invalid. There is normal detection for invalid entities where needed, and table mostly cleans itself automatically.

Note: there is no detection of entities moving surfaces, being cloned/moved, etc. Don't expect this to work with mods that do that: Warptorio's main platform would be the first that comes to mind.

Uses locale strings where possible. Otherwise english.