Dominion Strategy Forum

Dominion => Dominion Online at Shuffle iT => Dominion General Discussion => Goko Dominion Online => Topic started by: ragingduckd on July 26, 2013, 10:18:08 am

Title: Automatch Extension
Post by: ragingduckd on July 26, 2013, 10:18:08 am
Automatch is part of the Goko Salvager browser extension. It searches other lobbies for players who match your game criteria.

How to use it.
Title: Re: Automatch Extension
Post by: Kirian on July 26, 2013, 10:34:52 am
Edit:  Never mind, I should actually like read or something.
Title: Re: Automatch Extension
Post by: hsiale on July 26, 2013, 10:50:20 am
On Firefox 22.0: clicking "Play" leads to black screen, client unresposive.

Game was not made using automatch, I had the extension installed but not searching for a game. Is there a way to change language of Firefox easily - all my bug reports are generated in Polish which I guess is of no use to you.

After turnig the extension off a game started without problems.
Title: Re: Automatch Extension
Post by: yed on July 26, 2013, 11:21:21 am
Looking for a match...

Good work :) Thx
Title: Re: Automatch Extension
Post by: Watno on July 26, 2013, 11:57:13 am
Is there anyone around who wants to try being matched?
Title: Re: Automatch Extension
Post by: Watno on July 26, 2013, 12:10:49 pm
I'm also having the black screen after starting a game using Firefox 22 on Windows 7
Title: Re: Automatch Extension
Post by: SCSN on July 26, 2013, 12:31:44 pm
Great work!

It doesn't work under Chrome with the Tampermonkey extension (Nutki's Firefox script does); the Automatch button doesn't show up. Are you planning to make a separate Chrome extension? You answered that question in the development thread :)
Title: Re: Automatch Extension
Post by: ragingduckd on July 26, 2013, 12:49:10 pm
On Firefox 22.0: clicking "Play" leads to black screen, client unresposive.

Oh! You guys wanted to be matched and be able to start the game too! Hrm...

This one may be hard to track down because it's obviously impossible. :P

