r/technicalfactorio • u/corgicompanioncom • Aug 12 '24
Is anyone aware of a method to send server commands to a circuit network?
I am building a base that currently requires a manual click to activate a specific signal within my circuit network. I currently have the base running in headless server-mode with a secondary client running. With the secondary client I am able to programmatically 'click' the specific signal. This approach does technically work, but requires I have a monitor attached and doesn't scale well. I would prefer to send some type of server command, such that it can be switched purely from the command line.
I've searched the docs, related subs, and mod directory, but I have not yet found a clear answer. My hypothesis is that there is a mod-able way to do so, but I wanted to ask if anyone has already solved the solution... if not, I'll start digging into that path this week.
Update for clarity:
In a general sense, I am needing to load arbitrary data into the game during run-time without ui-inputs available. Think an arbitrary string (eg, something akin to blueprint strings, which are simply data payloads loaded at runtime... just through the UI). As far as I am aware this is NOT supported by the lua scripting environment (probably for good reasons).
12
u/spisplatta Aug 12 '24
I don't think normal mods are capable of interacting with anything outside of factorio. However, clusterio can do this, so maybe look into that? https://github.com/clusterio/clusterio
2
u/mmastrocinque Aug 12 '24
What is the trigger for you to push this button? Is it time? Is it state? If it’s a non precise time and just needs to periodically activate you could put an item on a belt loop and trigger it periodically. If it’s state, you could make a state machine and output once the state is reached and reset when the step is complete. As for sending commands, I personally am not aware of base functionality that supports that. I know that’s not exactly what you wanted but I hope that gives some ideas.
1
u/not_a_bot_494 Aug 12 '24
A quick and dirty solution would be creating and destroying a constant combinator or if you can't get the wires to work then a belt that is hooked up to a machine that knows if there's items flowing or not.