Dominion Strategy Forum

Please login or register.

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

Author Topic: Is There Any Way to Retrieve Logs?  (Read 9326 times)

0 Members and 1 Guest are viewing this topic.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Is There Any Way to Retrieve Logs?
« on: November 19, 2012, 01:40:10 pm »
0

Now that we don't have Council Room, I was wondering if there is anyway for me to get the link to the log of a game I JUST played against Marin, like, an hour ago. It was such a great game, and I wanted to write it up.

Quote
12:47 Marin: It will be a long long long game for you
Logged
I have been forced to accept that lackluster play is a town tell for you.

Captain_Frisk

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1257
  • Respect: +1263
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #1 on: November 19, 2012, 01:41:04 pm »
+2

Now that we don't have Council Room, I was wondering if there is anyway for me to get the link to the log of a game I JUST played against Marin, like, an hour ago. It was such a great game, and I wanted to write it up.

Quote
12:47 Marin: It will be a long long long game for you


Read the isotropic faq.  It will show up in a bundle tonight.
Logged
I support funsockets.... taking as much time as they need to get it right.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #2 on: November 19, 2012, 01:43:27 pm »
+2

Ugh, I have to read something?
Logged
I have been forced to accept that lackluster play is a town tell for you.

Captain_Frisk

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1257
  • Respect: +1263
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #3 on: November 19, 2012, 01:55:31 pm »
+2

Quote
Can I download all the game logs?
First, you might be interested in rrenaud's site councilroom.com, which does various analyses of and searches over the games logs collected from this site.
The CSV file with a summary of all the completed games is no longer produced. There's a replacement being generated but I haven't documented it yet. Coming soon.

If you want more details on each game, you have to download the daily tarball of complete game logs and be prepared to do a bit of simple HTML parsing (regex matching should work well enough). For 11 October 2010:

