Jump to content

Please fix the conveyor meter bug!


RoyalReborn
  • Branch: Live Branch Version: Windows Pending

As far as I know this bug is years old and renders conveyor meters useless since they will never carry out their purpose reliably

 

Bug description:

Conveyor meters will occasionally (to my knowledge randomly) output twice the intended amount.

Additional details:

The setup in the image is the most reliable I could think of but the bug will occur in other more simple ones like only timer sensor or only filter gate.

When working as intended the conveyor meter should send green signal once 'x' units went through it. The filter gate makes sure the green signal was at least 5s long before sending green to the "AND" gate. On the other side the timer sensor sends green for 1s every 20s. The expected process would be: conveyor sends 'x' units then turns green > filter gate checks green for 5s then sends green to "AND" gate > "AND" gate waits for timer sensor and then sends green to reset the meter

 

 

Captura de pantalla 2023-12-09 135700.png


Steps to Reproduce

Connect a conveyor meter reset port to a timer based automation system and allow it to run a few resets. Occasionally the meter will let through twice the amount it was ordered

 




User Feedback


The devs actually tried to address this issue in the "Packed Snacks" beta, though the attempted fix was reverted because it had some unsatisfactory issues.

The issue is that Meters use "truly continuous reset", as in every moment that the Meter receives a green signal, it resets Amount to zero. So it can start receiving a green signal, reset amount to zero, and emit 1 packet - all in the same 0.2 seconds. Then 0.2 seconds later, the signal is still green so it resets Amount to 0 again, so the first packet emitted will be surplus on top of "Amount". You can't make a green signal short enough that avoids this "double emit" without seriously risking that the Meter won't even notice the green signal.

This issue is pretty annoying to workaround, but workarounds involve ensuring that the Meter can't grab a packet while it is receiving a green signal. You could do this by  having a loop that can selectively bypass the input, or by powering off the Meter using a Power Shutoff while it is receiving a green signal (and a little earlier too since it takes machines a tick or two to realize they've had the power cut off), when powered off it can't grab packets, but it can still be reset.

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...