Dominion Strategy Forum

Meta => Feedback => Council Room Feedback => Topic started by: philosophyguy on February 14, 2013, 05:52:13 pm

Title: What info do you need from logs?
Post by: philosophyguy on February 14, 2013, 05:52:13 pm
I'm still working on the Goko log parser, and the next major step will be setting the logs so it is easy to extract whatever info is needed to run councilroom stats. The goal would be to seamlessly integrate councilroom's iso logs with goko, and to include the goko info in the data analysis that is run.

Anyone with knowledge of the councilroom backend—what info do you need from each game? Is there a way that info should be formatted in order to make it easier to integrate with what CR already does for iso?
Title: Re: What info do you need from logs?
Post by: rrenaud on February 14, 2013, 06:09:49 pm
Councilroom turns games into a structured JSON object that represents the game.  They get imported into mongodb, and then all of the stats/indexing/searching/goals code uses that structured representation.

This is what a bunch of parsed games looked like a couple years ago. 

https://raw.github.com/mikemccllstr/dominionstats/master/testing/testdata/20101015-0.json

The format got a bit more cryptic recently.  For space saving purposes, keys were compressed to single chars, for example, decks was replaced with d, the constants are here https://github.com/mikemccllstr/dominionstats/blob/master/keys.py. Some redundant instances of other player names were replaced by indexes into the turn order.

So yeah, CR does a lot more than just reformatting the log.  I haven't tried to run a stand alone instance of CR by myself since Mike took it over, but I think David Lu has managed to do so.  Probably making it work will require you to go whole hog and get your own private copy of CR running.