convert minetest logs to a prolog database

Post Reply
User avatar
Jone
Member
Posts: 12
Joined: Wed May 31, 2017 05:57

convert minetest logs to a prolog database

by Jone » Post

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

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: convert minetest logs to a prolog database

by sofar » Post

Euhhhh

that's AWESOME... except, now I want to see what you do with this in prolog.

User avatar
Jone
Member
Posts: 12
Joined: Wed May 31, 2017 05:57

Re: convert minetest logs to a prolog database

by Jone » Post

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.

User avatar
Jone
Member
Posts: 12
Joined: Wed May 31, 2017 05:57

Re: convert minetest logs to a prolog database

by Jone » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests