Dominion Strategy Forum
Dominion => Dominion Online at Shuffle iT => Dominion General Discussion => Goko Dominion Online => Topic started by: philosophyguy on February 04, 2013, 01:45:37 pm
-
Thanks to the efforts of many others, the parser is now available as an extension for Google Chrome: https://chrome.google.com/webstore/detail/goko-log-viewer/kaignighoceeemhinbbophdeogpnedjn (https://chrome.google.com/webstore/detail/goko-log-viewer/kaignighoceeemhinbbophdeogpnedjn)
v1.5 (http://forum.dominionstrategy.com/index.php?topic=6788.msg189154#msg189154) allows you to specify input and optionally output files, so you can interface with other scripts or just keep files organized on your computer.
v1.4 addresses player names. Get it here (http://forum.dominionstrategy.com/index.php?topic=6788.msg188808#msg188808)
EDIT: v1.3 deals with the Black Market cases. Attached here (http://forum.dominionstrategy.com/index.php?topic=6788.msg188630#msg188630)
EDIT: v1.2 has been optimized and fixes a bunch of omissions. It's attached to this post (http://forum.dominionstrategy.com/index.php?topic=6788.msg188623#msg188623) in this thread.
EDIT: v1.0 of the Goko log parser is now complete and is attached to this post. Enjoy, and please let me know if you find any bugs!
I am working on a program to parse the Goko logs and add coloring like the Iso logs. I'd appreciate some help from anyone who understands command line scripting, because I'm trying to work from man pages and it's a mess.
What I have so far: I've got a css style sheet that defines the fundamental card types and adds background colors
What I need: a script template for searching a file line-by-line and doing a search-and-replace on a regex script. I can fill in the details for all the card types if I get a template for the following two replace functions:
a) find end of line, add "<br />"
b) find "text string" and the next character can't be an <, replace with <tag>text string</tag> (the "next character can't be an <" rule is necessary so e.g., Village doesn't find Fishing Village. I'll do all the variations first (e.g., Ruined Library, Fishing Village), then the plain versions (Library, Village).
What would be awesome: if anyone knows how to do split colors (like Action-Victory cards) in CSS, that would be great. My guess is it will require images rather than background text coloring, and I don't know how to figure out what size image is needed.
The final version of the script will take a Goko log text file as input, add the HTML document tags and link to the style sheet, and then wrap all the card names with the appropriate tag.
If anyone wants to try it on their own, here are the CSS tags I've established so far:
action
{ background-color:rgb(240,240,240) ; }
treasure
{ background-color:rgb(253,225,100) ; }
reaction
{ background-color:rgb(64,168,227) ; }
duration
{ background-color:rgb(254,143,78) ; }
victory
{ background-color:rgb(146,193,125) ; }
curse
{ background-color:rgb(215,138,219) ; }
ruins
{ background-color:rgb(150,104,51) ; }
shelter
{ background-color:rgb(230,108,104) ; }
-
I would use sed for that, just from the bash, syntax
sed -r "s/regexToSearchFor/ExpressionToReplace/g"
-r for regexes, than "s/" for this search-replace-mode of sed, it can do other things but I only know how to use /s, then the regexes, and at the end a /g for global replacement. The "/"s are to seperate the parts and can be any character, in case you need a / in the expressions.
1)
sed -r "s/\n/<br>\n/g"
maybe also "\b" or "$" instead of "\n" for the end of line, am not sure, also depends on the format of the log
2) If I understand correctly
sed -r "s:(text string)[ˆ<]:<tag>\1</tag>:g"
Note : instead of / because / needed in </tag>
Edit: @css. Councilroom uses background-image
-
Regarding CSS. You can use the background images for multitypes from councilroom and use repeat-x.
http://councilroom.com/static/blue-green.png
http://councilroom.com/static/yellow-green.png
http://councilroom.com/static/yellow-blue.png
http://councilroom.com/static/white-green.png
-
You'll need some new ones for the Ruins/Shelters
-
The current logs aren't necessarily the final ones; people should speak up about how they'd like the logs to be different. Not that it will change soon but you know.
-
The current logs aren't necessarily the final ones; people should speak up about how they'd like the logs to be different. Not that it will change soon but you know.
Good. They are hard to read. Is there a thread started here or on getsatisfaction devoted to suggestions for improving the log format?
-
This is awesome!
-
The current logs aren't necessarily the final ones; people should speak up about how they'd like the logs to be different. Not that it will change soon but you know.
Good. They are hard to read. Is there a thread started here or on getsatisfaction devoted to suggestions for improving the log format?
I'd suggest creating a thread here, then posting a generalized consensus to the getsatisfaction thing.
-
I've made images for all the dual-card types thus far. Who is running Councilroom now that I can ask to host them?
-
See http://forum.dominionstrategy.com/index.php?board=6.0
-
Ok, the parser is almost functional. (I have no idea about performance yet.) But, for the last part I could use some help with script looping.
What I want to do:
Take an input file, read one line at a time, and substitute in the line for a variable in a shell command; take the resulting new command and append it to another file
What I mean:
I have a file that lists all the Dominion cards, sorted by type. I want to go through that file line by line and substitute the card name into the shell command that will parse the file.
So, line 1 = Adventurer: take "sed command with SOME_ACTION_CARD" and output "sed command with Adventurer", appending that output to the bash script I'm generating. Repeat for lines 2 through...
Thank you to those kind comp sci folks who are taking pity on a humanities major. :)
-
v1.0 of the parser is now done and is attached to the first post in this thread. Please let me know if you find bugs!
-
v1.0 of the parser is now done and is attached to the first post in this thread. Please let me know if you find bugs!
If you pipe all the seds, it is about twice as fast:
-
You get another factor of 5(!) in speed if you don't check for all the cards, but build the command on the fly with just the cards that are in the supply
put the whole command to goko-log-core.sh and
# Extract the cards that are used this game. Edgecases to consider: Tournament, Spoils, Shelters etc.pp.
less logfile.txt | grep -m 1 -E '^Supply cards:' | sed "s/Supply cards://g" | sed -E 's/ ([^,]*)(,)/\(\1\)\|/g' | sed -E 's/ ([^\)]*)($)/\(\1\)/g' | xargs -I{} grep -E '{}' goko-log-parser-core.sh > tempscript.sh
less gokolog.txt | ./tempscript.sh
Probably it's another bit faster if you can do also without writing the command to ./tempscript ,but I can't at the moment.
This has some issues still, first, it doesn't care for cards that are not in the supply (Prizes, Spoils, Shelters, etc), easiest solution is to keep them in always, shouln't cost that much time. Funnier of course would be some method to trigger Tournament->Prizes. Second it's not optimal because I have some problems with the interplay of grep, xargs and brackets, so a e.g."Village" in the supply keeps all kind of Villages in the expression. Which is not that important, but also not that bad.
Third, it's not tested much, so probably there are more edge cases...
-
I'm still working on understanding DStu's commands, but I think there's a workaround for the stuff not in the Supply. In the core file, we'll put
sed stuff for Trusty Steed # (Tournament)
The grep should pick out the Trusty Steed line if Tournament is in the Supply that way.
I found a couple of errors in the script last night (wrong tag for Market Square, forgot Venture completely, a couple of cards listed twice and hence creating errors). I'll see what I can do to clean these up once I finish stepping through DStu's command line-fu.
Thanks for the help all!
-
OK, should have been a little bit more commented
less logfile.txt | grep -m 1 -E '^Supply cards:' | sed "s/Supply cards://g" | sed -E 's/ ([^,]*)(,)/\(\1\)\|/g' | sed -E 's/ ([^\)]*)($)/\(\1\)/g' | xargs -I{} grep -E '{}' goko-log-parser-core.sh > tempscript.sh
What's the plan.
less logfile.txt # take the logfile
| grep -m 1 -E '^Supply cards:' #find the line that mentions the supply. Should be the first mention (grep -m 1) of the line that starts with "Supply cards"
| sed "s/Supply cards://g" # OK, actually we aren't interested in the part that says "Supply cards", but on the rest of the line where the cards are mentioned, which is comma-seperated card names...
| sed -E 's/ ([^,]*)(,)/\(\1\)\|/g' # ... which we would like to transform into a regular expression for grep. Therefore, take everything leading blank and the next comma ([^,]*)(,), and but brackets around it, finish it of with a | \(\1\)\|
| sed -E 's/ ([^\)]*)($)/\(\1\)/g' # the last entry does not end with a comma, so special case here
| xargs -I{} grep -E '{}' goko-log-parser-core.sh # now take the string we have constructed until here, which should be (card1)|(card2)|(card3)|.... use it as pattern for grep on the fule goko-log-parser-core.sh, so that only the lines which mention cards that are already in the supply survive
@Prizes: Yepp, elegant solution
-
Yup, figured out your code. I was thrown for a minute because I assumed the pipes were separators of some sort and couldn't figure out why grep knew to iterate through them, before realizing it was an OR.
Attached is the new version. It should handle edge cases except for Black Market. I can do the # (Black Market) trick on every line to cheat that one, but I don't know if there's a cleaner way.
-
Yup, figured out your code. I was thrown for a minute because I assumed the pipes were separators of some sort and couldn't figure out why grep knew to iterate through them, before realizing it was an OR.
Attached is the new version. It should handle edge cases except for Black Market. I can do the # (Black Market) trick on every line to cheat that one, but I don't know if there's a cleaner way.
| sed "s/Black Market//g" | #If Black Market is in the kingdom, just match everything, and so take the complete goko-log-parser-core.sh
Edit: just transforme "|Black Market|" to "||", and thus match everything between the last sed and the xargs.
-
Ok, Black Market is supported. v1.3 is here.
-
And I think I figured out a way to handle the "Occupy Grand Market" style player names. Working on the code now…
-
Just don't forget the lessons of little Bobby Tables...
-
Just don't forget the lessons of little Bobby Tables...
I am aware of all internet traditions. :)
-
Just don't forget the lessons of little Bobby Tables...
I think the biggest thread is Donald making
" & rm -rf / ~ #
Action-Atttack
Trash your whole deck
in Guilds.
-
" & sudo rm -rf / ~ #
Action-Attack
Enter your password. If you do, trash your deck (including this card).
---
If this is in the Trash, you cannot gain any cards from the Trash.
-
v1.4 keeps player names from being wrapped in tags if you've got a name like Occupy Grand Market.
Hopefully I've avoided the Bobby Tables problem by just having the computer handle the names, but here's the key code in case anyone wants to see if I missed something.
cat playernames.txt | while read line
do
player=$line
playernum=`grep -n "$player" playernames.txt | sed -E "s:([0-9])(.*):\1:"`
sed -E "s:^($player):Player$playernum:g" gokolog.txt | # Get player names at the start of the line
sed -E "s,$player: turn,Player$playernum: turn,g" | # Player names in the middle of the turn
sed -E "s,^([0-9][A-z]{2} place: )$player,\1Player$playernum,g" > gokolog.txt.tmp # Player names in first-nth place
mv gokolog.txt.tmp gokolog.txt
done
-
Since the result is an html file, why not javascript?
In short time I come up with this:
http://dom.retrobox.eu/index.html (http://dom.retrobox.eu/index.html)
Just paste the web address of the log in the input box on the top.
I replaced image backgrounds with css gradients so the script uses only one file.
-
omg! Logs are actually ... pretty!
-
nutki - nothing happens when I change the log file name in the box.
-
nutki - nothing happens when I change the log file name in the box.
Do you see anything aside the input box? If not then either you have JS disabled in your browser or there is a bug in my script that is ignored by my browser. Which browser do you use?
If you see the example log that would mean that the problem is with the onChange method of the text input. Then you can try direct link functionality I just added:
http://dom.retrobox.eu/?/20130204/log.50a0dcd2e4b035929e673232.1360045225424.txt (http://dom.retrobox.eu/?/20130204/log.50a0dcd2e4b035929e673232.1360045225424.txt)
-
I'm using Chrome 21. on a Mac, with Javascript enabled. The example log displays fine. I'm trying to access a demo log that I put together to test some edge cases at https://dl.dropbox.com/u/12565923/logfile.txt, and I can't get that to work in the direct version either.
-
OK, linking to non-goko official site (like dropbox in you case) cannot work as security measure for cross-site scripting. Goko site explicitly allows cross-site access in a reply header: Access-Control-Allow-Origin: *
That could be solved by allowing manual upload.
Edit: I copied your file to my server so you can see the result by putting just 'logfile.txt' into the textbox.
I'm using Chrome 21. on a Mac, with Javascript enabled. The example log displays fine. I'm trying to access a demo log that I put together to test some edge cases at https://dl.dropbox.com/u/12565923/logfile.txt, and I can't get that to work in the direct version either.
-
does it do multicolor for dual type cards?
-
Ok, this will probably be the last version I upload for a while unless there are specific bugs that need to be addressed.
v1.5 fixes a couple of bugs, but most importantly allows you to specify filenames. If you pass one argument, it treats it as the input file and outputs that filename with the extension changed to .html. Two arguments it takes as input and output files, respectively.
The bash script (my version) supports dual-colors through graphics, so there's a clear break between the top and bottom colors. nutki's version uses gradients, so the colors blend together.
-
nutki - you'll notice my edge case file creates an error at the bottom of your log. Notice how Occupy Grand Market and Squire Mendel's names are formatted in the placements: the Grand Market and Squire parts are tagged as if they were cards. I added a bit in my script to address that starting in v1.4, but I have no clue how to do that kind of thing in javascript.
-
I've just cleaned up a couple of bugs dealing with player names like ^_^_^_^ or multiples of bots (e.g., Serf Bot I and Serf Bot II in the same game). I've also borrowed from nutki's idea of color coding each player's actions and had the script add spans to color each player and the game start/end info.
The new version also uses an external CSS file, which is great for me but not so great for everyone else because there's no permanent link available yet besides my Dropbox account. So: I've attached an HTML file of the new output to this message. I would greatly appreciate any feedback on things that should be changed before I ask to have the new style sheet hosted on councilroom. It's a pain to make modifications to the stylesheet once it's there because I don't have direct upload access, so now is the time to make any modifications.
-
Suggestions:
I don't think this will get very far unless you make it an online Javascript thing, perhaps hosted on CR. It's a bit of a hassle, downloading the zip and then running it to prettify the logs.
The online Javascript thing needs to be able to support getting the link easily. I know you can put it in manually, but you should just either have a "Get Link" box like on CR, or support pasting in a goko link and being redirected to the correct prettified link.
-
I can work on putting the new stuff into Javascript. The problem is my JS is almost non-existent, so it's going to be a while.
Is there any interest in having councilroom run a scraper that grabs the day's Goko logs as well as the Iso ones? If so, the non-JS version could be run as part of the scraper.
-
I can work on putting the new stuff into Javascript. The problem is my JS is almost non-existent, so it's going to be a while.
Is there any interest in having councilroom run a scraper that grabs the day's Goko logs as well as the Iso ones? If so, the non-JS version could be run as part of the scraper.
that would be SOOOOO cool. And if there is a way to filter out the bot games + the Adventures (at least the ones with different starting conditions) it would be even better.
-
Suggestions:
I don't think this will get very far unless you make it an online Javascript thing, perhaps hosted on CR. It's a bit of a hassle, downloading the zip and then running it to prettify the logs.
The online Javascript thing needs to be able to support getting the link easily. I know you can put it in manually, but you should just either have a "Get Link" box like on CR, or support pasting in a goko link and being redirected to the correct prettified link.
If this could be hosted on CR, I would be forever grateful.
-
Would it be possible to move the game summary to the top of the log? Just a convenience issue, but then again, I guess that's what this entire thing is right.
-
There are a lot of things that are possible, but they come at the cost of a substantial increase in the time to run the script. That may not matter if you're only running it on a couple of games, but if you have 3500 files to run through (roughly the daily Goko archive at this point) and you add a second to each run, you've added an hour of processing time.
Moving the game summary info is a reasonably resource-intensive process, surprisingly. You need to grab the game summary section and move it to the top. But, since it's multiple lines, you can't just do it with a stream editor unless you use some black magic like removing linebreaks from that section or adding tags to each line in that section. There's probably a couple of writes of temporary files to the disk in order to make that happen. Then you splice the new header into the old file, requiring another write or two. You may then need to undo your black magic edits.
(Also, I've heard mixed opinions on listing the game summary at the top. Some people like the surprise of finding out who won at the end. I'm not in that camp, but since it's an opinion and changing the parser to move the game summary is hard, I'm defaulting to what will let me be lazy.)
The long term solution is for Goko to change the log file. Whether they go all the way to coloring the logs or not, fixing things like listing the opening cards, the trash contents, and the value of alt-VP sources are ridiculously easier if they're done in the original.
-
You're outputting html anyway, right? Can't you just wrap the game summary info in a div and float it to the top or something?
-
I've just cleaned up a couple of bugs dealing with player names like ^_^_^_^
*snip*
That's cause I'm special ^_^_^_^
-
You're right, that would be a more elegant solution. I can play with that; my worry is that because the divs will be multi-lined, it will be easy to screw up the code that wraps the section. (Having to hunt for a single line is obviously easier.) But I can see what I can do.
-
You're right, that would be a more elegant solution. I can play with that; my worry is that because the divs will be multi-lined, it will be easy to screw up the code that wraps the section. (Having to hunt for a single line is obviously easier.) But I can see what I can do.
You can just find the "Game Over" line and put the div from there to the end of the file. You could probably add a setting on whether to have the box stay at the bottom or moved to the top, so people can choose which way to view it.
-
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
(http://dom.retrobox.eu/Log.jpg)
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
-
Nice, I'd recommend you put your script up on github.
-
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
(http://dom.retrobox.eu/Log.jpg)
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
I am impressed. Now, I can play Goko with a log up all the time! Yay!
PS: Can someone help me. I installed Greasmonkey onto Firefox and rebooted it. It says Greasemonkey is enabled, but I am not able to get this to work.
-
Wow great work nutki!
Would you be willing to put the script up on github? I'm having some layout issues that I can see how to fix.
-
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
Will it also work on Chrome/Greasemonkey?
Hmm, got it working on FF, but having layout issues like 1wheel.
-
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
Will it also work on Chrome/Greasemonkey?
I'm not sure about how greasemonkey works on chrome, but I have the script running with chrome right now. Steps:
1. Open Goko_log_prettifier.user.js with a text editor
2. Select all the text and copy it to the clipboard
3. Start a new game on Goko.
4. Press ctrl-shift-j to open the chrome dev console.
5. Paste and press enter
The log might not appear till you've clicked a few cards.
If you'd like to have the logs appear the dev console (no highlighting, but you can undock the window by clicking the left most button on the bottom of the dev window), follow the same steps as before, but copy/paste this instead:
Dom.LogManager.prototype.old_addLog = Dom.LogManager.prototype.addLog;
Dom.LogManager.prototype.addLog = function (opt) {
this.old_addLog(opt);
console.log(opt.text);
};
-
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
Will it also work on Chrome/Greasemonkey?
I'm not sure about how greasemonkey works on chrome, but I have the script running with chrome right now. Steps:
1. Open Goko_log_prettifier.user.js with a text editor
2. Select all the text and copy it to the clipboard
3. Start a new game on Goko.
4. Press ctrl-shift-j to open the chrome dev console.
5. Paste and press enter
The log might not appear till you've clicked a few cards.
If you'd like to have the logs appear the dev console (no highlighting, but you can undock the window by clicking the left most button on the bottom of the dev window), follow the same steps as before, but copy/paste this instead:
Dom.LogManager.prototype.old_addLog = Dom.LogManager.prototype.addLog;
Dom.LogManager.prototype.addLog = function (opt) {
this.old_addLog(opt);
console.log(opt.text);
};
Thanks! I got this to work in Chrome. This thing is great.
-
Got it working in FF after a few tweaks. For my 1920x1080 monitor, I had to change:
position:absolute; overflow:auto; left:1020px;
var w = window.innerWidth - 960 - 80;
Perhaps that will help other playing at the same resolution.
Also: OMG THANK YOU THIS ROCKS SO HARD.
-
In all seriousness, though, can this get a sticky?
-
In all seriousness, though, can this get a sticky?
I agree this should be stickied. It should actually probably go in the first post as well so people can more easily get to the code. Anyway, this goes to show that if Goko won't do it, someone else will. The log is quite nice. It is great to have it out all the time while playing.
-
Here is the github project I created:
https://github.com/nutki/Goko-Live-Log-Viewer
I know of some layout issues as for now I just reapply the layout each time a new log line is produced. So resizing the window is expected to break the layout until the next log event. As this is my first greasemonkey script, I don't know how to properly tap to the widow resize event (after original goko handler triggers). I tried to do that on a timer instead (the traces of this are in the source code), but also did not get the results I wanted.
Basically the layout adjustment code is currently:
document.getElementById("myCanvas").style.marginLeft="0px"; // move the main game window to the left;
var w = window.innerWidth - 960 - 10; // log window width is total window size minus 960 for goko viewport and 10 for padding
var t = (window.innerHeight - 640)/2; // 640 is goko window height
newLog.setAttribute("style", "position:absolute; overflow:auto; left:960px; width:"+w+"px; top:"+t+"px; height:640px; background-color: white; z-index: -1");
And I agree this should be probably now a separate thread. If somebody splits everything from my previous post, I can edit it then to make it more informative.
-
You fixed Goko! It's now just about playable.
I tried and failed to work out how to get the log to display somewhere permanently (never mind formatted). Well done for figuring it out!
-
this sounds great. I tried to make it work in chrome, but i failed terribly. all i achieved was that goko stopped working. In the dev console there appeared a lot of red words. I admit that i have very little computing skills, so can anybody of you give an foolproof explanation of what to copy where.
Please
-
Hmm, got it working on FF, but having layout issues like 1wheel.
Same here. For me, the log is partially covered up by the play area (the log needs to be moved to the right in order to line up, like the screenshot). Which parameters in the code should I adjust?
Edit: Kirian found the places to adjust this.
-
Great thing.
Would it be possible to relocate chat too?
-
Got it working in FF after a few tweaks. For my 1920x1080 monitor, I had to change:
position:absolute; overflow:auto; left:1020px;
var w = window.innerWidth - 960 - 80;
Perhaps that will help other playing at the same resolution.
Also: OMG THANK YOU THIS ROCKS SO HARD.
This works for me, too.
-
nutki -
I sent a pull request with the layout changes and a working onresize call.
Watno-
Where do you think the chat should go?
loppo -
If you copy/paste the 4 line snippet I posted above and post a screen shot I might be able to help.
I was looking to see if the point tracker could be ported to goko and it turns out drheld already done most of the work several months ago:
http://imgur.com/5S7hkRs
https://github.com/drheld/goko_dominion_extension
I sent him a message asking if he wanted any help/if he was planning on putting it out anytime soon.
-
Argh not the point tracker extension!!
Chat: At my resolution, things would work best if everything were shifted upward about 80px, then chat was placed below.
-
Ideally, it would be possible to customize where everything goes, but Kirian's suggestion is what I imagined too.
-
Agreed. What Kirian said.
-
Argh not the point tracker extension!!
Chat: At my resolution, things would work best if everything were shifted upward about 80px, then chat was placed below.
Oh I see. This is a little tricker than it should be since the chat box is implemented with canvas, but I'll look into later tonight.
-
Ideally, it would be possible to customize where everything goes, but Kirian's suggestion is what I imagined too.
Well, it *is* possible to customize it... you just have to go in and change the code slightly.
-
Thanks to 1wheel's input I realized that the Goko viewport frame is not constant size. On my small laptop screen is actually a bit smaller (960x640) than on other devices (1024x768). I modified my script to be independent of that:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js
The chat window can be moved away in similar fashion, I believe. It can be a bit more complex as it also requires input. The added value would be standard editing options and copy and paste for free.
-
loppo -
If you copy/paste the 4 line snippet I posted above and post a screen shot I might be able to help.
Thank you for the offer. I fiddled around a little bit and found out that i forgot to press "Enter" after copy/paste. so no wonder it didn't do anything.
i feel real silly now.
-
This is really, really nice. I would agree that this goes a long way to make Goko more playable.
I was considering adding a few lines to the script to also colorize "shuffles deck" as it would be nice to be able to quickly skim the log for that. Would anyone else find that useful? If so, any preference on how to highlight it? Maybe some sort of inverse color scheme like what is used for victory point chips? Or simply putting it in bold?
-
Please don't.
-
I'm not the best at this script stuff. Is there some way I can put in the script so I don't have to add it in each time I log into Goko?
-
Is this something that someone with no programming experience should avoid messing around with? I can't seem to make heads or tails of any of this...Or can someone give me an step-by-step way to put this into Chrome? Specifically I can't figure how to paste the code after I pres ctrl-shift-j in a goko game.
-
If some programmer wants to make this easy on others, you can distribute it via the Chrome Web Store (for free). Then installing it becomes super easy.
-
Since the last goko update the main game screen stays in the middle of my screen, with the log on its right being cut off. Before the upfate the main screen would move to the left. Does anyone else have this problem / know how to fix it?
-
Since the last goko update the main game screen stays in the middle of my screen, with the log on its right being cut off. Before the upfate the main screen would move to the left. Does anyone else have this problem / know how to fix it?
Are you using the latest github version? I noticed the layout changes they made and put some new counter measures:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js)
-
Great, works with this one.
-
If some programmer wants to make this easy on others, you can distribute it via the Chrome Web Store (for free). Then installing it becomes super easy.
I second this, every time I log onto Goko, I have to copy and paste the code. I am sure there is an easier to do this, but I am not a programmer.
-
Since the last goko update the main game screen stays in the middle of my screen, with the log on its right being cut off. Before the upfate the main screen would move to the left. Does anyone else have this problem / know how to fix it?
Are you using the latest github version? I noticed the layout changes they made and put some new counter measures:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js)
OK, I just installed that and went over to Goko... and FF froze on me, indicating that the script wasn't responding.
Edit: Fixed. If you had to manually install it the first time, you'll have to disable the old script.
-
I ducked taped the work everyone else did together and made an extension for chrome:
https://chrome.google.com/webstore/detail/goko-log-viewer/kaignighoceeemhinbbophdeogpnedjn
-
I ducked taped the work everyone else did together and made an extension for chrome:
https://chrome.google.com/webstore/detail/goko-log-viewer/kaignighoceeemhinbbophdeogpnedjn
Awesome!
-
Installed the Chrome extension, playing experience is way better. Big thanks to everyone who contributed to this tool. One small issue: Goko has too small card name length limit and needs to use a fix of having "JackOfAllTrades" instead of "Jack of all Trades" - is it possible to correct this in the parser?
-
Thanks to 1wheel's input I realized that the Goko viewport frame is not constant size. On my small laptop screen is actually a bit smaller (960x640) than on other devices (1024x768). I modified my script to be independent of that:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js
This is great. Thanks!
The chat window can be moved away in similar fashion, I believe. It can be a bit more complex as it also requires input. The added value would be standard editing options and copy and paste for free.
I would love to bum a Greasemonkey script off of someone that moves the chat window, as well. Or has the log as the top 3/4 of the screen area to the right of Goko Dominion and the chat window bottom 1/4 or something like that.
-
I don't know, if it is already posted, but there is a mistake with the Bishop: When you play it, it tells you, that you gain one point chip less, that you really do.
(Maybe this is wanted, so that it tells you only the point chips you gain form trashing; but I think it would be better to write all point chips you gain. So it wouldn't tell you, that you gain 0 point chips, when you trash a Copper or something like that.)
-
That's a goko side issue, so this is the wrong place for it.
-
Sorry, it wasn't clear...I ment it for this script here:
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
(http://dom.retrobox.eu/Log.jpg)
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
-
Sorry, it wasn't clear...I ment it for this script here:
I converted my script into a Greasemonkey script (attached), showing the live log on the right of the game window. The result looks like this:
(image snipped)
To use it you have to install Firefox with the Greasemonkey plugin and open the attached file with 'File'>'Open File...'
All the script does is stylize the Goko log and make it always visible. The log itself comes from Goko. If there is a mistake in what it reports, that is due to Goko itself.
-
Ah, ok I did't know that.
-
This is amazing. Makes Goko so much better.
-
I love how it automatically fetches the prettier looking log when you're finished with the game as well. Pretty amazing all around. Someone should send it to Goko so they can implement the code themselves, if they want to.
-
Hi, i just read in the chat that you wanted to try out JoaT with the new parser. I couldnt find you, so i started a solo game. Everything seems to be ok.
Heres a screenshot
and a link to the log
http://dom.retrobox.eu/?/20130222/log.50955175e4b013548a3d58f0.1361567177297.txt
-
hsiale-
I made a fix for Jack of all Trades, but haven't updated the extension yet. I don't have Hinterlands and I wanted to test it first.
Polk5440-
Chat is kinda tricky, I'll take a look at when I get some free time. drheld has already written some code that hooks into their chat, so it is definitely doable.
https://github.com/drheld/goko_dominion_extension/blob/master/inject.js
Beyond Awesome-
I'm not sure they would implement it; there isn't a cross platform way of adding it to the UI.
-
This is really great! One thing I'd like to see added though is a bunch of blank lines or something so that the log doesn't go all of the way to the bottom of the screen. I find it difficult to read the text down there and would appreciate it if it was moved up to a more comfortable area.
But that's a rather minor complaint.
-
another thing i noticed is that the brown background for the ruins is rather dark. It's very hard to read which ruins it is in the log. Maybe the brown could be a tad lighter.
Besides that it's great work. it improves the gaming expirience a lot for me. Thanks for all your effort.
-
Yes. I love the log! Again, thanks a million.
-
Minor issue: Island doesn't get colored in the log.
-
Oh wow, this will make Goko so much better...
-
I like what the log is trying to do, I don't like that it makes Goko laggy.
(Edit: in chrome using plugin from the chrome extension store)
-
another thing i noticed is that the brown background for the ruins is rather dark. It's very hard to read which ruins it is in the log. Maybe the brown could be a tad lighter.
You can change it yourself by editing this line:
ruins
{ background-color:rgb(150,104,51) ; border-radius: 6px; }
Just increase those three numbers a bit, for example to (180,130,70), and see how it looks.
Minor issue: Island doesn't get colored in the log.
Yeah, noticed that too. There should also be no coloring for the other action-victory cards.
This piece of code is missing:
action-victory
{ background: -moz-linear-gradient(top, rgb(240,240,240), rgb(146,193,125));
background: -webkit-linear-gradient(top, rgb(240,240,240), rgb(146,193,125));
background: -o-linear-gradient(top, rgb(240,240,240), rgb(146,193,125));
background: -ms-linear-gradient(top, rgb(240,240,240), rgb(146,193,125));
background: linear-gradient(top, rgb(240,240,240), rgb(146,193,125)); border-radius: 6px; }
There is also no coloring for potential 5th and 6th players, but that's really not that important I guess.
-
Non-Goko people
Making Dominion better since 2008
memegenerator
Looks like really nice work guys, thanks for your efforts.
-
Indentation would make this log parser even better.
-
Indentation would make this log parser even better.
Thing is, "parser" isn't really the best name for this thing; the later name, "prettifier," is better. It's overlaying a prettier CSS, essentially, but not changing or interpreting any of the text.
-
One feature that has been mentioned for the prettifier is indenting to show the main activity and subsequent stuff. For instance:
Player buys Remodel
--Player gains Remodel
It should be a relatively easy tweak to the Javascript prettifier if we can identify the text that is subsequent. I'd like to crowdsource this: if you play a Goko game, what are the keywords that indicate lines of text that need to be indented?
A starting list:
trashes
gains
shuffles
draws
sets aside
discards
reveals (not always because of reactions)
Are there others?
-
King's Court
Throne Room
And the stuff that comes after buys.... (so next line, gains..., is indented).
Edit: Oh, I missed you wanted the line itself, not the one before it. Not sure that will always work. KC and TR are examples where you have to look at the line before.
-
Nobles gets no Action/Victory background it should get. Example: http://dom.retrobox.eu/?/20130311/log.50893139a2e67cff211cd7e5.1363011469788.txt
-
Nobles gets no Action/Victory background it should get. Example: http://dom.retrobox.eu/?/20130311/log.50893139a2e67cff211cd7e5.1363011469788.txt
http://forum.dominionstrategy.com/index.php?topic=6788.msg199109#msg199109
-
Thanks. Where do I find this code to edit it?
-
This thing is great. I installed it by clicking my mouse one time and because of it, Goko is actually playable. The work you've done is really great.
It's a shame that this has to exist, though. Now that I've seen it and played with it, it's clear to me that it's the one thing that would improve Goko's interface the most. -- So why haven't they done it? It can't be all *that* hard, since we did it without any real knowledge of the code.
I bought Goko last night, and I would not have bought Goko if this hadn't existed.
Thank you all for your work.
I have an idea for a feature that maybe hasn't come up before. The log always wants to appear to the right of the Dominion window, which works, but it would be cool if I could make it appear above or below as well. I like to put my web browser on a monitor that is Portrait mode, so this might be pretty cool.
-
This thing is excellent!
The only issue I have with it is that when you scroll back up during your opponent's turn, and he does something which causes the log to update, the updated log steels the focus and brings you back to the bottom. In case the post-update focus-steeling is something out of your control, a decent work-around is to make the log not update as long as you have your mouse pressed on the scrollbar.
Also, I'd love to see a VP count at the beginning of each turn, e.g.
Opponent: turn 5 (VP count: 5-3)
...
SheCantSayNo: turn 5 (VP count: 3-5)
-
thanks for putting this together. I've been very happy using it!
-
Just FYI, they apparently just added in https option, and that made greasemonkey not run the script because the URL changed, so you may have to add the new URL to make it start working again.
-
I added a couple of changes to the script.
Now it also shows the phase of the turn before the user name. The one letter initial of the turn name is added for the first line of the phase plus on all 'play' and 'buy' lines.
Also fixed the action/victory background and added https address support.
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js
Note in Firefox you have to remove the old version manually as the name has changed.
-
Let's pretend I know nothing at all about extensions, or what the word parsing even means (because that's totally true). Answering the following questions like I'm 80 yrs old will have the highest chance of success.
1. What can I do to get a much slicker way to read the log during a game?
2. What can I do to get a copy of that log with which to make a game-report-post on this forum
-
1) On Chrome: go go here (https://chrome.google.com/webstore/detail/goko-log-viewer/kaignighoceeemhinbbophdeogpnedjn) and click "Add to Chrome".
On Firefox: install Chrome (http://chrome.google.com), then follow the above instructions.
I use the extension on Firefox, but that's probably more involved than you want to bother with.
2) After the game, on the page that displays the score, there is a button in the lower right corner (it has what looks like three lines of a bulleted list on it) that links to the log.
-
Hello Dominion community!
I am pleased to announce that the Goko Log Viewer add-on for Chrome has been ported to Firefox! It does not require a restart to install, and it is free of viruses and spyware. No coding required!
If you are interested in this add-on, you may install it here (https://addons.mozilla.org/en-US/firefox/addon/goko-log-viewer/). If you have any questions, reply to this post/topic and I will try my best to answer them.
Thanks for taking the time to check out this add-on!
Edit: If you want a second opinion on "free of viruses and spyware," see this VirusTotal scan (https://www.virustotal.com/en/file/f218a27d2707c7de5bdb4a309085a38494258b220d8b22529a37a193d6cb83d3/analysis/1364819286/).
-
On Firefox: install Chrome (http://chrome.google.com), then follow the above instructions.
+1 for this making me laugh out loud. I guess (have not tested it myself) this solution also works for other browsers :)
-
This has been working on firefox even before it worked for chrome. Explanations are in the first posts?
-
... and it is free of viruses and spyware.
Not that I have any reason to believe there are viruses or spywares in it, nor that I would have thought about it if it wouldn't been mentioned here, but why should I believe the post of the author of the addon telling me there are no viruses/spywares if I wouldn't trust the author of the addon to not put viruses/spyware in the addon?
-
You can see this VirusTotal scan (https://www.virustotal.com/en/file/f218a27d2707c7de5bdb4a309085a38494258b220d8b22529a37a193d6cb83d3/analysis/1364819286/) for details.
-
I get slightly nervous about a brand new poster and brand new add-on author suddenly posting a plugin and preemptively declaring "no viruses!". So, if you want to play it safe and you're in Firefox:
1) Download and then activate the Greasemonkey extension. This is an extension that's been in existence for a long time and has been reviewed by the Firefox folks, AFAIK. https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
2) Go to the .js file in nutki's post:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js
You should receive a message that this is a Greasemonkey script and a prompt to install it. Go for it. The .js file will be installed in your Firefox profile/extensions, if you want to double-check the actual contents.
-
I am generally a fan of skepticism, but
A) It's only javascript. For this to do anything bad to your computer would require an exploitable bug in firefox. Not that these never exist, but infected O(100) users on a dominion fan website seems like a terrible waste of such an exploit.
B) You can see the included source in the add-on, if you want. (download the XPI and unzip it)
I got extracted the source code. The only difference between nutki's viewer.js and the one included in the firefox add-on is the line break extension. I am guessing nutki is only mac/linux, and gokologviewer is a windows user. On the other hand, there is a lot of boiler plate code that I didn't look through that is either the product of a chrome->firefox extension tool, or just included with every firefox add-on.
-
When I click on the log icon post-game, it now shows me a page saying "pageok" rather than the actual log.
-
I am generally a fan of skepticism, but
As I said above, I don't believe there are viruses in it, and as I said elsewhere, I'm not playing on goko so I won't install it anyway, I just wanted to point out that the reassurance of the author that there are no viruses in a programm adds about 0 information on the existence of these virusus.
On a related note, I'm a former nigerian prince with 30,000,000$ to get to oversea and need someone to help me. No scams involved...
-
When I click on the log icon post-game, it now shows me a page saying "pageok" rather than the actual log.i
I was trying to move the DNS to a new hosting, but apparently it takes a lot of time (days) for godaddy to setup new domains and subdomains. Now I set the DNS temporarily to the old hosting and try again when the setup is done. With the new hosting there will be some new features added to the prettifier.
-
The updates are uploaded. On the offline prettifier you can now link to a specific turn using anchor links:
http://dom.retrobox.eu/?20130410/log.50b07681e4b09653a366035b.1365580292236.txt#2-10 (http://dom.retrobox.eu/?20130410/log.50b07681e4b09653a366035b.1365580292236.txt#2-10)
the anchor format is N-M where N is the player number and M is the turn number. Also added the links to directly scroll to bottom and top.
In the online greasemonkey script (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js)) I added ability to add custom avatars. They are only visible to other users of the script. To upload your avatar click on the avatar picture in the top right corner on the main screen (where you have options between single player, multi player etc.) See attached picture for the result.
-
lol. was not expecting custom avatars on this thing. what's next, replacing the buttons with text icons?
-
Are these updates added automatically to the extension that I already have?
-
lol. was not expecting custom avatars on this thing. what's next, replacing the buttons with text icons?
Holy shit a greasemonkey script turning goko into isotropic hype hype hype
-
More people really need to be aware of this thread
-
Will the Chrome extension ever be updated with nutki's changes? I can't seem to get the Tampermonkey script working. (No idea why it isn't; I installed it like any other script)
-
Are these updates added automatically to the extension that I already have?
The more recent versions of the Firefox Greasemonkey script auto-update. jsh's post suggests that the Chrome extension has not been updated by the maintainer, and the same might or might not be true of the Firefox extension (which definitely doesn't contain viruses or spyware).
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
They are only visible to other users of the script.
It's all user-side stuff, purely for your own benefit. So as far as Goko can see, your avatar is still one of their images. The script is just telling your browser to display an image you choose instead; it's not changing what's on their servers, and only affects what you can see.
other users
Apparently I'm too tired to be posting (or maybe just reading) right now. Yeah I haven't upgraded to the custom avatar thing yet, just enjoying the log on the side.
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
Indeed you are the first person to upload one (besides me). I suspect this is mostly because most of the people are using my scripts through the Chrome plugin, and this got never updated (I haven't seen 1wheel, who maintained it, here lately).
-
Ah sorry then. The new version of the Firefox script is really good, people should get it. It has indentations.
And more people should use the avatar thing. It's really cool.
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
I would like to use it. Which version is it and how does it actually work?
-
In the online greasemonkey script (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js)) I added ability to add custom avatars. They are only visible to other users of the script. To upload your avatar click on the avatar picture in the top right corner on the main screen (where you have options between single player, multi player etc.) See attached picture for the result.
-
In the online greasemonkey script (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js (https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js)) I added ability to add custom avatars. They are only visible to other users of the script. To upload your avatar click on the avatar picture in the top right corner on the main screen (where you have options between single player, multi player etc.) See attached picture for the result.
Thanks! And is it possible to minimize the size of the log? In the old version i had, it was thinner.
-
I seem to be the only in the Pro Top 250 having one.
Avatar uploaded. Now the hard part - I need to get to Pro Top 250
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
I've just given it a go. It sounded a bit daft at first but, since it requires the extension, having a custom avatar will probably correlate with cluefulness, so it might be quite useful.
-
Thanks! And is it possible to minimize the size of the log? In the old version i had, it was thinner.
Whenever I find that the log has grown to squeeze out the main game area a browser restart fixes it. It seems to be related to the script updating.
-
Thanks! And is it possible to minimize the size of the log? In the old version i had, it was thinner.
Whenever I find that the log has grown to squeeze out the main game area a browser restart fixes it. It seems to be related to the script updating.
I'm not sure, if you didn't understand me, or if I don't understand you (sorry, I'm german).
Now it looks like this:
screenshot (http://www.bilder-space.de/bild-gokologpng-3627.htm)
I'd like, if the log was cut at the right side. So I don't see the total log, but the things at the end are not so important.
-
My problem is not quite the same as yours, but it might be related. I occasionally get the very wide log, but instead of it producing a horizontal scrollbar the main game shrinks until it is narrow enough to fit in the reduced amount of space available. So I don't have to scroll, but I do have to work harder to use the main interface.
If it happens again I might remember to take a screenshot and post it here.
-
My problem is not quite the same as yours, but it might be related. I occasionally get the very wide log, but instead of it producing a horizontal scrollbar the main game shrinks until it is narrow enough to fit in the reduced amount of space available. So I don't have to scroll, but I do have to work harder to use the main interface.
If it happens again I might remember to take a screenshot and post it here.
I have the same problem, it just seems to pop up at random occasions.
Also, I tried installing the .js file from GitHub by dropping it into the extensions area of Chrome. Chrome showed it as installed, but it didn't show up during play. Now I'm back to the normal Chrome extension, but I kinda want to try out those new features.
-
Would it be possible to have the identations from the current in game log in the post-game log prettifier as well?
-
BTW, I think the logs don't mark the Young Witch bane in any way, it would be nice if when listing the supply one of the cards was marked as the bane.
-
Is anyone else using the custom avatar thing? I have the suspicion it's not working properly, I seem to be the only in the Pro Top 250 having one.
Indeed you are the first person to upload one (besides me). I suspect this is mostly because most of the people are using my scripts through the Chrome plugin, and this got never updated (I haven't seen 1wheel, who maintained it, here lately).
I've updated the chrome extensions with your new script (sorry about the delay, started a new job and haven't checked the forums for a while).
Let me know if you want me to transfer ownership of the chrome extension to you; I don't mind keeping it updated but barely any of the code is mine.
-
With the Chrome extension, my custom avatar reliably shows up in game, at the results page, and on the top right corner in the lobby. In the lobby itself, however, it's very inconsistent (both in the player list and when I host a game).
On the Leaderboard it's even worse: I have spotted my custom avatar exactly once, even though I always see the custom avatars of others.
-
Has anyone managed to play Possesion without crashing using the firefox log viewer? It causes crashes for me.
-
I've never managed to play Possession successfully with the log extension. Possession does work if I disable it.
-
Has anyone managed to play Possesion without crashing using the firefox log viewer? It causes crashes for me.
When I wrote the extension I did not own any sets, so handling of possession was based on the offlline logs, it is possible that online look different. As I bought the full goko package a few days ago, I will try to reproduce and fix it.
With the Chrome extension, my custom avatar reliably shows up in game, at the results page, and on the top right corner in the lobby. In the lobby itself, however, it's very inconsistent (both in the player list and when I host a game).
On the Leaderboard it's even worse: I have spotted my custom avatar exactly once, even though I always see the custom avatars of others.
I just confirmed this, it does work when showing the leaderboard after the game, but in multiplayer/leaderboards it will only show once after each browser cache cleaning. I will look at this, but I think it is minor, so not on top of my priority list.
Would it be possible to have the identations from the current in game log in the post-game log prettifier as well?
Yes, to some extent. The indentations as currently used are based mainly on the action name (non indented are 'plays' and 'buys' events). The only exception is the first line of the cleanup phase, and this is hard to replicate as the online log uses live phase information from the game to detect that, some simple heuristic in the offline version would be possible though (for example all the final actions that use 'shuffles' or 'draws').
-
I've updated the chrome extensions with your new script (sorry about the delay, started a new job and haven't checked the forums for a while).
Let me know if you want me to transfer ownership of the chrome extension to you; I don't mind keeping it updated but barely any of the code is mine.
I will gladly offload the work to you, if you don't mind. I don't use Chrome myself, so I would not even test it properly. This way at least two people try to run the code before it is published.
-
Sorry if this has been said before and I'm just being stupid, but where can I find the one for Firefox? (If it exists)
-
I get slightly nervous about a brand new poster and brand new add-on author suddenly posting a plugin and preemptively declaring "no viruses!". So, if you want to play it safe and you're in Firefox:
1) Download and then activate the Greasemonkey extension. This is an extension that's been in existence for a long time and has been reviewed by the Firefox folks, AFAIK. https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
2) Go to the .js file in nutki's post:
https://github.com/nutki/Goko-Live-Log-Viewer/raw/master/Goko_Live_Log_Viewer.user.js
You should receive a message that this is a Greasemonkey script and a prompt to install it. Go for it. The .js file will be installed in your Firefox profile/extensions, if you want to double-check the actual contents.
-
Silk Road freeze:
http://i.imgur.com/h60pKIc.jpg
That try-catches from TODO in source are important!
-
Do these freezes affect the log parser or the whole game?
I don't want my tournament matches and ranked matches to freeze on me.
-
Possession freezes the whole game, not sure about Silk road.
-
Possession freezes the whole game, not sure about Silk road.
Silk Road freezes the whole game too.
-
Possession freezes the whole game, not sure about Silk road.
Silk Road freezes the whole game too.
Is this only for the Chrome parser or also for Firefox?
-
Possession freezes on Firefox. The two extensions should be identical, as they run the same Javascript.
-
Possession freezes the whole game, not sure about Silk road.
Silk Road freezes the whole game too.
Setting aside the debugging of these particular issues, shouldn't the log viewer catch and surpress any errors it generates? Or is this a difficult thing to do in JS?
Thanks so much for the extension. It's an huge improvement over the horrible turd of a log viewer that Goko crapped out on the floor.
-
Thanks for reporting, guys. I fixed (only in the Firefox user script, the Chrome extension needs updating) the following:
- possession crash (caused by different size of avatar images which are swapped on the possession turns, now avatars are rescaled)
- no avatars in lobby (the avatar preloader was not patched to load user avatars, simply disabled the preloader)
- silk road / masquerade crash (point tracking of masquerade is not possible with the live log, disabled)
Setting aside the debugging of these particular issues, shouldn't the log viewer catch and surpress any errors it generates? Or is this a difficult thing to do in JS?
Surly a better exception handling is possible, but it is not trivial, since it has to be done for each function separately and sometimes the action to take on exception to make the main game continue is not obvious. On top of that not everything can be covered, for example the possession bug caused an exception in the goko code.
I am not a JS programmer, so if you have an improvement suggestion, feel free to post it here or through github.
-
I sometimes have that the cards I play during my last turn don't show up in the deck composition at the bottom.
Here is an example game: http://dom.retrobox.eu/?/20130508/log.5101a6c4e4b02b7235c3860f.1368036554527.txt
My opponent resigned while I was making my scheme decision.
-
I think that's a bug in the goko log, not the goko log parser.
-
The parser is not pulling logs for me correctly. I am attempting to pull logs for GokoDom from these strings, but no success. I tried going to http://dominionlogs.goko.com//20130511/ and searching for the strings, but they don't seem to be there. Loppo and I played these games today an hour or so ago. (We alternated setting up the table, that's why there are two table creator hashes. )
http://dom.retrobox.eu/?b8e4b015dcbac5f45a.1368285552845.txt
http://dom.retrobox.eu/?75e4b013548a3d58f0.1368286412318.txt
http://dom.retrobox.eu/?b8e4b015dcbac5f45a.1368287782779.txt
http://dom.retrobox.eu/?75e4b013548a3d58f0.1368288871368.txt
http://dom.retrobox.eu/?b8e4b015dcbac5f45a.1368289726466.txt
Any ideas?
-
Any ideas?
I don't think the goko logs work now at all. With the extension turned off after playing a game I was redirected to:
http://play.goko.com/Dominion/undefined/20130511/log.50ebec24e4b067e81b563165.1368312505350.txt (http://play.goko.com/Dominion/undefined/20130511/log.50ebec24e4b067e81b563165.1368312505350.txt)
which is a 404. And the proper logs server don't have this log either.
-
I got a response to my getsatisfaction report (https://getsatisfaction.com/goko/topics/problems_with_server_connection_and_game_logs), and it seems they acknowledge there is a problem on their end.
-
I'm new to the extension and not very tech savvy.
What do you guys do when the cards that freeze the game up are there? Is there a way to turn off the extension.
Anything else I should know about it? (Or do I have to read the whole 7 pages of this thread?)
Thanks.
btw the problem with the goko logs (404 error) seems to be fixed for me
-
What do you guys do when the cards that freeze the game up are there? Is there a way to turn off the extension.
Have you had any freezes? My understanding is that they've all been fixed in the latest version of the script. If the script does cause a freeze then I don't think there's anything you can do: if you disable the script then that won't take effect until you reload the page, which ends the game.
-
What do you guys do when the cards that freeze the game up are there? Is there a way to turn off the extension.
Have you had any freezes? My understanding is that they've all been fixed in the latest version of the script. If the script does cause a freeze then I don't think there's anything you can do: if you disable the script then that won't take effect until you reload the page, which ends the game.
The Chrome extension was not updated, so it will cause Possession freeze if you have an avatar uploaded. I am currently working on a portable script that will work in both Chrome and Firefox so no porting will be necessary.
-
During the last few days I've played two games where Possession was played >3 times. I'm using the Chrome script with an uploaded avatar, and haven't experienced any problems whatsoever.
-
Thanks guys.
What do you guys do when the cards that freeze the game up are there? Is there a way to turn off the extension.
Have you had any freezes? My understanding is that they've all been fixed in the latest version of the script. If the script does cause a freeze then I don't think there's anything you can do: if you disable the script then that won't take effect until you reload the page, which ends the game.
I haven't had freezes from cards, but twice after one of my opponents was disconnected, the game didn't end for me and I had to click "abandon game" (not "resign"). I'm not sure if it affected my rating. (I think both times, it was a 3 player game.)
-
I haven't had freezes from cards, but twice after one of my opponents was disconnected, the game didn't end for me and I had to click "abandon game" (not "resign"). I'm not sure if it affected my rating. (I think both times, it was a 3 player game.)
I've experienced similar in 2 player games today and yesterday.
After my opponent got disconnected, the log updated and declared me the winner, but the game screen never changed to the "You Win" screen. It stayed stuck in the game. Clicking "Resign" had no effect (there was no "Abandon Game" button). My rating had adjusted correctly.
Goko Log Viewer 0.107
Chrome v26.0.1410.65
OSX 10.8.3
-
I haven't had freezes from cards, but twice after one of my opponents was disconnected, the game didn't end for me and I had to click "abandon game" (not "resign"). I'm not sure if it affected my rating. (I think both times, it was a 3 player game.)
I've experienced similar in 2 player games today and yesterday.
After my opponent got disconnected, the log updated and declared me the winner, but the game screen never changed to the "You Win" screen. It stayed stuck in the game. Clicking "Resign" had no effect (there was no "Abandon Game" button). My rating had adjusted correctly.
Goko Log Viewer 0.107
Chrome v26.0.1410.65
OSX 10.8.3
Yep, same thing happened to me today (as you described it) with 2 player games also. Now I saw "resign". Not sure if my memory of seeing "abandon" is correct.
As long as the rating is adjusting correctly, I guess it's not a problem.
-
For custom avatars, anyone know an easy way to make a picture the right size to use? Thanks.
-
MS Paint
Pixlr
It should also help you auto-resize some pics
-
The avatars scale with the rest of the game, so the exact size of the image you upload isn't too important.
For general image editing I like the GIMP (http://www.gimp.org/).
-
Thanks very much to philosophy guy and anyone else responsible for the log and vp counter!!!
-
In my game, the victory counter was off the end game log significantly. The counter said 22-21 in favor of Acher, while the log says 24-18 with Acher losing.
It might have been because of Masquerade?
http://dominionlogs.goko.com//20130520/log.5144f8dee4b0cf33e050e50d.1369108256903.txt
-
In my game, the victory counter was off the end game log significantly. The counter said 22-21 in favor of Acher, while the log says 24-18 with Acher losing.
It might have been because of Masquerade?
http://dominionlogs.goko.com//20130520/log.5144f8dee4b0cf33e050e50d.1369108256903.txt
Yes. Because of Masquerade it cannot accurately track points with public information (this was true on the Isotropic point counter extension too)
-
You know those guys who mash on the join icon so they rejoin your game the instant you kick them? I love running into them now. It's awesomely hilarious to watch them fight with the auto-kick. :D
-
You know those guys who mash on the join icon so they rejoin your game the instant you kick them? I love running into them now. It's awesomely hilarious to watch them fight with the auto-kick. :D
Maybe that are poor newbies who clicked on "Play now" and are wondering, why it is not working...
-
You know those guys who mash on the join icon so they rejoin your game the instant you kick them? I love running into them now. It's awesomely hilarious to watch them fight with the auto-kick. :D
Maybe that are poor newbies who clicked on "Play now" and are wondering, why it is not working...
I think they actually click "Join Game" and receive the "You have been kicked" message, which is reasonably clear. I do feel bad for players who are so new that they don't know what "5000+" means.
-
I think they actually click "Join Game" and receive the "You have been kicked" message, which is reasonably clear. I do feel bad for players who are so new that they don't know what "5000+" means.
I somehow forgot that there is that message.
-
Is it possible to view my previous games in this?
-
Is it possible to view my previous games in this?
Try here. (http://forum.dominionstrategy.com/index.php?topic=8266.0)
-
I really like the new Kingdom selector, but I can't get it to recognize Worker's Village as a valid card name. I thought it might be something related to the apostrophe, but Workers Village and Workers' Village don't work either and Fool's Gold does.
Would also be nice if an error in the selection constraints would kick you back to try again, instead of launching a pure random game. Don't know if that's something you have any control over.
-
Did you change something with the size or the resolution of the log? Because now the normal game window is zoomed in, so i don't see all of it. And if i zoom out manually the log is very small.
Or does someone know, how to change this?
-
Should this thread be locked maybe? I can't imagine what should be posted here rather than in the active, stickied User Extension thread.