电路网络概述 / Circuit Network Overview#
电路网络是 Factorio 中最强大的工具之一。它允许你用逻辑信号控制工厂的每一个方面——从简单的开/关控制到复杂的计算机系统。
The circuit network is one of the most powerful tools in Factorio. It allows you to control every aspect of your factory with logic signals — from simple on/off control to complex computer systems.
基础组件 / Basic Components#
红线和绿线 / Red and Green Wire#
两种独立的信号通道。红色和绿色线在同一建筑上可以同时使用,信号自动相加。
Two independent signal channels. Red and green wires can both connect to the same building, and their signals are automatically summed.
恒量组合器 / Constant Combinator#
输出恒定的信号值。用于设置参考值、阈值和参数。
Outputs a constant signal value. Used for setting reference values, thresholds, and parameters.
算术组合器 / Arithmetic Combinator#
执行数学运算:加、减、乘、除、幂、取模。输入两个信号,输出一个结果。
Performs arithmetic operations: add, subtract, multiply, divide, exponent, modulus. Takes two inputs, outputs one result.
判据组合器 / Decider Combinator#
根据条件输出特定信号。支持比较运算:=, !=, <, <=, >, >=。输入条件满足时输出指定信号。
Outputs a specific signal based on conditions. Supports comparisons: =, !=, <, <=, >, >=. Outputs the specified signal when the condition is met.
基本逻辑 / Basic Logic#
水泵控制 / Pump Control#
连接储液罐到判据组合器,当液体超过阈值时启动裂解泵。这是最常见的电路应用。
Connect a storage tank to a decider combinator, enable a cracking pump when fluid exceeds a threshold. This is the most common circuit application.
传送带控制 / Belt Control#
当后方缓冲区满时暂停前方传送带,减少不必要的物品生产和运输能耗。
Pause upstream belts when downstream buffers are full, reducing unnecessary item production and transport energy.
车站控制 / Station Control#
仅在装货/卸货站有足够物品/空间时才启用车站。防止列车空跑。
Enable stations only when there are enough items/space to load/unload. Prevents trains from running empty.
警报系统 / Alarm System#
使用判据组合器配合 play-sound 在箱子不足或电力短缺时触发警报。
Use a decider combinator with play-sound to trigger alarms when chests are low or power is in shortage.
高级电路 / Advanced Circuits#
内存单元 / Memory Cell#
最简单的内存单元:算术组合器的输出环回到输入。使用 each * 1 + 0 保持值不变。使用 each * 0 清除。
The simplest memory cell: loop the output of an arithmetic combinator back to its input. Use each * 1 + 0 to hold values. Use each * 0 to reset.
SR 锁存器 / SR Latch#
使用两个判据组合器交叉连接,实现置位/复位功能。常用于控制开启和关闭阈值的场景。
Use two decider combinators cross-connected to implement set/reset functionality. Commonly used for scenarios with separate enable and disable thresholds.
计数器 / Counter#
使用算术组合器 each + 1 和内存单元组合,统计通过的物品数量。配合判据组合器实现计数报警。
Combine an arithmetic combinator each + 1 with a memory cell to count passing items. Pair with a decider combinator for count-based alarms.
时钟 / Clock#
循环输出 tick 信号。使用 each + 1 算术组合器+判据组合器在达到上限时重置。
Outputs a cycling tick signal. Use an each + 1 arithmetic combinator plus decider combinator to reset at a maximum value.
显示系统 / Display Systems#
灯光显示 / Lamp Display#
用编程灯 (Programmable Speaker) 配合颜色信号,可视化显示资源存量。绿色 = 充足,黄色 = 中等,红色 = 不足。
Use Programmable Speakers with color signals to visualize resource levels. Green = full, yellow = medium, red = low.
Nixie 管 / Nixie Tube Display#
模组中的数字显示管,配合电路网络显示精确数值。常见于储液罐和箱子的实时数据显示。
Nixie tubes from mods display exact numeric values via the circuit network. Commonly used for real-time tank and chest data display.
屏幕显示 / In-Game Display#
使用键盘上的 ~ 键打开 Lua 控制台,可以编写脚本读取电路值。高级玩法,适合对 Lua 脚本有经验的玩家。
Press ~ to open the Lua console and write scripts to read circuit values. Advanced technique for players experienced with Lua scripting.
常用蓝图 / Common Blueprints#
自动裂解控制 / Auto Cracking Control#
储液罐 → 判据组合器 [重油 > 20000, 输出 1 重油] → 泵(开启条件:重油 > 0)
Tank → Decider [Heavy > 20000, output 1 Heavy] → Pump (enable: Heavy > 0)列车调度优化 / Train Schedule Optimization#
车站 → 判据组合器 [物品 < 2000, 输出 1 信号] → 车站启用条件:信号 > 0
Station → Decider [Item < 2000, output 1 signal] → Station enable: signal > 0平衡多线装载 / Balanced Multi-Lane Loading#
箱子1 + 箱子2 + 箱子3 + 箱子4 → 算术组合器 [总和 / 4, 输出平均值]
平均值为基准,控制每线的子弹补给
Chest1-4 → Arithmetic [total / 4, output average]
Average value controls each lane's item supply自动维修系统 / Auto Repair System#
维修机器人 → 判据组合器 [维修包 < 50, 输出 1] → 组装机开启
Repair Bots → Decider [Repair Pack < 50, output 1] → Assembler enable电路哲学 / Circuit Philosophy#
在 Factorio 中,电路不是必须的。你可以用纯机械的方式通关。但电路让你精确控制工厂,使其更高效、更紧凑、更有趣。
In Factorio, circuits are not required. You can complete the game purely mechanically. But circuits give you precise control, making your factory more efficient, more compact, and more interesting.
常见问题 / FAQ#
| 问题 / Question | 回答 / Answer |
|---|---|
| 电路网络是必须的吗?/ Is circuit network required? | 不必须。你可以不用任何电路通关游戏。但电路让工厂更高效、更智能 / No. You can beat the game without any circuits. But circuits make factories more efficient and intelligent |
| 红线和绿线有什么区别?/ Difference between red and green wire? | 两路独立信号通道,互不干扰。同一设备可以同时连接红绿线,信号自动相加 / Two independent channels. Same building can have both, signals are summed automatically |
| 如何创建一个简单的 SR 锁存器?/ How to make a simple SR latch? | 用两个判据组合器交叉连接:一个输入 S(置位),一个输入 R(复位),输出互相连接作为反馈 / Cross-connect two decider combinators: one input S (set), one input R (reset), outputs feedback to each other |
| 电路能控制火车吗?/ Can circuits control trains? | 可以。通过电路控制车站启用/禁用,实现按需调度。这是大基地的标配功能 / Yes. Use circuits to enable/disable stations for on-demand scheduling. Standard feature in megabases |
常用电路设计速查 / Common Circuit Designs Quick Reference#
| 设计 / Design | 组合器 / Combinators | 用途 / Use |
|---|---|---|
| 内存单元 / Memory Cell | 1 算术组合器 / 1 Arithmetic | 存储单个信号值 / Store a single signal value |
| SR 锁存器 / SR Latch | 2 判据组合器 / 2 Deciders | 开关控制(如裂解) / On/off control (e.g. cracking) |
| 计数器 / Counter | 1 算术 + 1 判据 / 1 Arith + 1 Dec | 统计物品通过数量 / Count items passing by |
| 时钟 / Clock | 1 算术 + 1 判据 / 1 Arith + 1 Dec | 定时触发信号 / Timed signal trigger |
| 比较器 / Comparator | 1 判据组合器 / 1 Decider | 大于/小于/等于判断 / Greater/less/equal comparison |
组合器参数速查 / Combinator Parameter Quick Reference#
| 组合器类型 / Type | 输入 / Inputs | 输出 / Outputs | 运算 / Operations |
|---|---|---|---|
| 恒量组合器 / Constant | 无 / None | 最多 20 个信号 / Up to 20 signals | 固定值输出 / Fixed value output |
| 算术组合器 / Arithmetic | 2 个信号 / 2 signals | 1 个信号 / 1 signal | + - × ÷ 模 幂 / + - × ÷ mod pow |
| 判据组合器 / Decider | 2 个信号 / 2 signals | 1 个信号 / 1 signal | = ≠ < ≤ > ≥ AND OR / = ≠ < ≤ > ≥ AND OR |
经典蓝图分享 / Classic Blueprint Sharing#
| 蓝图名称 / Blueprint | 复杂度 / Complexity | 用途 / Use |
|---|---|---|
| 自动裂解控制 / Auto Cracking | ★☆☆☆☆ | 储液罐→判据→泵 / Tank→Decider→Pump |
| 平衡装载系统 / Balanced Loading | ★★☆☆☆ | 4-8 线均匀装车 / 4-8 lane even loading |
| 仓库监控报警 / Warehouse Alarm | ★★☆☆☆ | 储量不足时触发声音警报 / Sound alarm on low stock |
| 列车调度系统 / Train Dispatch | ★★★☆☆ | 电路控制火车站启用/禁用 / Circuit-controlled station enable/disable |
| 自动维修系统 / Auto Repair | ★★☆☆☆ | 维修包不足时启动生产 / Auto-restart repair pack production |
| 7段显示器 / 7-Segment Display | ★★★★☆ | 显示实时数值 / Display real-time values |
电路信号类型 / Circuit Signal Types#
| 信号类型 / Signal Type | 来源 / Source | 用途 / Use |
|---|---|---|
| 物品信号 / Item Signal | 箱子、传送带、机械臂 | 表示物品数量 / Represents item count |
| 液体信号 / Fluid Signal | 储液罐、管道 | 表示液体数量 / Represents fluid amount |
| 虚拟信号 / Virtual Signal | 组合器输出 | 自定义逻辑信号 / Custom logic signal |
| 颜色信号 / Color Signal | 编程灯 | 控制显示颜色 / Controls display color |
| 声音信号 / Sound Signal | 编程灯 | 触发声音警报 / Triggers sound alarm |
进阶学习资源 / Advanced Learning Resources#
| 资源 / Resource | 描述 / Description |
|---|---|
| Factorio Wiki - Circuit Network | 官方电路网络文档 / Official circuit network documentation |
| Reddit r/factorio | 社区蓝图分享和高级设计分享 / Community blueprint sharing and advanced designs |
| YouTube 教程 / YouTube Tutorials | 搜索 “Factorio circuit tutorial” 获取视频教学 / Search “Factorio circuit tutorial” for video guides |
| Discord 社区 / Discord Community | 实时问答和蓝图交流 / Real-time Q&A and blueprint exchange |
常见问题 2 / FAQ 2#
| 问题 / Question | 回答 / Answer |
|---|---|
| 电路信号用什么颜色连接?/ What wire color to use? | 红线和绿线功能完全相同,但可以区分两组信号。同一设备可以同时连接红绿线 / Red and green wires are functionally identical but separate signal groups. Same building can have both |
| 如何调试电路?/ How to debug circuits? | 按 Alt 键显示详细信息。悬停鼠标在电线上查看信号值 / Press Alt for detailed info. Hover mouse over wires to see signal values |
| 电路可以控制灯光颜色吗?/ Can circuits control light colors? | 可以。编程灯(Programmable Speaker)支持 RGB 颜色信号控制 / Yes. Programmable Speaker supports RGB color signal control |
| 电路网络可以跨地图传输吗?/ Can circuit signals cross the map? | 可以,通过电塔(电力线)传输信号。不需要消耗电力 / Yes, via power poles (power lines). No power consumption needed |
电路网络速查 / Circuit Network Quick Reference#
| 操作 / Operation | 组合器 / Combinator | 示例 / Example |
|---|---|---|
| 信号相加 / Add signals | 算术组合器 / Arithmetic | 铁板 + 铜板 / Iron + Copper |
| 信号比较 / Compare | 判据组合器 / Decider | 铁板 > 1000 → 输出 1 / Iron > 1000 → output 1 |
| 信号取反 / Invert | 算术组合器 / Arithmetic | each * -1 |
| 信号选择 / Select | 判据组合器 / Decider | each > 0 → input count |
| 信号保持 / Hold | 内存单元 / Memory Cell | each + 0 (循环连接) / each + 0 (loop back) |
| 信号清零 / Reset | 内存单元 / Memory Cell | each * 0 (清零信号触发) / each * 0 (triggered by reset) |
调试技巧 / Debugging Tips#
| 技巧 / Tip | 说明 / Description |
|---|---|
| 使用红绿线颜色区分 / Use wire colors | 红线和绿线分别传递不同信号,便于调试 / Red and green wires carry different signals, easier to debug |
| 添加编程灯作为指示器 / Add lamps as indicators | 用颜色显示状态:绿色=正常,黄色=警告,红色=异常 / Use colors: green=normal, yellow=warning, red=error |
| 逐段检查信号 / Check signals segment by segment | 在每个组合器输出端检查信号值是否正确 / Check signal values at each combinator output |
| 使用恒量组合器做测试 / Use constant combinators for testing | 输入已知数值验证组合器逻辑是否正确 / Input known values to verify combinator logic |
标签 / Tags: circuits combinators logic counters displays blueprints Factorio