Why this mod:
I develop complex circuit and I have made its algorithmic model outside of Factorio to test various approaches and coefficients, visualize results and dependencies etc. I want to test that model using real input data. So, I need to transfer signals from the game to the file, I hope it is possible.
More thoughts and expectations:
- File name and location are not important. It may be mod’s log file along with other information; I can filter specific lines with signal data.
- I want to log three signals; more would be better. Though, I don’t think it’s worth to log all available signals. A-Z is more than enough.
- Signal names can be predefined, e.g. A, B, C, D.
- Log signals every tick.
- Maybe there should be a separate control signal to on/off logging to avoid flooding.
- I think it might be useful to log data only if signal is changed (for signal debugging), so maybe the separate control signal for this mode. I don’t need it now, though.
- Signals may be logged in CSV form, e.g. “<SomeTimestampOrGlobalTickNumber> signal_log: 123;456;789;159186;753”.
- Please do not log signal names
“C:123;E:456;K:789”, I don’t want to parse strings. Empty fields would be much better for me: “;;123;;456;;;;;;789;;;;;;;;;;;;;;;”.
- It would be a small bonus to have a title line before the first log line:
Code: Select all
signal_log: A;B;C;D;E signal_log: 123;456;789;159 signal_log: 124;;790; signal_log: ;457;791;160
- The logging entity needs inputs signals only, it may be a special lamp, a special chest, pole etc.
- Maybe specific signals can be selected by using spec. const. combinator content?
- I don’t need to have two or more logging devices at once.