Handy Game History 1.2 (2010-12-08)

The storehouse of handy and helpful plugins/addons and webpages.

Moderators: Global Moderators, Tech Team

Forum rules
Please read the Community Guidelines before posting.

Handy Game History 1.2 (2010-12-08)

Postby Dako on Thu Aug 05, 2010 8:01 am

This script is based on philh-2007 Handy Game History script.

Install the script and a 'visualise' link will show up under 'Game Log'. Click it, and you'll be able to go backwards and forwards through the game history. For example you'll be able to see who started with each territory, etc.

Install link - http://userscripts.org/scripts/show/83035
Script works in Firefox and Google Chrome.

This script now is working with current CC version. Have fun and comment if you have found any bugs.
1.2 changes
  • Adopted to new site changes


1.1 changes
  • Added unvisualize link
  • Changed the code to support new XML format (thanks to sherkaner for pointing this out)
  • Code clean-up, documentation and refactoring
  • Changed the colors to the current CC system
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: Handy Game History 1.0

Postby jleonnn on Thu Aug 05, 2010 8:07 am

thnx! :D
User avatar
Major jleonnn
 
Posts: 1787
Joined: Tue Jan 06, 2009 5:11 am
Location: The communist republic of Aoria
Medals: 51
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (4) Freestyle Achievement (4) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Speed Achievement (4) Teammate Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3) General Achievement (1)
Training Achievement (1) Tournament Contribution (10) General Contribution (1)

Re: Handy Game History 1.0

Postby iamkoolerthanu on Thu Aug 05, 2010 9:18 am

Is there a way to "unvisualize" without leaving and re-entering the game, or by refreshing the page?

And a bug.. Colors are comming up wrong when I click it in an 8 player speed game
rds is awesome!
Image
User avatar
Private 1st Class iamkoolerthanu
 
Posts: 4184
Joined: Sun Dec 31, 2006 6:56 pm
Location: looking at my highest score: 2715, #170
Medals: 99
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (3)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (8) General Achievement (5) Clan Achievement (8) Tournament Contribution (31)
General Contribution (1)

Re: Handy Game History 1.0

Postby iamkoolerthanu on Thu Aug 05, 2010 9:26 am

I'll be more specific. Red comes up as redish orange. Green comes up as light green. Blue comes up as blue. Yellow comes up as yellow. Pink comes up as cyan. Cyan comes up as light pink. Orange comes up as light orange. Silver comes up as dark pink.
rds is awesome!
Image
User avatar
Private 1st Class iamkoolerthanu
 
Posts: 4184
Joined: Sun Dec 31, 2006 6:56 pm
Location: looking at my highest score: 2715, #170
Medals: 99
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (3)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (8) General Achievement (5) Clan Achievement (8) Tournament Contribution (31)
General Contribution (1)

Re: Handy Game History 1.0

Postby sherkaner on Thu Aug 05, 2010 11:00 am

iamkoolerthanu wrote:I'll be more specific. Red comes up as redish orange. Green comes up as light green. Blue comes up as blue. Yellow comes up as yellow. Pink comes up as cyan. Cyan comes up as light pink. Orange comes up as light orange. Silver comes up as dark pink.

Yeah, it seems to use some outdated colors. And I haven't tried it yet, but it seems to fetch the XML, you could get that piece out too and use the new format.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Handy Game History 1.0

Postby Dako on Thu Aug 05, 2010 11:33 am

I will add the unvisualize button later.

@sherkaner - what format are you talking about? I was not going into details of the script - merely fixed it to work with current CC system. If you will expand what you mean I might be able to enhance the script.
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: Handy Game History 1.0

Postby sherkaner on Thu Aug 05, 2010 3:40 pm

Dako wrote:I will add the unvisualize button later.

@sherkaner - what format are you talking about? I was not going into details of the script - merely fixed it to work with current CC system. If you will expand what you mean I might be able to enhance the script.

