Dominion Strategy Forum

Dominion => Dominion General Discussion => Dominion Online at Shuffle iT => Topic started by: Icehawk78 on January 23, 2017, 10:45:23 pm

Title: [Mod] King's Courtier (Chrome Plugin)
Post by: Icehawk78 on January 23, 2017, 10:45:23 pm
This is still very much a work in progress, but it was suggested that I post this here, since the other two mods are also here.

King's Courtier is a Chrome Plugin that adds some extra functionality to the Shuffle iT site. Currently there are only two features, but more are in progress:


Download from here:  https://github.com/Icehawk78/kings_courtier/releases

Configuration:

I'm working on a screen that will let you change which options are active, but in the meantime, you can change the options by opening your Javascript Console (on Windows, ctrl-shift-j) and running this:

Turn off the text-view kingdom:
Code: [Select]
KC.update_preference('kingdom_text', false);
Turn off the repeat kingdom button:
Code: [Select]
KC.update_preference('show_repeat', false);
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Icehawk78 on January 31, 2017, 06:11:28 am
Finally getting around to updating this post.

I now have the full Kingdom viewer working, which also now allows for naming of cards that are not in visible piles, including split pile cards, individual knights, shelters, and ruins.

Installation instructions:

This can be installed via the Chrome Web Store at King's Courtier (https://chrome.google.com/webstore/detail/kings-courtier/ldclbofdofipkpgnilkjaalbalnjacjk?hl=en-US&gl=US) or by downloading it directly from Github (https://github.com/Icehawk78/kings_courtier/releases).

To open the Kingdom viewer, simply click the "Kingdom" button on the left.

(http://i.imgur.com/XX6Bo40.jpg?1)

You will then be presented with this screen:

(http://i.imgur.com/6IeB6JD.jpg?1)

Some notes:

Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Chris is me on January 31, 2017, 09:40:34 am
This is a fantastic update to the mod and adds some much needed features.

Just one question: I'm really curious about the technical details behind not showing the BM deck in the Kingdom view resulting in leaking your opponent's hand. How does that work?
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Icehawk78 on January 31, 2017, 10:00:57 am
This is a fantastic update to the mod and adds some much needed features.

Just one question: I'm really curious about the technical details behind not showing the BM deck in the Kingdom view resulting in leaking your opponent's hand. How does that work?

The issue is that three black market deck contents themselves are actually hidden, but unfortunately there's only one other zone in the game that has hidden contents - the opponent's hand. As such, there's currently no way for me to know the difference between, say, a knight that has been purchased but is in the opponent's hand, and a knight that has not been purchased from the black market.
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: werothegreat on January 31, 2017, 10:18:50 pm
Will you be implementing SparklePig?
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Icehawk78 on February 01, 2017, 01:59:06 pm
Will you be implementing SparklePig?

90% likely not, at least not as it currently is. If I can come up with a way to display the information that fits with the rest of the styling, then possibly.

More likely would be an option that defaults to showing the player mats when there is anything relevant on them, but I'm not sure how that would interact or work with a 3+ player game. If I do implement this, it would likely just be a box that shows active duration cards or something to that effect.
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Icehawk78 on April 29, 2017, 10:23:40 am
I've uploaded a new version of this extension to the Chrome Web Store, available here (http://"https://chrome.google.com/webstore/detail/ldclbofdofipkpgnilkjaalbalnjacjk/publish-delayed?hl=en-US"), which implements a crude version of player zone indicators, to remind you if any player has cards set aside in various zones.

There's not really much information, but I'm open to alternative methods of displaying what I do have available to me.
Title: Re: [Mod] King's Courtier (Chrome Plugin)
Post by: Gasku on April 21, 2019, 05:05:35 pm
Hi, it is a bit sad that this plugin doesn't work. The "Repeat kingdom" button was a very important feature, that should be in the base game.
Any chance of fix it? I took a look at the code, and tried to why this is not working anymore:
Code: [Select]
publicTableService.changeRule(new TableRule(TableRuleIds.REQUIRED_CARDS, -1, kingdom));
Any help?