Dominion Strategy Forum

Dominion => Dominion General Discussion => Dominion Online at Shuffle iT => Topic started by: tailred on March 08, 2018, 11:11:35 am

Title: Dominion Woodcutter Logging Services
Post by: tailred on March 08, 2018, 11:11:35 am
(the thing I'm proudest of is the name)


Known issues, and to-do:

Storing, reviewing, and sharing logs is one of my favorite things to do after a game, so I've been working on a thing to do that. Unfortunately, there's no way for me to directly pull game logs that I know of, so I can only store logs that users upload :(. Follow the instructions here (http://ceviri.me/woodcutter/) first, where I've written a Tampermonkey userscript to automatically pull logs from ShuffleIT, and send them over.

After that, it'll crunch the log and spit out the log, along with some graphs that show breakdowns and stuff. Like:
(The following screenshots were taken from this log (http://ceviri.me/woodcutter/12282000/display/).)

Visually see how your deck composition evolves, when you shuffle, etc.
(https://i.imgur.com/LQlmZcK.png)

Hide cards to focus on important splits, etc.
(https://i.imgur.com/PxKQNKu.png)

Find out where your VP was coming from
(https://i.imgur.com/TAvHdfA.png)

This thing is a massive work in progress, the visuals are likely to change, the info displayed is likely to change, there's some missing colors, there's a lot of bugs with card behavior (like Inheritance, BoM, and many more) that I'm hoping to stomp out over time (please tell me if you notice any!), but I think it's functional enough that well I'm releasing it for public use.

As for future features, I'm planning to implement searching through uploaded logs, mass statistics (Council Room-esque), and other neat things hopefully once I have a good number of logs that those things become meaningful.
Title: Re: Dominion Woodcutter Logging Services
Post by: Ghacob on March 08, 2018, 02:17:23 pm
Issue: If getting the log fails (in this case, because I don't own the expansions that were in the game), it will immediately concede your next game.
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on March 08, 2018, 09:40:49 pm
Issue: If getting the log fails (in this case, because I don't own the expansions that were in the game), it will immediately concede your next game.

Oh boy, I completely overlooked that possibility. I'll get a fix out, sorry about that.

Edit: It should be resolved.
Title: Re: Dominion Woodcutter Logging Services
Post by: faust on March 09, 2018, 06:00:12 am
Great project:

Request: maybe you can add something to your script that automatically pulls game numbers from finished games so that you can batch-process them?
Title: Re: Dominion Woodcutter Logging Services
Post by: faust on March 09, 2018, 06:20:41 am
Something went wrong here:

http://ceviri.me/woodcutter/12414111/display/
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on March 09, 2018, 07:03:45 am
Something went wrong here:

http://ceviri.me/woodcutter/12414111/display/
Yep, I saw it and fixed it. Thanks for reporting it!
Title: Re: Dominion Woodcutter Logging Services
Post by: assemble_me on March 12, 2018, 05:22:06 pm
Finally something regarding logs we can work with. That has been my biggest issue with the current implementation. Thanks a lot, I've been already trying to work something out but could not make it happen.
Title: Re: Dominion Woodcutter Logging Services
Post by: Seprix on March 12, 2018, 06:48:55 pm
12530108

Something went wrong here.

http://ceviri.me/woodcutter/12530108/display/
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on March 12, 2018, 07:29:00 pm
12530108

Something went wrong here.

http://ceviri.me/woodcutter/12530108/display/
Bug squished.

Thanks for the report!
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on March 16, 2018, 10:07:51 am
I just pushed a bugfix that was affecting some logs. If you've noticed some strange behavior - specifically, the line "<player> draws 1" in the log, you'll need to re-parse the log to fix it.
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on April 02, 2018, 10:56:38 am
Hey guys, I've added a few things to the replays:
See the exact game state
(https://i.imgur.com/x5CoUiJ.png)

Small card labels (and scaling)
(https://i.imgur.com/mxM5t8d.png)

Quickly focus on a single split by long-clicking a card
(https://i.imgur.com/kZqw4pR.png)
Title: Re: Dominion Woodcutter Logging Services
Post by: GendoIkari on October 04, 2018, 05:24:08 pm
Hey, what's the Dominion.Games link to find / load logs?
Title: Re: Dominion Woodcutter Logging Services
Post by: Gasku on December 12, 2018, 11:33:34 am
Is this service working for anyone? It doesn't work for me.
Title: Re: Dominion Woodcutter Logging Services
Post by: markus on December 13, 2018, 05:52:16 am
It's not working at the moment due to the Renaissance release. But I think that ceviri is about to fix that.
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on December 28, 2018, 10:51:14 am
Ok, I've got it working again. Hooray! (Here (http://ceviri.me/woodcutter/21358944/display/)'s an example)

EDIT: If you're grabbing logs please check the 'Log all lines (+ Action etc.)' option. Else the actions / coins tracking will be off.

If you're used to the old interface it'll look a lot different, though. I'm focusing on making Woodcutter more of a replay client over the 'stats/overview' kinda thing that I had previously. Of course the stats will be back, over the coming days, and a lot of back-end stuff that made a lot of logs break have been fixed too, so progress should be pretty quick. It's very bare-bones right now, but that'll be changing quickly over time. Shoot me a PM here, or ideally on Discord (ceviri #0055) if you've got any suggestions.
Title: Re: Dominion Woodcutter Logging Services
Post by: Gasku on December 30, 2018, 03:24:20 pm
Great christmas present :) Thanks!
Title: Re: Dominion Woodcutter Logging Services
Post by: GendoIkari on December 31, 2018, 11:33:58 am
Now that this is working again....

I want to integrate my F.DS extension into this, so that the Kingdom button can work by just including a game number: [kingdom ]21358944[/kingdom]

Is there a URL I could use to grab the Kingdom card info based on a game ID? I could parse it out from the HTML in the http://ceviri.me/woodcutter/21358944/display/ link, but maybe there's an easier way?

Also, is it ok if I use your service in this way; basically as an API call?
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on January 01, 2019, 12:33:34 am
Now that this is working again....

I want to integrate my F.DS extension into this, so that the Kingdom button can work by just including a game number: [kingdom ]21358944[/kingdom]

Is there a URL I could use to grab the Kingdom card info based on a game ID? I could parse it out from the HTML in the http://ceviri.me/woodcutter/21358944/display/ link, but maybe there's an easier way?

Also, is it ok if I use your service in this way; basically as an API call?
I totally don't mind you using it like this - keep in mind that it'll only work for logs that have already been grabbed, though. Right now it doesn't exist, but I can also make it a bit easier for you to parse the kingdom, just gimme a while.
Title: Re: Dominion Woodcutter Logging Services
Post by: markus on January 02, 2019, 09:44:38 am
For the discord bot, Cave-o-Sapien is able to get the kingdoms of any game (even unrated). Maybe there's a better way to do this that doesn't rely on grabbing games for Woodcutter.
Title: Re: Dominion Woodcutter Logging Services
Post by: Jeebus on February 14, 2019, 02:47:11 pm
Hmm, I installed this, checked out a log of an old game, then went to start a new game and I immediately lost the game.
Title: Re: Dominion Woodcutter Logging Services
Post by: GendoIkari on February 14, 2019, 04:25:24 pm
Hmm, I installed this, checked out a log of an old game, then went to start a new game and I immediately lost the game.

Are you implying that looking at old logs makes you a worse player?
Title: Re: Dominion Woodcutter Logging Services
Post by: Gasku on February 17, 2019, 01:05:11 pm
Hi, great tool, but I find hard to see some cards, as they are too small. My suggestion, just make a tooltip when you hover the cards, to see the name or a bigger picture. Thanks, I hope you keep working on this tool.
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on February 18, 2019, 11:16:55 am
Hmm, I installed this, checked out a log of an old game, then went to start a new game and I immediately lost the game.
Hmm, that's definitely weird. Did you pull just a single log, and did it crash or anything when you did?
Title: Re: Dominion Woodcutter Logging Services
Post by: Jeebus on February 18, 2019, 01:01:24 pm
Hmm, I installed this, checked out a log of an old game, then went to start a new game and I immediately lost the game.
Hmm, that's definitely weird. Did you pull just a single log, and did it crash or anything when you did?


Just one log.
I don't think it crashed. It did many things in the client. Since it was the first time I used it, I'm not sure if it did anything unusual.
Title: Re: Dominion Woodcutter Logging Services
Post by: tailred on February 18, 2019, 06:24:29 pm
I know this issue existed before, but I put in a fix a long time ago and hadn't heard of it reoccurring so I assumed it was fixed. I'll keep an eye out.