Dominion Strategy Forum

Dominion => Dominion General Discussion => Dominion Online at Shuffle iT => Topic started by: tailred on January 15, 2017, 10:19:30 am

Title: Dominion for Lazy People
Post by: tailred on January 15, 2017, 10:19:30 am
(thread format shamelessly stolen from, and largely motivated by the mod by Breppert)
So I'm kind of a lazy guy, and some times I just don't feel bothered enough to move the mouse to play Dominion. It's those times that I think - why not keyboard shortcuts? After all, Prismata's a similar enough game, and it's almost entirely playable by keyboard, so why not Dominion?

(http://imgur.com/wHH7siP.jpg)
Features:
- Play any card (in play, discarding, trashing, whatever) by hitting its corresponding hotkey string. For example, Laboratory's in the above screenshot is AR.
- I know what you're thinking. Two keys? How is that convenient at all? Well the thing is, the first key in each string (the prefix) is always preserved, unless you hit a different prefix. So, if we were to play a string of Labs, we could just hit ARRRRRR.
- Sometimes you want to click on something from the supply instead of from your hand, say if you want to buy a silver from the supply. If you didn't have a silver in your hand, hitting the QW hotkey will still buy it for you, but if for whatever reason you don't want to play a silver in your hand, simply hold down shift as you hit W (I'll find some way to put this information on screen.)
- End actions/turn with [space].
- When interacting with lists of things (buttons, revealed cards, etc.), if you wish to play, say, the third card from the left, you can just hit 3.
- If you want to input larger numbers (like if you want to play 12 coin tokens), you can hold down shift, type 12, then hit [P] to submit the number. If you messed up, just hold down shift again and type a new number.
- Some menus (like the traveller return menu) can be traversed with the arrow keys. Use [P] to select/submit things.
- Hit ` to activate the menu buttons (resign etc.). This also pulls up the icon menu in the bottom right, which includes search, and cycling through mats.
- Activate start-of-turn things with the corresponding number buttons.

Things to implement:
-Visualizations for sliders (especially Secret Chamber's place somewhere in deck)
-Autoplay ala MMF.

How to install:
1) Install GreaseMonkey for Firefox (I'm only officially supporting Firefox, though you can make it work in other browsers)
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
2) Install my script: https://greasyfork.org/en/scripts/26553-dominion-for-lazy-folks
Title: Re: Dominion for Lazy People
Post by: Razzishi on January 15, 2017, 11:56:11 pm
I was just thinking today about how cool it would be if there were keyboard shortcuts like in Prismata.  I disagree with the philosophy of having everything done by keyboard (I never bought random units in Prismata with hotkeys, only base units), but being so used to DD, space, space it would be interesting to have something similar.

Unfortunately, I cannot get the game to end properly with Firefox.  Unless they fixed it recently, the game hangs for me when a victory condition is reached without displaying the results screen.  I like Firefox better than Chrome for one really stupid specific reason (that's not Greasemonkey), but I just play on Chrome so that the game ends properly.  Are you actually using Firefox and finishing games normally?
Title: Re: Dominion for Lazy People
Post by: tailred on January 16, 2017, 04:08:27 am
I was just thinking today about how cool it would be if there were keyboard shortcuts like in Prismata.  I disagree with the philosophy of having everything done by keyboard (I never bought random units in Prismata with hotkeys, only base units), but being so used to DD, space, space it would be interesting to have something similar.

Unfortunately, I cannot get the game to end properly with Firefox.  Unless they fixed it recently, the game hangs for me when a victory condition is reached without displaying the results screen.  I like Firefox better than Chrome for one really stupid specific reason (that's not Greasemonkey), but I just play on Chrome so that the game ends properly.  Are you actually using Firefox and finishing games normally?
It works on Firefox for me on my PC, but not my mobile, where I use Chrome.
Title: Re: Dominion for Lazy People
Post by: sc0UT on January 16, 2017, 12:33:43 pm
I have never encountered your problem. Firefox works fine on my machine.
v50.1.0
Win7
Title: Re: Dominion for Lazy People
Post by: gkrieg13 on January 16, 2017, 07:32:13 pm
On a mac, with macOS sierra, I get that the first cards in the supply are - [ ], none of which work.  The rest of it is awesome though.
Title: Re: Dominion for Lazy People
Post by: tailred on January 17, 2017, 09:22:54 am
On a mac, with macOS sierra, I get that the first cards in the supply are - [ ], none of which work.  The rest of it is awesome though.
Just fixed this issue.
Title: Re: Dominion for Lazy People
Post by: Joseph2302 on January 18, 2017, 03:15:44 am
I have a question. I'm lazy and the installation for this seems long. Guess lazy people may be too lazy to install it.
Title: Re: Dominion for Lazy People
Post by: LaLight on January 18, 2017, 03:18:49 am
what are the keyboards shortcuts for installation of this app?
Title: Re: Dominion for Lazy People
Post by: sudgy on January 18, 2017, 01:21:34 pm
what are the keyboards shortcuts for installation of this app?

Push tab 73 times until you highlight the link...
Title: Re: Dominion for Lazy People
Post by: gkrieg13 on January 18, 2017, 03:03:41 pm
I have an issue with a mismatch when there are more than 10 piles in the supply.  I always end up buying the wrong things.
Title: Re: Dominion for Lazy People
Post by: tailred on January 18, 2017, 05:39:43 pm
I have an issue with a mismatch when there are more than 10 piles in the supply.  I always end up buying the wrong things.
Hmm, I remember fixing this earlier. Are you using the latest version?
Title: Re: Dominion for Lazy People
Post by: mangsky on January 18, 2017, 11:23:06 pm
awesome little script! thanks!
(even if I'm not all thaaaaat lazy:p)
Title: Re: Dominion for Lazy People
Post by: gkrieg13 on January 19, 2017, 02:53:02 pm
I have an issue with a mismatch when there are more than 10 piles in the supply.  I always end up buying the wrong things.
Hmm, I remember fixing this earlier. Are you using the latest version?

I am on the latest version. It was on a kingdom with ruins I believe.
Title: Re: Dominion for Lazy People
Post by: tailred on January 19, 2017, 07:43:27 pm
I have an issue with a mismatch when there are more than 10 piles in the supply.  I always end up buying the wrong things.
Hmm, I remember fixing this earlier. Are you using the latest version?

I am on the latest version. It was on a kingdom with ruins I believe.
I'll take a look at it again tonight.

Edit: Snagged it. That was a pretty embarrassing error.
Title: Re: Dominion for Lazy People
Post by: LibraryAdventurer on January 29, 2017, 01:57:03 am
Elsewhere, you linked to this thread saying that you made it so we can name cards (like with mystic/wishing well) correctly, including shelters, non-visible ruins, etc.  I don't see this on the feature list in the OP.

Correct card-naming is the only functionality I'm interested in here (I like using the mouse -and for me mouse-only is lazier than using the keyboard anyway). The only problem is that if I use this, I can't also use the Making More ShuffleIt add-on because it's Chrome only.  :P
Title: Re: Dominion for Lazy People
Post by: singletee on January 29, 2017, 02:17:05 am
Elsewhere, you linked to this thread saying that you made it so we can name cards (like with mystic/wishing well) correctly, including shelters, non-visible ruins, etc.  I don't see this on the feature list in the OP.

Correct card-naming is the only functionality I'm interested in here (I like using the mouse). The only problem is that if I use this, I can't also use the Making More ShuffleIt add-on because it's Chrome only.  :P

User scripts like this generally aren't browser-dependent and work fine in any browser that has a user scripting extension (Greasemonkey, Tampermonkey, etc.) installed, or has a built-in user script manager. For example, Making More ShuffleIt works fine in my Firefox (though I did have to tweak the include rules to get it to install).
Title: Re: Dominion for Lazy People
Post by: LibraryAdventurer on January 29, 2017, 02:24:21 am
Elsewhere, you linked to this thread saying that you made it so we can name cards (like with mystic/wishing well) correctly, including shelters, non-visible ruins, etc.  I don't see this on the feature list in the OP.

Correct card-naming is the only functionality I'm interested in here (I like using the mouse). The only problem is that if I use this, I can't also use the Making More ShuffleIt add-on because it's Chrome only.  :P

User scripts like this generally aren't browser-dependent and work fine in any browser that has a user scripting extension (Greasemonkey, Tampermonkey, etc.) installed, or has a built-in user script manager. For example, Making More ShuffleIt works fine in my Firefox (though I did have to tweak the include rules to get it to install).
oh. okay. I'll try it.
Title: Re: Dominion for Lazy People
Post by: tailred on January 29, 2017, 04:44:40 am
Elsewhere, you linked to this thread saying that you made it so we can name cards (like with mystic/wishing well) correctly, including shelters, non-visible ruins, etc.  I don't see this on the feature list in the OP.
Uh, I tried to actually imply that I *didn't* have that implemented, what I did was just make it so that you can name cards in hand typing out their name, I guess I might have suggested something that I didn't mean to, sorry >.<
Title: Re: Dominion for Lazy People
Post by: Calamitas on January 29, 2017, 01:22:40 pm
How can one autoplay by keyboard? Somehow pressing number keys doesn't work for me :/
Title: Re: Dominion for Lazy People
Post by: LibraryAdventurer on January 29, 2017, 03:05:31 pm
Elsewhere, you linked to this thread saying that you made it so we can name cards (like with mystic/wishing well) correctly, including shelters, non-visible ruins, etc.  I don't see this on the feature list in the OP.
Uh, I tried to actually imply that I *didn't* have that implemented, what I did was just make it so that you can name cards in hand typing out their name, I guess I might have suggested something that I didn't mean to, sorry >.<
oh. nevermind then.
Title: Re: Dominion for Lazy People
Post by: SirD on February 01, 2017, 05:05:14 am
Hi tailred

that addon is a great idea. Would you be willing to implement the German keyboard that has switched Y and Z keys? It's quite a pain without.

P.S. It would be beautiful if the button text could also have the shortcurt added.
Title: Re: Dominion for Lazy People
Post by: tailred on February 01, 2017, 07:15:30 am
Hi tailred

that addon is a great idea. Would you be willing to implement the German keyboard that has switched Y and Z keys? It's quite a pain without.

P.S. It would be beautiful if the button text could also have the shortcurt added.
I'm planning to add general customization at some point in the future, as well as the button text, but for now I'm being lazy. Watch this space!
Title: Re: Dominion for Lazy People
Post by: tailred on February 14, 2017, 07:16:01 am
I just did an update that changes around quite a bit of functionality. Would appreciate feedback on it, especially about how intuitive/user-friendly everything is.
Title: Re: Dominion for Lazy People
Post by: Calamitas on February 17, 2017, 02:49:25 pm
I just did an update that changes around quite a bit of functionality. Would appreciate feedback on it, especially about how intuitive/user-friendly everything is.
I really like it, thanks for the great work :)