Factorio

Factorio

檢視統計資料:
jonbrave 2018 年 2 月 12 日 上午 7:08
Circuit - First Baby Step
In the saga of my on-going first game, I did try to set up one circuit --- from an inserter to a lamp, I think --- but nothing happened :( Which is doubtless another way of saying I got it wrong.

In that spirit, would someone care to show me, either in writing or via a picture, how to achieve the following:

  • I have a chest, emptied with two inserters.
  • I fill the chest (manually at present) with stone.
  • I'd like to know when the chest is empty; or failing that, when the inserters are no longer doing anything.
  • Most basic warning would be a single, white lamp going on. Limitation is that would look like my other lamps. But even that would be further than I managed so far!
  • Better would be either to have it flash on & off, or come on in a color (both would be nice to understand). I'd like that to happen even during daylight, if that's a problem.

If you'd enjoy telling me how to do it, I'd appreciate it. If it's too baby-ish, please don't shout at me!
< >
目前顯示第 1-4 則留言,共 4
AlexMBrennan 2018 年 2 月 12 日 上午 7:40 
from an inserter to a lamp, I think --- but nothing happened
First off, you probably didn't select a work mode for either the lamp or the inserter, and by default they start off doing nothing. Clicking on a lamp connected to the circuit network allows you to specify when you want it to be on (which you should do). Clicking on the inserter connected ot the circuit network allows you to select the work mode (you probably want "read hand content" since the lamp can't output anything), which will cause the lamp to flash every time the inserter picks up something (in "pulse" mode) or to be on when the inserter is holding something (in "hold" mode).

Either way, I can't see any way to do anything useful with this setup. Sorry.

I'd like to know when the chest is empty
Build a lamp, connect it with a circuit wire to the chest, and set the lamp condition to "stone = 0".
or failing that, when the inserters are no longer doing anything.
You will first have to define what you mean by "no longer doing anything" - do you mean "fewer than X movements per 30s" "fewer than X movements in the last 30s"? Regardless, this will be very difficult to implement.

Better would be either to have it flash on & off, or come on in a color (both would be nice to understand).
Colour is simple - when you click on a lamp you can enable colour, and then you simply need to put a colour value on that signal (either connect a constant combinator outputting "red=1" to the lamp, or use a decider combinator to translate the signal to colour:

For decider combinators, you can specify the condition "stone=0", select "red" as the output, and pick the output quantity 1 (change the lamp from stone=0 to red=1).

Flashing is a bit tricky because it requires a clock: You need a timer that counts up to some number (60, say), use a constant combinator to output 1 if the number is <30, and then multiply that output by the red signal we made earlier. Have a look at this blueprint in game:
0eNrdV9GumzAM/Zc8TjBRoLRF275ib9OEUnBvLYUEhVCtqvj3JWGjtCUdoE7T3UurJPjYPscx5kL2rIFKIlckvRDMBa9J+u1CanzjlJk9da6ApAQVlMQjnJZmVUCOBUg/F+UeOVVCktYjyAv4QdJV+90jwBUqhA7NLs4Zb8o9SP1Aj2P8KcrVEMgjlai1reDGvcbzI4+c9V+oXRQoIe/OQs+YKylYtocjPaG21QYHZAqkI4sTStXonT6A7gn/qwk/F42hYTVMxG5z3vmsDdLK/Egoholh0YWDMm9Q2aWxbVvvIffwGYePqQcf13OS/4WZ6bMC+5APKGuVzSWjU4akSWBWZUWljTEln7SFaFTVzMeszpllOTtIUWbINQZJlWygnU60La83CcD/IEFo5QsdMNGDXtNQXcJGs4QN/72u0d/W9UBZPUdYt3yjuqyn6RJfQy4pYz6jZTVy0WIrR9CO8//bUc//AvpNxjcC3PP/xRw3NWgvTJgOZi/GOH2jjCSD9M1646Bk3YdGJapjCQrzaW0ouK3WZJytK+oLCrYGgzGbZlGB5tVGST4sKGwLM6crBQ/V6+gn0bwyTxwiJtPqOvwP6np9z9htmccOhjZzbn74rhmK7yjZOSjZXkNTAMzPj1Ar58S1Wl7+rm68m1O171sTV/c1VC0ZAVevnxRuh/paCQ7PSfm8tJO+bEjYPh3qRmcC3YhtoungY8cjJ/2R0L3Etpsw2G3jIInb9iefrX8/
http://steamcommunity.com/sharedfiles/filedetails/?id=1299541731

Btw, instead of a lamp you could wire a speaker to the chest and set to play an alert when stone=0.
最後修改者:AlexMBrennan; 2018 年 2 月 12 日 上午 7:45
Nellvan 2018 年 2 月 12 日 上午 8:04 
For a visual of the non-flashy bits
http://steamcommunity.com/sharedfiles/filedetails/?id=1299545693

"Translating the signal" is a concept that comes up all the time. In this case it's done by the decider because it can be attached to it. (We can just set the output signal to a something different from the input.)

When you onlyt want to change a signal without doing anything else, just run it through an arithmetic combinator that does (x * 1) and outputs the other signal (e.g. a color to use with a lamp).
最後修改者:Nellvan; 2018 年 2 月 12 日 上午 8:13
jonbrave 2018 年 2 月 12 日 上午 10:59 
Thank you so much, guys!
I will try these next time.
Unfortunately I work, so that can only be at the weekends, when I get a chance to play!

A couple of random points:

I don't want to use a speaker as it would be shouting at me all the time. Also, I have the PC's speakers off so it prolly wouldn't be good.

I thought something I read (maybe a tutorial?) said it was more complex than the white. And I think you're saying it involves building an extra thingie ("combinator"). Baby steps!
最後修改者:jonbrave; 2018 年 2 月 12 日 上午 11:06
Killcreek2 2018 年 2 月 12 日 下午 1:45 
You can set the volume of the speaker to zero. I use them as global alerts for various things ~ so you just get another popup icon next to the toolbelt to silently alert you.
I find it very useful.
< >
目前顯示第 1-4 則留言,共 4
每頁顯示: 1530 50

張貼日期: 2018 年 2 月 12 日 上午 7:08
回覆: 4