Some new signals

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
pletiplot
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 24, 2020 2:09 pm
Contact:

Some new signals

Post by pletiplot »

Hello,
There would be good to add some more signals to the logistic network:
Day/night:
I noticed that lamps switch on and off depending on day/night condition. But I would like to switch off other things by a day/night condition. Lets say I am in a later early game, I have solar panels but not accumulators yet. I want to decrease polution (to keep some peace with biters) so I would like to decrease electricity consumption in night since it is on steam engines. So I would like to switch off radars and some miners during night. Maybe there could be a possilbility to cast day/night status from every lamp since they obviously can read that condition from the world anyway.
Number of buildings:
I want to have 150 logistic and 150 construction drones for every port. How many roboports do I have? I could make a calculation and switch of the production on and off. This could be a bit tricky to implement however.

PiggyWhiskey
Filter Inserter
Filter Inserter
Posts: 252
Joined: Wed May 13, 2015 5:28 am
Contact:

Re: Some new signals

Post by PiggyWhiskey »

You could have localised Solar power for mining sites/Radars.
Disconnect them from the primary network using Copper Cables and when the Solar runs out, you won't drain your Steam Power.

2x Mining Drill = 3x Solar Panels (180 kW) (Calculate out for how many Mining Drills are in your Ore Field)
1x Radar = 5x Solar (300 kW)

pletiplot
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 24, 2020 2:09 pm
Contact:

Re: Some new signals

Post by pletiplot »

I can actualy measure the current power of solar plant and then control the other devices, but I think that reading day/night status would be "cleaner". And making isolated electricity networks is annoying anyway.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Some new signals

Post by darkfrei »

pletiplot wrote:
Thu Jun 25, 2020 8:56 am
I can actualy measure the current power of solar plant and then control the other devices, but I think that reading day/night status would be "cleaner". And making isolated electricity networks is annoying anyway.
Not day/night status, but insolation percentage value from 0 in the night up to 100 in the midday.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Some new signals

Post by ssilk »

Day/night-cycle does not correlate with amount of power usage. State of accumulator does.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

pletiplot
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 24, 2020 2:09 pm
Contact:

Re: Some new signals

Post by pletiplot »

ssilk wrote:
Thu Jun 25, 2020 11:05 pm
Day/night-cycle does not correlate with amount of power usage. State of accumulator does.
I see, but this would be usefull mostly in pre-acumulator game.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Some new signals

Post by ssilk »

https://mods.factorio.com/mod/Circuit_P ... Combinator

Or you can try this:

A) make a circuit that counts the number of ticks for day and night. See wiki for exact numbers. But this is not reliable, when power goes down. So you need an extra power source for that in an own electric system, which has guaranteed always power, but doesn’t need much.

B) Make an own electric system with some solar panels as producer and a radar as consumer. Now you can play around with inserters, belts and chests to make some circulating item stream, that jams the belts, when the inserters gets too slow. Then you can take the count for number of items on belt/in chest as signal, that solar goes down. I’m sure there are some ideas around this in viewforum.php?f=208

There is really no need to have day-night cycle in game. Which is result of very old discussions long ago.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Pi-C
Smart Inserter
Smart Inserter
Posts: 1639
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Some new signals

Post by Pi-C »

ssilk wrote:
Sat Jun 27, 2020 7:54 am
A) make a circuit that counts the number of ticks for day and night. See wiki for exact numbers.
How would you prime that thing? Can you get the current game.tick somehow? Sure, you can make a clock (a counter resetting itself after x ticks), but what if you build it in the middle of the day? Most of the time, start of the counter won't be in sync with start of a Factorio day.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Some new signals

Post by darkfrei »

Pi-C wrote:
Sat Jun 27, 2020 8:16 am
ssilk wrote:
Sat Jun 27, 2020 7:54 am
A) make a circuit that counts the number of ticks for day and night. See wiki for exact numbers.
How would you prime that thing? Can you get the current game.tick somehow? Sure, you can make a clock (a counter resetting itself after x ticks), but what if you build it in the middle of the day? Most of the time, start of the counter won't be in sync with start of a Factorio day.
The counter resetting on the time point by difference of this tick and last tick value. So, the difference value will be positive while dawn and negative while sunset.
You can get two last positions of it: last tick of dawn or last tick of sunset, the value will be changed from 1 to 0 or from -1 to 0.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Some new signals

Post by ssilk »

Pi-C wrote:
Sat Jun 27, 2020 8:16 am
How would you prime that thing? Can you get the current game.tick somehow? Sure, you can make a clock (a counter resetting itself after x ticks), but what if you build it in the middle of the day? Most of the time, start of the counter won't be in sync with start of a Factorio day.
- you can add an offset to your counter, that corrects it, or you wait until the night begins and reset this by hand.

- you can make an auto-reset; you need a timer a solar panel and a pulsator. The pulsator is connected to the timer and resets it every nth tick. The power for the pulsator comes from the solar panel, so when night falls the pulsator goes slower and slower, until the timer has the chance to run out, which resets your day/night timer (to offset). Ah, I forget you need a rs-latch. Hm. Complicated.

- when I thought of that there comes a much simpler method into my mind: you just need to know if you have full solar power or lower. So take some solar panel, some lamps and a fast (!) inserter in one electric circuit. That inserter puts some item into a chest (you need not more than 10 items in that chest). The items comes from a belt which the other side of the chest and are outputted from that chest by a basic (!) inserter connected to a reliable electric network. When night falls lights turn on. Fast Inserter goes slower and is not longer able to input the items into the chest. Items in chest goes down below 2, which is the signal, that is now “night”.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

pletiplot
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 24, 2020 2:09 pm
Contact:

Re: Some new signals

Post by pletiplot »

Guys, thanks for nice discussion.
I have seen some videos, how to make tickers, NAND and SR circuits with logic circuits in Factorio. I dont know much about it, actualy I know we learned at school about it and these are logic base for every electronic digital computer (non-quantum).
I could count ticks infinitely and compute modulo some value which represents the length of day. But it is like building a subfactory for measuring day/night.
The good idea is to have a separate solar panel - radar pair and measure the power produced, and use this value for the whole network.
But there is very simple solution which I like - make lamp able to report its state on the channel of the respective color. An uncontroled lamp should report 1 on white channel every night.

Ajedi32
Inserter
Inserter
Posts: 28
Joined: Thu May 07, 2020 9:46 pm
Contact:

Re: Some new signals

Post by Ajedi32 »

IMO more signals is a good idea in general. Ideally you should be able to connect pretty much anything to the circuit network to perform some useful function. More ideas:
  • Read power output of power-producing structures (doing this with a solar panel would let you easily sense daytime)
  • Read status of machines (running, input bottlenecked, output bottlenecked, etc)
  • Toggle beacons on/off
  • Read expected yield of mining drills
  • Sense temperatures of heat exchangers and reactors
  • Read types of science packs required for current research from Labs

Post Reply

Return to “Ideas and Suggestions”