Here is a perl program for converting some parts of your minetest log files to a database you can load into a prolog environment.
https://github.com/joneworlds/p0b
convert minetest logs to a prolog database
Re: convert minetest logs to a prolog database
Euhhhh
that's AWESOME... except, now I want to see what you do with this in prolog.
that's AWESOME... except, now I want to see what you do with this in prolog.
Re: convert minetest logs to a prolog database
I am afraid I do not have much prolog code to share. Most of mine was throwaway and I do not have it anymore, but what I had lying around I added to the github repo.
I am interested in questions like “who built that?” ... “what was this week like compared to last week?” ... “who is most active, and where?” ... “how often do they come back?” ... “who builds highest, deepest, furthest, underwater” etc. It is sort of fun to write prolog queries to find the answers.
My data was from about a year of server logs from Jone's Dream. viewtopic.php?f=10&t=18817
So far it is several million facts.
I am interested in questions like “who built that?” ... “what was this week like compared to last week?” ... “who is most active, and where?” ... “how often do they come back?” ... “who builds highest, deepest, furthest, underwater” etc. It is sort of fun to write prolog queries to find the answers.
My data was from about a year of server logs from Jone's Dream. viewtopic.php?f=10&t=18817
So far it is several million facts.
Re: convert minetest logs to a prolog database
Here is some code that finds the most active days on the server. "active" in this case meaning, "the percentage of minutes during that day had at least one block placed by a player"
https://github.com/joneworlds/p0b/blob/ ... e_days.pro
https://github.com/joneworlds/p0b/blob/ ... e_days.pro
Who is online
Users browsing this forum: No registered users and 2 guests