Trouble getting console output.
Posted: Fri Jun 30, 2017 1:05 am
I'm trying to read what factorio writes to console so i can relay join/leave messages and the ingame chat to channel on discord via a bot made in c#.
The server is running on windows and I have had no luck redirecting the stdout of the server (I have code that works fine with other console programs just not factorio).
Has anyone had any success doing so with a factorio server on Windows or knows of another method that i can use to capture the console output? (Can't use the factorio log file as it doesn't log the chat and there is a delay between writes).
As far as i know rcon is useless to me also as it only responds to commands sent to it which will not provide me live chat updates.
The server is running on windows and I have had no luck redirecting the stdout of the server (I have code that works fine with other console programs just not factorio).
Has anyone had any success doing so with a factorio server on Windows or knows of another method that i can use to capture the console output? (Can't use the factorio log file as it doesn't log the chat and there is a delay between writes).
As far as i know rcon is useless to me also as it only responds to commands sent to it which will not provide me live chat updates.