So im trying to get the one time clock mentioned here working:
https://wiki.factorio.com/Tutorial:Comb ... ial#Memory
I cannot figure it out though... What im trying to accomplish is a simple 10 minute countdown (or count up idc) linked to inserters which insert artillery shells into guns of a forward artillery post. I want to give the bots 10 minutes to finish the walls/defences before those guns start firing.
Right now i've got a simple arithmetic combinator linked to itself just counting up from 1. And the inserters activate at 60k. This is around 10 minutes and has worked fine. But the counter keeps on going, it would be good if I could figure out a better timer or something that stops at 60k etc. Any solutions? How do I get that one time clock to work?
One time clock
-
- Filter Inserter
- Posts: 270
- Joined: Sun Sep 16, 2018 10:44 pm
- Contact:
Re: One time clock
Use a decider combinator set to x<60000 output x. connect the output to the input connect a constant combinator x=1 to the input It will roll from 1 to 60000 and reset.
Test it yourself using a smaller number... 60 or so and you’ll see.
Test it yourself using a smaller number... 60 or so and you’ll see.
Factorio Towns... https://youtube.com/playlist?list=PLf5d ... -ps9WNZOCe
Re: One time clock
For a one-time-counter, use 2 decider combinators: one with x != 0 -> x (input count), the other x < 60000 -> x (1), wire all in- and outputs together.
Activate the inserters from the output of the second combinator, when x = 0.
Activate the inserters from the output of the second combinator, when x = 0.
Re: One time clock
Let it count forever. The max possible value for a signal is 2147483647.
At 60 per second it will take 1.14 years of running continuously for it to finally overflow. So unless you plan on running Factorio 24/7 for over a year, this is not a problem you should worry about.
-
- Filter Inserter
- Posts: 270
- Joined: Sun Sep 16, 2018 10:44 pm
- Contact:
Re: One time clock
Or here is one I made for you...
All the instructions are in the Blueprint.
A is the TIMER, L is the LOAD signal. The middle chest will hold 20 items and together with the attached decider combinator will perpetuate the LOAD signal.
All the instructions are in the Blueprint.
A is the TIMER, L is the LOAD signal. The middle chest will hold 20 items and together with the attached decider combinator will perpetuate the LOAD signal.
Factorio Towns... https://youtube.com/playlist?list=PLf5d ... -ps9WNZOCe
Re: One time clock
Awesome, thanks for the blueprints guys!
Re: One time clock
Ah good to know, im a software developer so it kinda bothers me to just leave it running but yeah seems like that's viable since these artillery bases are ultimately temporary. Im enclosing the territory cleared by them in a large perimeter wall.Yoyobuae wrote: ↑Sat Oct 31, 2020 5:29 amLet it count forever. The max possible value for a signal is 2147483647.
At 60 per second it will take 1.14 years of running continuously for it to finally overflow. So unless you plan on running Factorio 24/7 for over a year, this is not a problem you should worry about.
- Tesse11ation
- Fast Inserter
- Posts: 200
- Joined: Sat Mar 05, 2016 12:59 am
- Contact:
Re: One time clock
Yes, Factorio uses integer logic for the circuit network. Signed 32-bit to be precise. So, the value range is from -2147483648 to 2147483647.maxp779 wrote: ↑Sat Oct 31, 2020 4:28 pmAh good to know, im a software developer so it kinda bothers me to just leave it running but yeah seems like that's viable since these artillery bases are ultimately temporary. Im enclosing the territory cleared by them in a large perimeter wall.Yoyobuae wrote: ↑Sat Oct 31, 2020 5:29 amLet it count forever. The max possible value for a signal is 2147483647.
At 60 per second it will take 1.14 years of running continuously for it to finally overflow. So unless you plan on running Factorio 24/7 for over a year, this is not a problem you should worry about.
Galaxy
OS: Win 10 Pro 64-Bit
MOBO: ASUS X570-Plus
CPU: AMD Ryzen 5 3600X (@~3.8 gHz)
GPU: Nvidia RTX 2080
RAM: 32GB DDR4