convert minetest logs to a prolog database

User avatar
Jone
New member
 
Posts: 7
Joined: Wed May 31, 2017 05:57

convert minetest logs to a prolog database

by Jone » Mon Nov 13, 2017 01:39

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: 1175
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: convert minetest logs to a prolog database

by sofar » Mon Nov 13, 2017 08:19

Euhhhh

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

User avatar
Jone
New member
 
Posts: 7
Joined: Wed May 31, 2017 05:57

Re: convert minetest logs to a prolog database

by Jone » Tue Nov 14, 2017 04:56

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. https://forum.minetest.net/viewtopic.php?f=10&t=18817
So far it is several million facts.
 

User avatar
Jone
New member
 
Posts: 7
Joined: Wed May 31, 2017 05:57

Re: convert minetest logs to a prolog database

by Jone » Fri Nov 17, 2017 05:02

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/master/topn_active_days.pro
 


Return to Minetest-related projects



Who is online

Users browsing this forum: No registered users and 1 guest