this post was submitted on 30 Sep 2023
9 points (100.0% liked)

Factorio

1106 readers
65 users here now

A Lemmy community for the game Factorio made by Wube Software.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (2 children)

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

[–] [email protected] 2 points 1 year ago (1 children)

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.

[–] [email protected] 2 points 1 year ago (1 children)

Ooo that sounds good! I'll look into making a timer!

[–] Wiwiweb 2 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 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!

[–] [email protected] 1 points 1 year ago

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