Circuit Radio


Adds a simple 1x1 radio node that joins a virtual red/green circuit network selected by one signal/value channel.

Content
5 days ago
2.0
158
Circuit network

b Blueprint Sandboxes compatiblity

6 days ago

First of all, thanks for the mod; it is awesome!

Now for what I have found and can be considered a bug. When I copy the radio in the blueprint sandbox, it doesn't clone the configuration.
I have looked into it a bit, and I found that the register_radio should also register for event.tags. Below is my patch that fixes the issue for me.

diff -u --color ../circuit-radio_0.1.5/changelog.txt ./changelog.txt
--- ../circuit-radio_0.1.5/changelog.txt    2026-06-06 00:16:40.000000000 +0200
+++ ./changelog.txt 2026-08-06 20:45:36.521757669 +0200
@@ -1,4 +1,10 @@
 ---------------------------------------------------------------------------------------------------
+Version: 0.1.6
+Date: 2026-08-06
+  Bugfixes:
+    - Preserved the channel when radios are revived by scripts (e.g. blueprints pasted inside Blueprint Sandboxes), by forwarding entity tags on the script_raised_built and script_raised_revive events.
+
+---------------------------------------------------------------------------------------------------
 Version: 0.1.5
 Date: 2026-06-05
   Bugfixes:
diff -u --color ../circuit-radio_0.1.5/control.lua ./control.lua
--- ../circuit-radio_0.1.5/control.lua  2026-06-06 00:16:35.000000000 +0200
+++ ./control.lua   2026-08-06 20:45:19.050227499 +0200
@@ -944,11 +944,11 @@
 end)

 script.on_event(defines.events.script_raised_built, function(event)
-  register_radio(event.entity)
+  register_radio(event.entity, event.tags)
 end)

 script.on_event(defines.events.script_raised_revive, function(event)
-  register_radio(event.entity)
+  register_radio(event.entity, event.tags)
 end)

 script.on_event(defines.events.on_player_mined_entity, function(event)
Common subdirectories: ../circuit-radio_0.1.5/graphics and ./graphics
diff -u --color ../circuit-radio_0.1.5/info.json ./info.json
--- ../circuit-radio_0.1.5/info.json    2026-06-06 00:16:30.000000000 +0200
+++ ./info.json 2026-08-06 20:45:42.425936836 +0200
@@ -1,6 +1,6 @@
 {
   "name": "circuit-radio",
-  "version": "0.1.5",
+  "version": "0.1.6",
   "title": "Circuit Radio",
   "author": "Andriy",
   "factorio_version": "2.0",
Common subdirectories: ../circuit-radio_0.1.5/locale and ./locale
Common subdirectories: ../circuit-radio_0.1.5/prototypes and ./prototypes
5 days ago

Thank you!
Implemented your recommendation

New response