Is there any way to make this circuit condition self start? Preferably without combinators. Details in comments.

Question
Is there any way to make this circuit condition self start? Preferably without combinators. Details in comments.

Posted Jun 17, 2022, 12:24 AM UTC

916
not_a_bot_494optemized for irrelevant metrics•

Add a constant combinator with one of everything you want to have and increase the constant to 11 instead of 10.

7
purple_pixie:red-wire:•

You could add "or not (anything > 10)"

But that's not without combinators I don't think, I don't really remember how train logic works

It does only add a few combinators, though there's almost certainly a more efficient way to do it

3
-Sa-Kage-•

Add a decider combinator, that checks if walls = 0. Output 1.

Btw, you should not enable/disable stations as this can make trains stop midway when demand is fulfilled and station is disabled. Better set train limit to 0/1 (or even the number of trains required to fill). Or set train limit to 1 manually so there will be only 1 train heading to the station

3
CaesarWrapOP•

I want to make this self-defending, -repairing and -supplying railway. The station is set to enable if any signal from the chests is less than 10. That will trigger the resupply train.

The problem I ran into is the signal [Anything] returns false if there are no signals. That means the station won't enable when the blueprint is first placed and all the chests are empty. The chests need to have at least one item in them and then the system works. I want it to work right out of the blueprint though. Any ideas?

2
DRT_99•

I used a constant combinator outputting the items I wanted as negative (so like -50 repair packs, -25 walls, etc) and enable the station if anything is less than 0

1
JR_the_Turtle•

Change the "anything" to "everything" and it should work iirc

2
CaesarWrapOP•

That won't work. It won't resupply anything until everything is low. I predict repair packs will deplete most steadily. I can't wait to resupply repair packs until everything else is low too.

2
JR_the_Turtle•

0eNrdV8tu2zAQ/BWCZyu1Xn6hPfWWYxCghyYQKHEtE5VIgaSSGob/vUvZiRVVjiUdeuglAUXtcHZmuWsdaFrUUGkhLd0cKAeTaVFZoSTd0MedMOSVGVIyDkRIosFUShogVpH6y3cGhukfmlUk3ZP7B1trW8CTJE/SvkXanVavEt/Pwe5AOxBGMlVXBRC1JSWujSJ7VZOMSVJplbK02BOuSArWgr5rwJj8ZchWaSTAuJA5wgJpc51RkSExuvl5oEbkkhUuG7uvANN4EdrW+GRGJSvdg9Mb3j09Ypzk8Jtu/ONsRORDKzLojRQWykuYZqJohYRDQlSqKqVtKyw6Ps8oSCusgFOqzWKfyLpMQWMS79EWT5SesapCxEoZcXL0QF2qy3BG90g8xqQpFxqy0+5iRlFEq1WRpLBjL0JpF5IJndXCJrjH33G2QhubDBbs0aXhHLLMFZrvFmXFNLPuDPqt2T6fAxJLABIujPtPN1bXMKMGJE+sSprM6GbLCoNPm1Xi8qyAj6Jz4iNPuRsX47s/uQaQbW0FR7rzCzu3bixv7Qdxd//Z4WOy54tEWwFvZgUXUi6LfGe9pkw+8Sv86FfQgxoOR42Ho0bDUZfDUePhqOvhqIvBqCt/OOpyOOoIt1bDUUe4tf67ifRIujgDLo49EK7izxgcMsFBe3hhUyGbC/uJQdFdPKipnFEvTcVM6CpM7nHQyLzTXOad7vIVA1Vtq3p8w6r2yLCWNtlqVSZCIsa594xrINi68f3g+guuY/T5cGnpJXBRlx4UeKIWmVcpbI59Tty9lUqMXvRhXjpPoWTu4XTlwD2Bc13jxO3DXH3AvFmAftg6IRfGIt1sB8a6iaRZDr2XsXPGGHE/tmN/dU3Ndh8DKE6k+sjMJ5MJu2Q6s8O/MTuuVsKlW25FgT59ZlhLzOhKESzGwM1vwi0nOB5OFnnVFTG4ptpqAq9gMq9l1/zwGq/1GPnDW/IH8zFwwU04f4Jq8VTVrpoXBBNoRJNpdG8munmFVzhG7fim2tEYuOgmXDxxdC/+5eiGF9D/1/DGb7PmC27T+qKe0YKlgJRpLb1aOpbca2+jCuY0Rld+tFwHyziOoniJv8n+AE4qO1o=

I made a basic solution i think

2
CaesarWrapOP•

I'd like to avoid combinators if possible. I don't want them taking up a stack space in my construction taxi. If I can't do it without combinators I'd rather just drop a single wall into the wall chest to prime the system right when I built it.

1
JR_the_Turtle•

I made a slim design that saves the second unnecessary combinatior

Without using circuit networks I cant think of a way to get it to work

As for the taxi space, if it matters why not switch the long inserter into a filter inserter to save space?

Here you go

0eNqdV1tzqjoY/StOXrfuchFB57yoVVustUqF1tMzDpcIUUwwBCvt9L+foO5e3NqiLzoJZH0ra4X1wStwwgRGFGEGaq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B2/IcuMQ058hPcCeihZlP68UJQiwuPvkBe//xwWhbtxCPMje0KC/VJg80bilRCOIWXwoL/aF8wfj6Aof6rgo5hxum4AY5b1Hmr78ODjuFfjFHGLXye0Y2p+TjIIwy2pQ2SEs8nI+2T2usNRpz/ycIpC7sN3hnwSq3zE5MopcMKPcOoZjspni6jtiShJx1TTzuAlnc1L3TdXPsareor88k/yS8IpcNKPcOIZqinnqnbUPEk6g0b5bBrivnnqMV7yKWorP6pdPgWu/BWOv9tvvgBqnz42iyC0Hci7GJB+v0BK+ARvhfE2jjWxrFYlVVHKZUXl3f1/qKDlCw==

2

maybe the construction taxi is to small?

The factory must grow, you need a lot of material for it ;-)

I personally would add a combinator to have a blue print which is "self starting". Just to be able to build it with bots (from a spidertron). Player time is the only limited resource (beside CPU...), I don't want to spend it with travelling around to build walls or drop single items in a box to call a train. ;-)

My solution works with combinators to add a hysteris. a constant combinator defines how much items of each type should be placed in the box and if the stock falls below 50% the station gets enabled

But as you are there to build the station manually:

Add a constant combinator (with "wall=1") to the blueprint. build it from your personal grid and remove it again after the train is there.

1
JR_the_Turtle•

Sorry I didn't pay attention,

You might be able to add an and gate to solve it, give me a sec

1

So let me guess what you're doing here- you're placing the blueprints, then racing off to just place roboports, power poles, and maybe the rails/stations? And then hope it works?

Simple idea, annoying solution - add red-or-green circuit wire to the big power poles, use them to transmit a single signal from a central location. Blueprinted circuit wire is free. So if you manage the blueprinting properly, you can get an unbroken green/red wire signal all the way from wherever you start. The annoyance is that you're going to be stuck with a very inflexible, pre-placed grid for your power grid. And designing that grid, too.

2
sycin23•

The quickest way is to add a Constant combinator. It sits like a chest and you can wire it with your chests. You can set it to 1 repair pack and your system will work like a charm

1
Ihmes•

Do you have beacons and modules in your construction taxi? The dumbest (but I think it would work!) solution would be to drop down a beacon with a module in the blueprint and an inserter that will yoink the module out of the beacon and place it in one the chests, getting around the initial "null" state of the logic after it's been built.

1