Nevermind... I found it. Oddly enough, I couldn't find a JavaScript Scumbag Steve image online.
Title: Re: Automatch Extension
Post by: SCSN on July 26, 2013, 01:16:41 pm
(http://i.qkme.me/3vb182.jpg)
Title: Re: Automatch Extension
Post by: ragingduckd on July 26, 2013, 01:20:36 pm
The black screen issue and the creating-pro-games-even-when-casual-is-selected issue are fixed in the new version, which I've whimsically named "Goko Automatch 2."
Title: Re: Automatch Extension
Post by: SCSN on July 26, 2013, 01:31:41 pm
The black screen issue and the creating-pro-games-even-when-casual-is-selected issue are fixed in the new version, which I've whimsically named "Goko Automatch 2."

Once you've your extension fully working, you should rename it "Goko 1.0".
Title: Re: Automatch Extension
Post by: Fabian on July 26, 2013, 01:38:55 pm
The black screen issue and the creating-pro-games-even-when-casual-is-selected issue are fixed in the new version, which I've whimsically named "Goko Automatch 2."

Once you've your extension fully working, you should rename it "Goko 1.0".

While we're on that, whatever happened to the plans of that greasemonkey script to recreate the UI of Isotropic?

I like the ring of "Isotropic 2.0" quite a bit more.
Title: Re: Automatch Extension
Post by: ragingduckd on July 26, 2013, 03:10:14 pm
The black screen issue and the creating-pro-games-even-when-casual-is-selected issue are fixed in the new version, which I've whimsically named "Goko Automatch 2."

Once you've your extension fully working, you should rename it "Goko 1.0".

While we're on that, whatever happened to the plans of that greasemonkey script to recreate the UI of Isotropic?

I like the ring of "Isotropic 2.0" quite a bit more.

I'm not sure what you're referring to. Do you mean Iso's automatch UI? Or creating a whole text-based front-end for Goko?
Title: Re: Automatch Extension
Post by: Fabian on July 26, 2013, 04:20:56 pm
Pretty much just any excuse to make Goko completely into Isotropic would work for me.
Title: Re: Automatch Extension
Post by: sudgy on July 26, 2013, 05:11:44 pm
Just hurry up and make it for chrome, I can't wait...

edit: I'm not trying to be pushy, I'm kind of trying to be funny.
Title: Re: Automatch Extension
Post by: ragingduckd on July 26, 2013, 06:39:40 pm
Pretty much just any excuse to make Goko completely into Isotropic would work for me.

Honestly, this isn't really on my agenda. There's definitely stuff like misclick prevention that would be nice to see, and the log viewer is superb, but mostly I like Goko's game interface.
Title: Re: Automatch Extension
Post by: StrongRhino on July 26, 2013, 11:51:34 pm
Does the "All Cards" criteria just for sets, or do promos count.
Thanks.
Title: Re: Automatch Extension
Post by: ragingduckd on July 27, 2013, 12:43:28 am
Does the "All Cards" criteria just for sets, or do promos count.
Thanks.

Only sets. I'm ignoring promos entirely for now. It wouldn't be hard to include them though.
Title: Re: Automatch Extension
Post by: Beyond Awesome on July 29, 2013, 01:36:04 am
Is there anyway to get this up for Chrome?
Title: Re: Automatch Extension
Post by: sudgy on July 29, 2013, 01:53:06 am
Is there anyway to get this up for Chrome?

michaeljb said he would work on it.  I've been waiting for it too...
Title: Re: Automatch Extension
Post by: ragingduckd on July 29, 2013, 02:18:17 am
Is there anyway to get this up for Chrome?

michaeljb said he would work on it.  I've been waiting for it too...

You guys aren't missing much. Someone contradict me if I'm wrong, but I don't think anybody's gotten a match yet except in testing on the first day. Either there aren't many people using it yet, or the server isn't actually working right.
Title: Re: Automatch Extension
Post by: Watno on July 29, 2013, 09:22:31 am
I have been trying to find a match a bit,  buit wasn't successful.
Title: Re: Automatch Extension
Post by: StrongRhino on July 30, 2013, 12:04:37 am
A pretty-much-working Automatch is now available for Firefox. How to use it:
  • Install Greasemonkey for Firefox
  • Install the Automatch user script (https://github.com/aiannacc/goko-dominion-tools/raw/master/web/static/Goko_automatch.user.js). You can install it alongside the log viewer extension.
  • Go to http://play.goko.com/Dominion/gameClient.html (https will not work)
  • Log in normally and click the "Automatch" button next to "Create Game" in the lobby
  • Select whatever seek requirements you want and Submit
  • Either wait around or go wander off and go look for a game manually. Automatch is "fire and forget."
  • When a match is found, a popup will appear. Accept or reject the offered match.
  • When both/all players have accepted the match, Automatch will automatcially send you to Outpost and create/join the game.
  • When the automatch dialog disappears, you're good to go. Start the game manually.
It's still pretty rough around the edges. I anticipate plenty of bugs. It's also totally at your own risk. I assume no responsibility for games you didn't really want to join or Goko canceling your account or whatever. Not that I anticipate that sort of stuff, but I'm just saying.
Why does this not have more upvotes? We've been asking for automatch on Goko forever, and once we get it it is surpassed on the weekly "Most Upvoted Post" list by 4 memes? Come on people!!!
Title: Re: Automatch Extension
Post by: Kirian on July 30, 2013, 01:41:15 am
A pretty-much-working Automatch is now available for Firefox. How to use it:
  • Install Greasemonkey for Firefox
  • Install the Automatch user script (https://github.com/aiannacc/goko-dominion-tools/raw/master/web/static/Goko_automatch.user.js). You can install it alongside the log viewer extension.
  • Go to http://play.goko.com/Dominion/gameClient.html (https will not work)
  • Log in normally and click the "Automatch" button next to "Create Game" in the lobby
  • Select whatever seek requirements you want and Submit
  • Either wait around or go wander off and go look for a game manually. Automatch is "fire and forget."
  • When a match is found, a popup will appear. Accept or reject the offered match.
  • When both/all players have accepted the match, Automatch will automatcially send you to Outpost and create/join the game.
  • When the automatch dialog disappears, you're good to go. Start the game manually.
It's still pretty rough around the edges. I anticipate plenty of bugs. It's also totally at your own risk. I assume no responsibility for games you didn't really want to join or Goko canceling your account or whatever. Not that I anticipate that sort of stuff, but I'm just saying.
Why does this not have more upvotes? We've been asking for automatch on Goko forever, and once we get it it is surpassed on the weekly "Most Upvoted Post" list by 4 memes? Come on people!!!

Hey, I've given it all the upvotes I could!
Title: Re: Automatch Extension
Post by: Beyond Awesome on July 30, 2013, 02:32:28 am
Is there anyway to get this up for Chrome?

michaeljb said he would work on it.  I've been waiting for it too...

You guys aren't missing much. Someone contradict me if I'm wrong, but I don't think anybody's gotten a match yet except in testing on the first day. Either there aren't many people using it yet, or the server isn't actually working right.

If people with Chrome start using it, it does make it more likely that the feature will work much better. Also, making this stickied could also help getting more people installing it.
Title: Re: Automatch Extension
Post by: ragingduckd on July 30, 2013, 08:56:24 am
Is there anyway to get this up for Chrome?

michaeljb said he would work on it.  I've been waiting for it too...

You guys aren't missing much. Someone contradict me if I'm wrong, but I don't think anybody's gotten a match yet except in testing on the first day. Either there aren't many people using it yet, or the server isn't actually working right.

If people with Chrome start using it, it does make it more likely that the feature will work much better. Also, making this stickied could also help getting more people installing it.

Definitely. There's also a pretty huge difference between an automatch that's technically functional and one that transparently finds you a game. We're still some way off from the latter goal, mostly because there aren't that many people using it yet.

I think there are three main problems:
1. It isn't available for Chrome, Safari, Opera, etc. It's not even all that convenient to set up on Firefox.
2. It doesn't work on https, which goko uses by default unless you manually enter the address.
3. It's not integrated with michaeljb's primary user extension.

Also see the Automatch development thread for important features that I haven't implemented yet.
Title: Re: Automatch Extension
Post by: GendoIkari on July 30, 2013, 09:47:42 am
Quote
Go to http://play.goko.com/Dominion/gameClient.html (https will not work)
Does anyone else think that the fact that this won't autoroute to https is a good sign that Goko either doesn't understand how web security works, or doesn't know how to configure a web server?
Title: Re: Automatch Extension
Post by: michaeljb on August 01, 2013, 02:43:46 am
Download for Chrome

It's a .crx file. To install it in Chrome, download the file, then double click it, and Chrome should give you a prompt about installing it. If that doesn't work, go to your extensions page (http://chrome://extensions) and click-and-drag the file to the extension list.

Since this is not in the Chrome store, it won't auto-update. The plan is to integrate it with the main extension soon.


Automatch is now (theoretically) part of Goko Salvager.
Title: Re: Automatch Extension
Post by: ragingduckd on August 08, 2013, 10:53:55 am
It's still pretty rough around the edges. I anticipate plenty of bugs. It's also totally at your own risk. I assume no responsibility for games you didn't really want to join or Goko canceling your account or whatever. Not that I anticipate that sort of stuff, but I'm just saying.

I wrote this warning in my initial release and some people mentioned that they'd hesitated to try automatch because of it. I've done a whole lot more development and testing since then and I'm much more confident in it now.

So please don't hesitate. The incarnation of Automatch in Goko Salvager 2.1+ is quite safe. It's using the Goko framework in a way that looks 100% normal to the server, and I haven't once seen it make an incorrect match.
Title: Re: Automatch Extension
Post by: blueblimp on August 09, 2013, 12:08:01 am
So, I'm requesting an automatch at +/-3000 and it's been saying "looking for a match..." for a while now. I guess that means it's working but nobody else is looking for a match? Would be nice if it printed something about the number of people currently using automatch, or something of that nature.
Title: Re: Automatch Extension
Post by: sudgy on August 09, 2013, 12:10:19 am
So, I'm requesting an automatch at +/-3000 and it's been saying "looking for a match..." for a while now. I guess that means it's working but nobody else is looking for a match? Would be nice if it printed something about the number of people currently using automatch, or something of that nature.

I was thinking the same thing...
Title: Re: Automatch Extension
Post by: ragingduckd on August 09, 2013, 12:13:45 am
So, I'm requesting an automatch at +/-3000 and it's been saying "looking for a match..." for a while now. I guess that means it's working but nobody else is looking for a match? Would be nice if it printed something about the number of people currently using automatch, or something of that nature.

I was thinking the same thing...

Yeah. There don't seem to be a whole lot of people looking for matches, or maybe some of the seeks aren't getting processed right. Check the status here:

http://gokologs.drunkensailor.org/static/automatch_testserver.html

It's not super-detailed. You can get more information on the matches by opening up the JS console (use "inspect element"). I may eventually incorporate this sort of info into the UI.
Title: Re: Automatch Extension
Post by: blueblimp on August 09, 2013, 01:02:16 am
I'm happy to report having been matched with Slyfox & then Mic Qsenoch not long after posting in this thread. Very nice! The user experience is really good, especially for a fan-made extension.

Somebody posted this feature request in some other thread already, but a beep when a match is made would be handy.
Title: Re: Automatch Extension
Post by: blueblimp on August 09, 2013, 01:15:17 am
Actually while posting feature requests, it would be awesome for the automatch status info to show in the same place the log shows once you're playing a game.
Title: Re: Automatch Extension
Post by: eliegel34 on August 10, 2013, 07:21:34 pm
Can you add a beep, or some sound like the extension does when you find an automatch?  I'm usually in another browser, while i'm waiting to find someone, so having that would be nice.  Also, this is awesome :).
Title: Re: Automatch Extension
Post by: yed on August 11, 2013, 05:23:39 am
http://gokologs.drunkensailor.org/static/automatch_testserver.html
uses 2Mbits/s
Not a problem, it is probably intentional.
I'm just letting you know in case you don't know it so that it don't drain your upload if multiple users start using it as you link to it (http://forum.dominionstrategy.com/index.php?topic=9063.0).
Title: Re: Automatch Extension
Post by: ragingduckd on August 11, 2013, 05:40:10 am
http://gokologs.drunkensailor.org/static/automatch_testserver.html
uses 2Mbits/s
Not a problem, it is probably intentional.
I'm just letting you know in case you don't know it so that it don't drain your upload if multiple users start using it as you link to it (http://forum.dominionstrategy.com/index.php?topic=9063.0).

Nope, not intentional at all. Thanks for the heads up.

I wrote it for local testing and then provided the link without thinking it through. I imagine it's all but unusable from the typical home connection.

I think the problem is:
1. It's sending full updates instead of incremental ones
2. It's sending updates on all messages, including pings.

I'll just stop sending updates on pings. That's an easy fix and I think it'll do the trick.
Title: Re: Automatch Extension
Post by: fprefect on August 12, 2013, 07:59:20 am
Hello... I am not sure if I completely get how this works... Does the extension automatically make the player with more sets the host? I do not own any sets... so do I have a chance to get matched at all?
Title: Re: Automatch Extension
Post by: Voltaire on August 12, 2013, 04:31:24 pm
So is this working now? I still have a grayed-out play button in Firefox and I'm not sure if that's to be expected or not. I've checked a few threads and I'm unclear, sorry of this is an obvious question.
Title: Re: Automatch Extension
Post by: Watno on August 12, 2013, 04:37:27 pm
It's working for me.
Have you made sure you have the latest version of Dominion Salvager?
Title: Re: Automatch Extension
Post by: Kirian on August 15, 2013, 11:48:35 am
OK, does anyone else experience long wait times between accepting an automatch and having the other player accept?  I'm wondering if it's people being away from their computers, or lag in the system.  Sometimes it seems to be instantaneous, other times I've started another game after 3 minutes of waiting on an accepted automatch.

Part of the reason, I think, that automatch doesn't have a critical mass is that the very people who would be early adopters of it also are most likely to find matches the normal way, i.e. through having all the cards and a middling or higher rating.
Title: Re: Automatch Extension
Post by: Beyond Awesome on August 15, 2013, 01:55:35 pm
OK, does anyone else experience long wait times between accepting an automatch and having the other player accept?  I'm wondering if it's people being away from their computers, or lag in the system.  Sometimes it seems to be instantaneous, other times I've started another game after 3 minutes of waiting on an accepted automatch.

Part of the reason, I think, that automatch doesn't have a critical mass is that the very people who would be early adopters of it also are most likely to find matches the normal way, i.e. through having all the cards and a middling or higher rating.

I've had the problem before. I think there needs to be a timeout for automatch, maybe a minute or so, then start looking for another opponent.
Title: Re: Automatch Extension
Post by: dondon151 on August 15, 2013, 01:58:02 pm
I don't remember how long Iso's automatch timeout was, but it was certainly less than a minute.
Title: Re: Automatch Extension
Post by: Watno on August 15, 2013, 02:30:25 pm
OK, does anyone else experience long wait times between accepting an automatch and having the other player accept?  I'm wondering if it's people being away from their computers, or lag in the system.  Sometimes it seems to be instantaneous, other times I've started another game after 3 minutes of waiting on an accepted automatch.

That might have been me. I usually start automatch and then switch to another tab and check back occasionally. A notification sound and a flashing tab like on iso would help more than a time-out i think.
Title: Re: Automatch Extension
Post by: ragingduckd on August 15, 2013, 03:04:59 pm
OK, does anyone else experience long wait times between accepting an automatch and having the other player accept?  I'm wondering if it's people being away from their computers, or lag in the system.  Sometimes it seems to be instantaneous, other times I've started another game after 3 minutes of waiting on an accepted automatch.

That might have been me. I usually start automatch and then switch to another tab and check back occasionally. A notification sound and a flashing tab like on iso would help more than a time-out i think.

Agreed, the notification sound should help. The code for that works and it'll be in the next release (probably this weekend).

For now, if you think your proposed opponent is AWOL, click "abort" and re-submit your seek request. We may want an explicit timeout too, but I'm inclined to hold off on that for now, since matches are so few and far between.
Title: Re: Automatch Extension
Post by: Watno on August 15, 2013, 06:25:04 pm
There's actually a popup that opens the game tab when your opponent declines the automatch. Could you do the same when an automatch is found?
Title: Re: Automatch Extension
Post by: pst on August 15, 2013, 09:12:20 pm
I've had the problem before. I think there needs to be a timeout for automatch, maybe a minute or so, then start looking for another opponent.

In Isotropic you would wait for the timeout if it seemed like the opponent was awol, because if you said no yourself you'd often just get the same automatch again.

Even better would be if automatch kept looking for games until you actually are starting a game, so you could have several proposals at the same time. If one opponent is slow in answering, just take another game instead. If someone wants to wait to see if something better comes along, let them. Often they'll get neither game when people accept other offers instead.