• drekly@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    It’s for loading a rocket in SE - There’s a delay in when the rocket takes off and when it starts filling the storage at the other side, where the signal says it needs all the resources it’s just sent out. The bots start arriving with all the items it needs, then the items that were launched land on the other side, get fed into the signal, and now it doesn’t need them, so I want a blacklist filter to unload what it doesn’t need.

    Unfortunately it means right now that I’m unloading EVERYTHING except the first four items in the signal

    • Deestan@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Oh, I see! In my SE, I use a timer to stop the request for two minutes after launching. I am thinking to replace it with a state machine, like HAVE_REQUESTS (request active), when requests are loaded it goes to LAUNCH_READY (requests inactive), and when receiving pad signals it has cleared the pad and low bot activity it resets to first state.

        • Wiwiweb@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          I came to this community late, but a timer is basically the common solution. It takes about 23 seconds between a rocket starting to launch and the items appearing in the landing pad.

          • drekly@lemmy.worldOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I’ve been too busy to work on this yet, so you’re not too late for me! That’s super useful information thank you!

    • dohju@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      You could also just fill plain old normal chests with your requests and then just use a -1 to regulate requests