Math Co-Processors

Mod that adds a new combinator for math instructions like maximum, minimum, random,...
3 days ago
0.14 - 0.17
1424
Owner: Cobaltur
Source: N/A
Homepage: N/A
License: MIT
Created: 3 years ago
Latest Version: 0.17.5 (3 days ago)
Factorio version: 0.14 - 0.17
Downloaded: 1424 times

The mod adds a new combinators for
math instructions e.g. maximum, minimum, random and
signal sets operations e.g. difference & intersection.

The coprocessor read all red or green (not both) signals that are available at the output connector circuit.

Types:

  • Math.max - returns the first signal with the highest count.
  • Math.min - returns the first signal with the lowest count.
  • Math.rand - returns randomly one of the signals
  • Math.median - return the median value on virtual signal M
  • Math.average - return the average value on virtual signal A
  • Math.count - return the number of signals on virtual signal N
  • Math.sum - return the sum of all signal values on virtual signal S
  • Set.difference : symetric difference, signals which are in red AND green will be filtered
  • Set.intersection: result set contain signals which are on red AND green circuit - values are added.

Note: Keep in mind signals with value=0 are not on the circuit - therefore not part of the array - so average and median may have not the expected results.
(If you need all signals on a tie. Use the value within a combinator and its EACH function)

Interval:

At the moment every 60 ticks (once per second)

Placement:

The coprocessors looks at the opposite side of his output connectors for a decider- or arithmetic combinator or an electric pole. It must be really close and the direction is important.

blueprint sample 0.17.4
<code>
0eNrNWG2OmzAQvYt/Q4WBQMJVqhUyMMmOBDYyJtpoxQF6i56tJ6mBFGgSEpOPbv9EmJjxmzczj5d8kiSvoZTIFYk+CaaCVyT6/kkq3HGWt/fUoQQSEVRQEItwVrQrtt/ZqSgS5EwJSRqLIM/gg0S0ebMIcIUKoY/ULQ4xr4sEpN4wxKjqpFJMoeA6bikq7C71iTqM7X1bWeTQX+joGheHtN1QtTto+yEhmx6AehXonSjTGlW3dJu3pmmsMwzugKFAPs3jDId3BKEhZCh7BP0xgisp8jiBd7ZH/ajev8VcgTTiLxf6VKFwD6TLrm75t6kz5fEScm9kr2B5bkOuMUlM7VLkcA7fH+EbMriZocwfDm5bRDGurvJmr7uTnb95cx/mTUnGq1JIZSeQqwl3dMKcdTPMllXKNojlGsSCj1JCVZmE8zS5xpWgq5lSrIajM9xer0IwVOFB3pFXIPXmSVreIsYnwz6GWL2S6AvMBSNzkGIG8ip79ChBjtHwHyPG+rsMh+JuUVYqPktsj1LV+s5IT7fDBpa+9wn1M6YPbxdFyWSHMSK/fvzUT4lalfVdcctD3LEVb6UoYuQ6DImUrKGZ6cydBOCXVMIi7lznzjRuOMDSFcyuc98LF22+TGnX4zuCfVzF6izokgXAE9ydyPuIP7iFfrNMrv1n6cST9NksdxPRuFn+RZrsTajuOt05vbFp/c/FmTnxJnND0kKbZeGscMEfjVrikube8ZQa+6Lwy+eTusYD+iIv8tCAUu8uQ+X+M0MVLhrYq/7AfdiRjXSuH/cam9mJvzi3sz6M+pP0lYkRO6me/7rqrZ9oh8NJIS/38uhIC8iwLm6p1pEOai5Z/qysUm+uPIGxmtEBzlOrc7e0LTBK4Wsa6zFtM/dO/e9r/7/yTnSzsJ39IYlFL2Dd0R3qaPIfjEX2OsUudOg5dL0JAoeGTfMbc5D6ag==</code>

Inspired by
https://mods.factorio.com/mods/Optera/Inventory%20Sensor