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/kaignighoceeemhinbbophdeogpnedjnv1.5 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 hereEDIT: v1.3 deals with the Black Market cases.
Attached hereEDIT: v1.2 has been optimized and fixes a bunch of omissions. It's attached to
this post 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) ; }