Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: What info do you need from logs?  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

philosophyguy

  • Minion
  • *****
  • Offline Offline
  • Posts: 575
  • Respect: +297
    • View Profile
What info do you need from logs?
« on: February 14, 2013, 05:52:13 pm »
+2

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?
Logged

rrenaud

  • Administrator
  • *****
  • Offline Offline
  • Posts: 987
  • Uncivilized Barbarian of Statistics
  • Respect: +1177
    • View Profile
    • CouncilRoom
Re: What info do you need from logs?
« Reply #1 on: February 14, 2013, 06:09:49 pm »
+1

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.
Logged
Pages: [1]
 

Page created in 0.056 seconds with 20 queries.