Dominion Strategy Forum

Dominion => Dominion Online at Shuffle iT => Dominion General Discussion => Goko Dominion Online => Topic started by: ragingduckd on June 25, 2013, 11:59:19 am

Title: Kingdom Visualizer
Post by: ragingduckd on June 25, 2013, 11:59:19 am
Tool for quickly visualizing a kingdom and copying the images into forum-friendly BBCode: gokologs.drunkensailor.org/kingdom (http://gokologs.drunkensailor.org/kingdom)

Just enter the log url and it'll spit out something like this:

(http://wiki.dominionstrategy.com/images/f/f6/Silk_Road.jpg) (http://wiki.dominionstrategy.com/images/2/20/Horn_of_Plenty.jpg) (http://wiki.dominionstrategy.com/images/3/37/Mystic.jpg) (http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg) (http://wiki.dominionstrategy.com/images/6/60/Saboteur.jpg)
(http://wiki.dominionstrategy.com/images/3/3f/Vagrant.jpg) (http://wiki.dominionstrategy.com/images/7/74/Ambassador.jpg) (http://wiki.dominionstrategy.com/images/b/b2/Doctor.jpg) (http://wiki.dominionstrategy.com/images/8/8a/Fortress.jpg) (http://wiki.dominionstrategy.com/images/6/65/Quarry.jpg)

... along with the BBCode for your game report posts:

Code: [Select]
[center]
[img width=100]http://wiki.dominionstrategy.com/images/f/f6/Silk_Road.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/2/20/Horn_of_Plenty.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/3/37/Mystic.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/6/60/Saboteur.jpg[/img]
[img width=100]http://wiki.dominionstrategy.com/images/3/3f/Vagrant.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/7/74/Ambassador.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/b/b2/Doctor.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/8/8a/Fortress.jpg[/img] [img width=100]http://wiki.dominionstrategy.com/images/6/65/Quarry.jpg[/img]
[/center]
Title: Re: Kingdom Visualizer
Post by: Drab Emordnilap on June 25, 2013, 12:14:02 pm
Maybe you should cap the image width field? I know people can do their own bbcode if they really want to, but I also don't know when someone would ever need this:

Also, would it be possible to make the images be links to the pages on the wiki for the cards?

(http://wiki.dominionstrategy.com/images/8/89/Nomad_Camp.jpg)
Title: Re: Kingdom Visualizer
Post by: Schneau on June 25, 2013, 12:22:46 pm
This is awesome. Great job and may you have many +1s.

Note that on Young Witch boards, the 11th card is left off.
Title: Re: Kingdom Visualizer
Post by: ragingduckd on June 25, 2013, 12:23:33 pm
Maybe you should cap the image width field? I know people can do their own bbcode if they really want to, but I also don't know when someone would ever need this:

You just did.  :D
Title: Re: Kingdom Visualizer
Post by: Drab Emordnilap on June 25, 2013, 12:29:27 pm
Also, would it be possible to make the images be links to the pages on the wiki for the cards?
Title: Re: Kingdom Visualizer
Post by: Watno on June 25, 2013, 12:30:16 pm
This is awesome. Great job and may you have many +1s.

Note that on Young Witch boards, the 11th card is left off.
Yeah, you need to add a next page button.
Title: Re: Kingdom Visualizer
Post by: ragingduckd on June 25, 2013, 12:43:34 pm
Note that on Young Witch boards, the 11th card is left off.

Good catch. Fixed.

Also, would it be possible to make the images be links to the pages on the wiki for the cards?

Done.

There's also the problem that I'm linking to the wiki images and those could change over time. I don't want to host the images myself since these posts will probably outlive my server too. Can anyone suggest a reasonably permanent place to find or put the images?
Title: Re: Kingdom Visualizer
Post by: Blueswan on June 28, 2013, 06:10:12 am
Great work again!  :D
Title: Re: Kingdom Visualizer
Post by: AdamH on July 10, 2013, 12:53:00 pm
You and this are amazing. This is a great fit for this thread (http://forum.dominionstrategy.com/index.php?topic=8822.0) I'm doing.

...it would be super-awesome if this somehow incorporated the availability of Platinum/Colony and Shelters in the display.

Also, if someone played a game IRL and wanted a picture for it, maybe a way to manually input the kingdom cards? I suppose they could just make a solitaire game on Goko and link the log, but you know...

Title: Re: Kingdom Visualizer
Post by: Polk5440 on July 18, 2013, 08:21:06 pm
The link in the opening post needs updating.
Title: Re: Kingdom Visualizer
Post by: ragingduckd on July 18, 2013, 09:04:58 pm
The link in the opening post needs updating.

Thanks. Both urls work now.
Title: Re: Kingdom Visualizer
Post by: florrat on September 27, 2013, 06:36:48 pm
Bug report: In the BBCode, the links of the cards in the bottom row are wrong. (Example (http://forum.dominionstrategy.com/index.php?topic=9456.msg297497#msg297497). Click on any of the cards in the bottom row)
Title: Re: Kingdom Visualizer
Post by: ragingduckd on September 27, 2013, 09:20:16 pm
Bug report: In the BBCode, the links of the cards in the bottom row are wrong. (Example (http://forum.dominionstrategy.com/index.php?topic=9456.msg297497#msg297497). Click on any of the cards in the bottom row)

Fixed now. I can't do anything about the existing posts that were generated with the buggy code though.
Title: Re: Kingdom Visualizer
Post by: Schneau on October 08, 2013, 04:40:04 pm
It would be awesome if below the images for the kingdom, it printed a little [ code] box that contained all of the names of the cards in a format that can be read by the Kingdom Selector part of the Goko Salvager. That way, if you want to try out a kingdom after reading posts like this (http://forum.dominionstrategy.com/index.php?topic=9583.msg302292#msg302292), it's as easy as copy-paste instead of writing them all out.

I don't know if the Kingdom Visualizer code is somewhere that I could contribute to, but I imagine this is an easy change, so if you point me to the code I'd be happy to try to do it myself.

Example:

(http://wiki.dominionstrategy.com/images/f/f6/Silk_Road.jpg) (http://wiki.dominionstrategy.com/images/2/20/Horn_of_Plenty.jpg) (http://wiki.dominionstrategy.com/images/3/37/Mystic.jpg) (http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg) (http://wiki.dominionstrategy.com/images/6/60/Saboteur.jpg)
(http://wiki.dominionstrategy.com/images/3/3f/Vagrant.jpg) (http://wiki.dominionstrategy.com/images/7/74/Ambassador.jpg) (http://wiki.dominionstrategy.com/images/b/b2/Doctor.jpg) (http://wiki.dominionstrategy.com/images/8/8a/Fortress.jpg) (http://wiki.dominionstrategy.com/images/6/65/Quarry.jpg)
Code: [Select]
Vagrant, Ambassador, Doctor, Fortress, Quarry, Silk Road, Horn of Plenty, Mystic, Royal Seal, Saboteur
Title: Re: Kingdom Visualizer
Post by: Schneau on October 08, 2013, 07:36:19 pm
It would be awesome if below the images for the kingdom, it printed a little [ code] box that contained all of the names of the cards in a format that can be read by the Kingdom Selector part of the Goko Salvager. That way, if you want to try out a kingdom after reading posts like this (http://forum.dominionstrategy.com/index.php?topic=9583.msg302292#msg302292), it's as easy as copy-paste instead of writing them all out.

I don't know if the Kingdom Visualizer code is somewhere that I could contribute to, but I imagine this is an easy change, so if you point me to the code I'd be happy to try to do it myself.

Example:

(http://wiki.dominionstrategy.com/images/f/f6/Silk_Road.jpg) (http://wiki.dominionstrategy.com/images/2/20/Horn_of_Plenty.jpg) (http://wiki.dominionstrategy.com/images/3/37/Mystic.jpg) (http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg) (http://wiki.dominionstrategy.com/images/6/60/Saboteur.jpg)
(http://wiki.dominionstrategy.com/images/3/3f/Vagrant.jpg) (http://wiki.dominionstrategy.com/images/7/74/Ambassador.jpg) (http://wiki.dominionstrategy.com/images/b/b2/Doctor.jpg) (http://wiki.dominionstrategy.com/images/8/8a/Fortress.jpg) (http://wiki.dominionstrategy.com/images/6/65/Quarry.jpg)
Code: [Select]
Vagrant, Ambassador, Doctor, Fortress, Quarry, Silk Road, Horn of Plenty, Mystic, Royal Seal, Saboteur

I found the code on GitHub and coded it up, and put in a pull request. I don't know if that's how you do things, but it's worth a shot!
Title: Re: Kingdom Visualizer
Post by: ragingduckd on October 08, 2013, 08:02:51 pm
It would be awesome if below the images for the kingdom, it printed a little [ code] box that contained all of the names of the cards in a format that can be read by the Kingdom Selector part of the Goko Salvager. That way, if you want to try out a kingdom after reading posts like this (http://forum.dominionstrategy.com/index.php?topic=9583.msg302292#msg302292), it's as easy as copy-paste instead of writing them all out.

I don't know if the Kingdom Visualizer code is somewhere that I could contribute to, but I imagine this is an easy change, so if you point me to the code I'd be happy to try to do it myself.

Example:

(http://wiki.dominionstrategy.com/images/f/f6/Silk_Road.jpg) (http://wiki.dominionstrategy.com/images/2/20/Horn_of_Plenty.jpg) (http://wiki.dominionstrategy.com/images/3/37/Mystic.jpg) (http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg) (http://wiki.dominionstrategy.com/images/6/60/Saboteur.jpg)
(http://wiki.dominionstrategy.com/images/3/3f/Vagrant.jpg) (http://wiki.dominionstrategy.com/images/7/74/Ambassador.jpg) (http://wiki.dominionstrategy.com/images/b/b2/Doctor.jpg) (http://wiki.dominionstrategy.com/images/8/8a/Fortress.jpg) (http://wiki.dominionstrategy.com/images/6/65/Quarry.jpg)
Code: [Select]
Vagrant, Ambassador, Doctor, Fortress, Quarry, Silk Road, Horn of Plenty, Mystic, Royal Seal, Saboteur

I found the code on GitHub and coded it up, and put in a pull request. I don't know if that's how you do things, but it's worth a shot!

Works great! Thanks!

And yes, contributions via github pull request are perfect.
Title: Re: Kingdom Visualizer
Post by: Schneau on October 08, 2013, 08:28:03 pm
I found the code on GitHub and coded it up, and put in a pull request. I don't know if that's how you do things, but it's worth a shot!

Works great! Thanks!

And yes, contributions via github pull request are perfect.

Sweet, I tried it out and it works! What fast service!