Ah well, it's not the easiest of changes, but it makes the script work on more maps (just tried prohibition chicago, doesn't work for that map, can't find the xml).
The XML isn't the preferred way to fetch the territories and territory locations any more, this script still uses that tactic.
But now it's in the page already, which saves you a request to the server and you'll always have the right data (lack doesn't guarantee some mechanisms are still working, I think the script uses one of those).
So if you get it from the page (see CM for 1 way to fetch it), you'll only have to pour it in the structure the plugin uses, and everything should work.
It seems to only fetch the territories with name and coordinates, and put them in a map with the name as the key, not terribly complicated luckily.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Handy Game History 1.1

Postby Dako on Fri Aug 06, 2010 6:45 am

New version is out!

http://userscripts.org/scripts/show/83035

1.1 changes
  • Added unvisualize link
  • Changed the code to support new XML format (thanks to sherkaner for pointing this out)
  • Code clean-up, documentation and refactoring
  • Changed the colors to the current CC system


Known issue - script is working unstable with fog games (cause of all the unknown neutrals).
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: Handy Game History 1.1

Postby ender516 on Sat Aug 07, 2010 2:56 pm

Well, if it works well once the fog lifts at the end of the game, that will be good at least for post-mortem analysis.
User avatar
Sergeant 1st Class ender516
Tech Contributor
Tech Contributor
 
Posts: 4451
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Handy Game History 1.1

Postby iamkoolerthanu on Sat Aug 07, 2010 6:28 pm

ender516 wrote:Well, if it works well once the fog lifts at the end of the game, that will be good at least for post-mortem analysis.

It will be very good for those games :)

I will try the new version out on a speed game or two and let you know what happens :)
rds is awesome!
Image
User avatar
Private 1st Class iamkoolerthanu
 
Posts: 4184
Joined: Sun Dec 31, 2006 6:56 pm
Location: looking at my highest score: 2715, #170
Medals: 99
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (3)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (8) General Achievement (5) Clan Achievement (8) Tournament Contribution (31)
General Contribution (1)

Re: Handy Game History 1.1

Postby the.killing.44 on Sun Aug 08, 2010 7:03 pm

No Chrome compatibility?
User avatar
Major the.killing.44
 
Posts: 4737
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes
Medals: 47
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (3) General Achievement (3)
Clan Achievement (3) Map Contribution (2) Tournament Contribution (2) General Contribution (4)

Re: Handy Game History 1.1

Postby Dako on Mon Aug 09, 2010 2:49 am

Do you need it? I can try to alter the code and make it work there as well.
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: Handy Game History 1.1

Postby Doc_Brown on Mon Aug 09, 2010 9:07 am

Thanks for updating this! I had thought about trying it myself a while back, but I don't know enough about the scripting format for plugins and decided this was going to take some work. Anyway, I did find one bug. The vertical position of the markers is incorrect when you use large maps. It looks like the problem is in the getTerrCoords () function:

var ly = ts[i].yS; should read var ly = ts[i].yL;
User avatar
Major Doc_Brown
 
Posts: 659
Joined: Tue Sep 29, 2009 6:06 pm
Location: Alabama
Medals: 28
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Trench Warfare Achievement (1) Teammate Achievement (1)
Random Map Achievement (1) Cross-Map Achievement (2) Ratings Achievement (3) Tournament Achievement (1) General Achievement (2)
Clan Achievement (3) Training Achievement (2)

Re: Handy Game History 1.1

Postby Dako on Mon Aug 09, 2010 9:45 am

the.killing.44 wrote:No Chrome compatibility?

Actually, the script was working already (awesome, me) so I just added 1 line for indicators positioning and it is working fine right now (you can just reinstall the script).

Doc_Brown wrote:Thanks for updating this! I had thought about trying it myself a while back, but I don't know enough about the scripting format for plugins and decided this was going to take some work. Anyway, I did find one bug. The vertical position of the markers is incorrect when you use large maps. It looks like the problem is in the getTerrCoords () function:

var ly = ts[i].yS; should read var ly = ts[i].yL;

True, thanks for spotting this! Already fixed.



Also, nuke games makes this script work unexpectedly because you don't know which player's region were nuked - hence can't build the history correctly.
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: Handy Game History 1.1

Postby the.killing.44 on Wed Aug 11, 2010 8:20 pm

<3
User avatar
Major the.killing.44
 
Posts: 4737
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes
Medals: 47
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (3) General Achievement (3)
Clan Achievement (3) Map Contribution (2) Tournament Contribution (2) General Contribution (4)

Next

Return to Available Tools/Enhancements

Who is online

Users browsing this forum: Crush0r, JP007, Kragomac, rousseau72 and 1 guest

Login