http://dominion.isotropic.org/gamelog/201010/11/all.tar.bz2
These can be quite large (in recent days they've had ~6200 games and are around 6 MB). Each day's file should be available by about 15-20 minutes after midnight US Pacific time. Note that the daily tarball will contain logs for all games, even those that aren't finished due to a player aborting or some kind of error. Be prepared to filter those out as appropriate if you're doing some kind of analysis on the games.
There is a monthly transfer cap on the server, and if we start to hit it I will take these down. To avoid that, please:

don't download files unless you're going to actually do something with them,
don't download the same files repeatedly — save each day's file on your own computer if you want to build up a collection,
don't scrape individual game logs (the individual .html.gz URLs; I will probably start making these expire after a week or so anyway) — if you want all or most of them then downloading the daily tarball is much more efficient.
Logged
I support funsockets.... taking as much time as they need to get it right.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #4 on: November 20, 2012, 03:48:11 pm »
0

So.... I still don't know how to get yesterday's game logs. You're dealing with a complete technological idiot here.
Logged
I have been forced to accept that lackluster play is a town tell for you.

rrenaud

  • Administrator
  • *****
  • Offline Offline
  • Posts: 991
  • Uncivilized Barbarian of Statistics
  • Respect: +1197
    • View Profile
    • CouncilRoom
Re: Is There Any Way to Retrieve Logs?
« Reply #5 on: November 20, 2012, 04:14:52 pm »
0

201010 is the year/month, 11 is the day.
http://dominion.isotropic.org/gamelog/201010/11/all.tar.bz2

Yesterday was 11/19/12

Get the logs from

http://dominion.isotropic.org/gamelog/201211/19/all.tar.bz2

then use your favorite textual search tool (everyone's (who matters) favorite is grep) to find your logs.
Logged

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #6 on: November 20, 2012, 04:16:49 pm »
+1

Grep? I will go in search of this "grep."
Logged
I have been forced to accept that lackluster play is a town tell for you.

theory

  • Administrator
  • *****
  • Offline Offline
  • Posts: 3603
  • Respect: +6121
    • View Profile
    • Dominion Strategy
Re: Is There Any Way to Retrieve Logs?
« Reply #7 on: November 20, 2012, 04:31:47 pm »
0

Um, do you use Linux?
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #8 on: November 20, 2012, 04:32:05 pm »
+2

game-20121119-092722-9a488d16.html
game-20121119-093346-4a246cdf.html
game-20121119-095512-7da83891.html
game-20121119-150735-c4f1b528.html
game-20121119-223610-a3adb6f3.html
game-20121119-224035-8d2369e6.html
game-20121119-225015-63d0402b.html
game-20121119-230027-3e9ee8a6.html
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #9 on: November 20, 2012, 04:42:20 pm »
0

Anf the how-to for Windows (not tested)

Download the all.tar.bz as described above.
unzip it. If windows can't unzip it, fetch http://www.7-zip.org/

Got to http://gnuwin32.sourceforge.net/packages/grep.htm, fetch the grep, install it
open Terminal (type 'cmd' in "Run" or however this was called)
cd to the directory where you installed grep, and where grep.exe is located

type: grep.exe -l Robz888 "C:\PATH\TO\THE\GAMELOGS\game*.html

This should search for the string "Robz888" in all files named gameSOMETHING.html, which should exactly be all gamelogs, and output the filenames of the ones where a match is found.
Logged

SwitchedFromStarcraft

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1088
  • Respect: +856
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #10 on: November 20, 2012, 05:23:35 pm »
0

then use your favorite textual search tool (everyone's (who matters) favorite is grep) to find your logs.
You're not feeding us a pile of grep, are you?
Logged
Quote from: Donald X.
Posting begets posting.

Quote from: Asper
Donald X made me a design snob.

There is a sucker born every minute.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #11 on: November 20, 2012, 05:47:37 pm »
+3

So, explain it as if you were talking to a baby.
Logged
I have been forced to accept that lackluster play is a town tell for you.

Titandrake

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2210
  • Respect: +2854
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #12 on: November 20, 2012, 06:38:59 pm »
0

Download the archive of all games and unzip it to some folder. Note the folder you extracted the files to.
Download the setup program from the site that DStu posted and run it. Note where it installs grep.exe.
(Assuming Windows 7:) Click the start button, in the search field type "cmd". This should create a prompt whose header reads "C:\Windows\system32\cmd.exe" or something like that.
In this prompt, type "cd FullFolderPathToWhereYouInstalledGrep"
Then type "grep.exe -l ISOTROPIC_NAME "C:\PATH\TO\THE\GAMELOGS\game*.html"

(I haven't tested this)
Logged
I have a blog! It's called Sorta Insightful. Check it out?

sparky5856

  • Bishop
  • ****
  • Offline Offline
  • Posts: 111
  • Respect: +132
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #13 on: November 21, 2012, 12:26:17 am »
0

Seeing stuff here that I'm learning in my computer science courses makes me want to puke. >_< I should get out of this "I hope I'll never see this stuff again" mentality.

So, this grep thing. It takes a regular expression and searches for that regular expression in the given filename. A string of concatenated characters is a regular expression, don't worry so much about this. You can put pretty much any isotropic name into the place Titan has, and grep will search for it. Then, list the filename. The * in the "game*" is a wildcard; it will match any number of characters, so it should match specific game logs as listed by DStu. I forgot what the -l is for. grep has a bunch of options, you shouldn't need them. "grep.exe -l ISOTROPIC_NAME "C:\PATH\TO\THE\GAMELOGS\game*.html" should work.

About cd, make sure the path is something like C:\PATH\TO\PLACE\YOU\INSTALLED\GREP.

Hard to explain this stuff, computers are tricky machines they are.
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #14 on: November 21, 2012, 12:35:05 am »
+3

I forgot what the -l is for.

-l tells grep to output the filename of the file where it found the match instead of the match itself.

btw, the gamelogs I posted above are the ones of Robz...
Logged

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #15 on: November 21, 2012, 12:40:07 am »
0

I forgot what the -l is for.

-l tells grep to output the filename of the file where it found the match instead of the match itself.

btw, the gamelogs I posted above are the ones of Robz...

I keep pasting them into my browser and they don't lead anywhere...

(Like a baby, remember?)
Logged
I have been forced to accept that lackluster play is a town tell for you.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #16 on: November 21, 2012, 12:41:42 am »
0

Oh... I figured it out!!!!! Have to have the isotropic/dominion/nonsense first.
Logged
I have been forced to accept that lackluster play is a town tell for you.

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #17 on: November 21, 2012, 12:42:32 am »
+1

Oh... I figured it out!!!!! Have to have the isotropic/dominion/nonsense first.
\o/
Logged

greatexpectations

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1097
  • Respect: +1067
    • View Profile
Logged
momomoto: ...I looked at the tableau and went "Mountebank? That's for jerks."
rrenaud: Jerks win.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #19 on: November 21, 2012, 12:52:15 am »
0

Nope! The third one, actually. It's indicative of the psychology of Marin.
Logged
I have been forced to accept that lackluster play is a town tell for you.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #20 on: November 21, 2012, 12:52:59 am »
0

And I gave out some +1s to people for helping me out.
Logged
I have been forced to accept that lackluster play is a town tell for you.

Robz888

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2644
  • Shuffle iT Username: Robz888
  • Respect: +3388
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #21 on: November 21, 2012, 12:53:36 am »
+2

I did not +1 Frisk for telling me to, and I quote, "Read the isotropic faq."
Logged
I have been forced to accept that lackluster play is a town tell for you.

Captain_Frisk

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1257
  • Respect: +1263
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #22 on: November 21, 2012, 08:32:06 am »
+1

I did not +1 Frisk for telling me to, and I quote, "Read the isotropic faq."

I still picked up 4 respect on 2 posts, giving me 2 freebies like this one. 
Logged
I support funsockets.... taking as much time as they need to get it right.

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Is There Any Way to Retrieve Logs?
« Reply #23 on: November 21, 2012, 08:36:56 am »
+4

I did not +1 Frisk for telling me to, and I quote, "Read the isotropic faq."
actually, assuming more technical competence, this would be exactly the bit of information that some people need...
Logged
Pages: [1]
 

Page created in 0.191 seconds with 21 queries.