Inspired by Ikanreed I've created a log parser for Factorio: https://github.com/Bisa/factorio-logparser
This will monitor your factorio log and output peer information in json-format on disk for your creative needs.
(sadly Ikanreed did not respond to any queries regarding his licensing so I decided to write my own)
Please feel free to share and contribute - it's released under the MIT license
I feel obliged to add that this is my first ever python script, I've since come to understand that static methods is a no-no and I should probably have done this in another way - let's aim for v2.0
----------- EDIT:
To *anyone*: if you found this script useful, please consider looking at my suggestion for adding this to the factorio binary itself:
https://forums.factorio.com/forum/vie ... =6&t=17980
[linux] Factorio logparser
[linux] Factorio logparser
Last edited by Bisa on Mon Nov 23, 2015 10:05 pm, edited 2 times in total.
Hosting a factorio server? Take a look at this || init script ||.
Re: [linux] Factorio logparser
*reserved*
Hosting a factorio server? Take a look at this || init script ||.
Re: [linux] Factorio logparser
Been doing some cleanup and "pythonification", presenting to you version v0.1.0 which is now running on my public server - I have yet to build a app that uses the json file, for now I'm simply reading it from disk whenever I want to have a look at current state of affairs.
Last edited by Bisa on Sun Oct 11, 2015 8:06 am, edited 1 time in total.
Hosting a factorio server? Take a look at this || init script ||.
Re: [linux] Factorio logparser
Hey I really like your idea and might use your script.
Right now I am working on a Launcher for Factorio.
With Gui, obviously. I am trying to make a full on wrapper for Factorio where you can just click a server and join, or simply add/remove Mods or Modpacks.
Is it ok with you that I use this for my Project?
This will be very helpful even If I have to rewrite it into Java.
Right now I am working on a Launcher for Factorio.
With Gui, obviously. I am trying to make a full on wrapper for Factorio where you can just click a server and join, or simply add/remove Mods or Modpacks.
Is it ok with you that I use this for my Project?
This will be very helpful even If I have to rewrite it into Java.
Re: [linux] Factorio logparser
It's open source - use it according to the licenseFansana wrote:Hey I really like your idea and might use your script.
Right now I am working on a Launcher for Factorio.
With Gui, obviously. I am trying to make a full on wrapper for Factorio where you can just click a server and join, or simply add/remove Mods or Modpacks.
Is it ok with you that I use this for my Project?
This will be very helpful even If I have to rewrite it into Java.
Hosting a factorio server? Take a look at this || init script ||.
Re: [linux] Factorio logparser
To *anyone*: if you found this script useful, please consider looking at my suggestion for adding this to the factorio binary itself:
https://forums.factorio.com/forum/vie ... =6&t=17980
https://forums.factorio.com/forum/vie ... =6&t=17980
Hosting a factorio server? Take a look at this || init script ||.
Re: [linux] Factorio logparser
Great script. I just installed it on my server, the default log file is so cluttered I was having difficulties reading anything out of it.
Do you know when the game moves the factorio-current.log over to become factorio-previous.log?
Do you know when the game moves the factorio-current.log over to become factorio-previous.log?
Re: [linux] Factorio logparser
thnxMcBirdy wrote:Great script
When the server either stops or starts (I presume its when it starts) hence if you want to retain the logs you should probably make a scripted task to rename/archive the factorio-previous.log before you start a serverMcBirdy wrote: Do you know when the game moves the factorio-current.log over to become factorio-previous.log?
Hosting a factorio server? Take a look at this || init script ||.