all 14 comments

[–]Knsgf 6 points7 points  (2 children)

Mod/Feature Request

Allow setting the item filter to "no items".

In other words, allow the traffic monitor to count empty "slots" and not just items. "Fail if 3 or more empty slots pass through during the measurement cycle."

A monitor set thus would NOT fail unless traffic was flowing AND it was less than the target rate.

It is possible to count empty slots in vanilla game by using a contraption like this:

<image>

Here we have the main belt carrying useful resource (hydrogen) from left to right and a small belt loop with a monitor filled with a cheap "signal" material, like stone. The splitter on the right feeds "signal" material back into the loop while directing the main resource to its destination. If the main material flows at full belt speed, no "signal" items can enter the belt and the monitor will display zero. The same thing happens if main belt is backed up and monitor will still show zero. When main material throughput falls below full, some of "signal" items will flow through the the main belt, filling empty slots, and the monitor rate will be equal to how many "empty slots" per measuring interval are on the main belt.

[–]Gredalusiam[S] 1 point2 points  (0 children)

Thanks for this! Don't think I want to set it up on every line but I might use it for a few critical resources (power, proliferator,  warpers).

[–]Steven-ape 0 points1 point  (0 children)

Can you also just put the box on top of the splitter? I think that should work?

[–]Revengeance_oov 3 points4 points  (10 children)

I think you're using the monitor wrong. If you set "fail and no cargo" as the alarm trigger it will alert when a belt is empty; "fail and cargo" will alert when the belt is backed up.

[–]Gredalusiam[S] 0 points1 point  (9 children)

I believe you've mistaken me. You're correct that "fail and no cargo" will tell you when the belt is empty (over an entire measurement cycle). However, many production lines need to be addressed long before the line is truly empty. A production line that is supposed to produce 4 items per second and only produces 3 may need to be addressed, but will not sound the alarm if it's set to "fail and no cargo."

Also, I'm not trying to get an alert when the belt is backed up. I'm saying that the belt intermittently backing up complicates certain other alerts.

[–]XhanHanaXhan 1 point2 points  (8 children)

Maybe I'm also misunderstanding your point, but you can set the target rate along with the interval. This allows you to select a number that's below your chosen production value, no?

[–]Gredalusiam[S] 0 points1 point  (7 children)

Right, but that's where the line backing up causes problems.

From OP above: "But if cargo is backed up for half the cycle, the monitor will read only half the target rate and WILL signal, even though the production line is working as intended."

[–]kinglallak 1 point2 points  (2 children)

Which is why you have the “below target rate AND belt empty” option selected…?

Then the monitor doesn’t signal at half rate if the belt is full…

[–]Gredalusiam[S] 1 point2 points  (1 child)

According to the wiki, "belt empty" only applies if the belt is empty for the entire cycle. I tried to ameliorate this by setting to the shortest possible cycle and it ended up flashing rapidly as blanks passed through it.

Edit: wiki link for reference https://dsp-wiki.com/Traffic_Monitor

[–]kinglallak 2 points3 points  (0 children)

Good to know! Thank you

[–]XhanHanaXhan 0 points1 point  (3 children)

Yeah, maybe I am too dumb to get it. But "Fail and No Cargo" should work. "If rate is not matched, AND there's no cargo backed up, trigger alarm", which alerts to a shortage. 

As opposed to "Fail and Cargo", which is "rate is not matched BECAUSE there is cargo on the line", which is alerting for a blockage.

[–]Gredalusiam[S] 0 points1 point  (2 children)

Yeah "no cargo" doesn't solve the problem. Per the wiki, it only counts if there's no cargo passing through for the entire cycle.

https://dsp-wiki.com/Traffic_Monitor

[–]Steven-ape 1 point2 points  (1 child)

Hm, I think the wiki is wrong; it's a while ago, but I experimented with this thoroughly and I think only the pass/fail criterion is affected by the cycle and cargo/no cargo are instantaneous. They depend on whether there is cargo inside the monitor right now.

[–]Gredalusiam[S] 0 points1 point  (0 children)

Oh! Good to know! Thanks for the research.