Creates a feature-rich train logistics network through cybernetic combinators. With just this mod you can coordinate the economic inputs and outputs of your entire megabase.
For a provider station I currently "read the train contents", multiply it with -1 and combine it with the current request. Inserters that fill the wagons are enabled as long as that's > 0.
Is that how it's supposed to be done? Or is there maybe a "Remaining iron plates to be loaded" signal I can get?
Just thought about it a bit more, wouldn't it be useful to provide the requested content (potentially optional) as negative? Then we could save one arithmetic combinator by inverting the condition.
Just thought about it a bit more, wouldn't it be useful to provide the requested content (potentially optional) as negative? Then we could save one arithmetic combinator by inverting the condition.
At the provider side, we need positive signals to set the filter for filtered inserters.
Sorry I still don't get why you want negative signals at provider. You need a positive signal to activate the inserters, and a negative signal to counter the signal + stop it once the positive signals have been fulfilled.
If requested content is positive and train contents are positive you can't subtract them without a combinator...
That's why
Just thought about it a bit more, wouldn't it be useful to provide the requested content (potentially optional) as negative? Then we could save one arithmetic combinator by inverting the condition.
So filter inserters have this amazing setting called "set filter". When enabled the filter is set to every positive signal on the circuit network. By having providers output a positive signal you can just kind of make a stop using this that works and is highly blueprintable. It doesn't even necessarily have to use an arithmetic combinator, although it works better with one.
What about adding virtual arithmetic combinator with (multiply -1) in function on_station_built And connect combinator input to “stop” and output to “comb” . This way cybernetic combinator will output precise amount to load and unload. In case of unload station there is no need to set any combinator signal as it will be already train contents multiplied by -1. This should not be performance intensive and also solves problem with overloading by waiting 1 second of inactivity.
This is a setting that shouldn't be per station I feel, it's better if there is one universal standard all stations and blueprints of stations conform to. That way the designs just work, and you don't have to wrap your brain around inverted signals every time you make a new station design, or use someone else's station design.
There will be a setting for backwards compatibility that defaults to false for new maps.