Right now the way to bulk transfer a signal from one place to another by using Lua API is:
1. Manually read the input signal from some entity.
2. Write the result to a constant combinator using control_behavior.parameters = {parameters = signals}
This, unfortunately has 2 limitations:
1. There is no way to transfer both networks (red and green) using a single constant combinator: the color of the signal depends on the wire connected to the constant combinator.
2. This is abhorrently slow: control_behavior.parameters = {parameters = signals} is the UPS killer.
I'd like to propose/request the 2 following items:
1. A new entity that works like constant combinator, but is only accessible via Lua API and can support both signal colors at the same time.
2. A method that copies the signal from a given LuaCircuitNetwork to the provided entity/network combo. That way the signal would be copied completely on C++ side, without having to convert the entirety signal from C++ structures to Lua and then back to C++.
If a new entity is too much work or is too niche of a request, I'd be more than contempt with:
1. LuaConstantCombinatorControlBehavior.copy_signal_from_network(<here goes a LuaCircuitNetwork>)
2. LuaConstantCombinatorControlBehavior.merge_signal_from_network(<here goes a LuaCircuitNetwork>): this would sum all the signals from given source network to current constant combinator, without erasing anything it has first.
This would help immensely with bulk transfer of signals. Mods like Factorissimo2, RadioNetwork, TrainsSignalSender would benefit a lot from this.
A function to bulk transfer signals from circuit network to a constant combinator
Place to ask discuss and request the modding support of Factorio. Don't request mods here.
-
- Long Handed Inserter
- Posts: 68
- Joined: Thu Jan 15, 2015 2:20 pm
- Contact:
Return to “Modding interface requests”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions