Script: Handy Game History - Version 1.4

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Script: Handy Game History - Version 1.4

Post by Dako »

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.

Where do I get it?
Install the userscript from here: http://tools.conquerclub.com/handygamehistory/
Should work on all browsers supporting Tampermonkey

This script now is working with current CC version. Have fun and comment if you have found any bugs.
1.4 changes
  • Fixed a problem with getting the coordinates (dgz345)


1.3 changes
  • Added panelinterface support (dgz345)


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
jleonnn
Posts: 1808
Joined: Tue Jan 06, 2009 5:11 am
Gender: Male
Location: The Communist Republic of Aoria

Re: Handy Game History 1.0

Post by jleonnn »

thnx! :D
User avatar
iamkoolerthanu
Posts: 4119
Joined: Sun Dec 31, 2006 6:56 pm
Gender: Male
Location: looking at my highest score: 2715, #170

Re: Handy Game History 1.0

Post by iamkoolerthanu »

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
User avatar
iamkoolerthanu
Posts: 4119
Joined: Sun Dec 31, 2006 6:56 pm
Gender: Male
Location: looking at my highest score: 2715, #170

Re: Handy Game History 1.0

Post by iamkoolerthanu »

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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Handy Game History 1.0

Post by sherkaner »

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.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.0

Post by Dako »

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
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Handy Game History 1.0

Post by sherkaner »

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.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

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
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: Handy Game History 1.1

Post by ender516 »

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
iamkoolerthanu
Posts: 4119
Joined: Sun Dec 31, 2006 6:56 pm
Gender: Male
Location: looking at my highest score: 2715, #170

Re: Handy Game History 1.1

Post by iamkoolerthanu »

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 :)
User avatar
the.killing.44
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Gender: Male
Location: now tell me what got two gums and knows how to spit rhymes
Contact:

Re: Handy Game History 1.1

Post by the.killing.44 »

No Chrome compatibility?
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

Do you need it? I can try to alter the code and make it work there as well.
Image
User avatar
Doc_Brown
Posts: 1323
Joined: Tue Sep 29, 2009 6:06 pm
Gender: Male

Re: Handy Game History 1.1

Post by Doc_Brown »

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;
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

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
the.killing.44
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Gender: Male
Location: now tell me what got two gums and knows how to spit rhymes
Contact:

Re: Handy Game History 1.1

Post by the.killing.44 »

<3
User avatar
amazzony
Posts: 10406
Joined: Tue Nov 14, 2006 12:58 pm
Gender: Female

Re: Handy Game History 1.1

Post by amazzony »

This sounds interesting, must get it when I get to my home computer (yep, marking my territory :P ).
"Thou shalt accept thy dice rolls as the will of the Gods" (Church of Gaming)
"amazzony is a beast" (Woodruff)
wolfpack0530
Posts: 869
Joined: Wed Jan 28, 2009 1:23 am
Gender: Male
Location: Shady Thickets, where it is warm and moist

Re: Handy Game History 1.1

Post by wolfpack0530 »

I went to install it and Chrome gave me a warning. 'This script can access your data on all websites"

this is worrysome, so to be safe, I did not complete the download. what is the real possiblility that private data can fall into the wrong hands?
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Handy Game History 1.1

Post by sherkaner »

wolfpack0530 wrote:I went to install it and Chrome gave me a warning. 'This script can access your data on all websites"

this is worrysome, so to be safe, I did not complete the download. what is the real possiblility that private data can fall into the wrong hands?

Chrome gives that message with all scripts I think, and it's actually wrong in case of most userscripts. They are only activated on certain URL's.
Privacy is another item though, the source code is available so you could check for yourself whether it contains any methods to send data to other servers. In general, people just trust the creator or 'the community' enough to just install it.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

wolfpack0530 wrote:I went to install it and Chrome gave me a warning. 'This script can access your data on all websites"

this is worrysome, so to be safe, I did not complete the download. what is the real possiblility that private data can fall into the wrong hands?

Chrome gives this warning for all the scripts. Handy game history works only on game page of CC. I can guarantee you that script doesn't access your private data at all. The code is open-sourced so you can look at it. There are much more dangers in the internet than scripts made for community by community moderators.

Script is safe.
Image
wolfpack0530
Posts: 869
Joined: Wed Jan 28, 2009 1:23 am
Gender: Male
Location: Shady Thickets, where it is warm and moist

Re: Handy Game History 1.1

Post by wolfpack0530 »

thanks for the replies. I dont doubt that the script is safe, just wondering how easily it may be used as a vehicle to view another's computer or something. no doubt there are some brilliant minds on this site who may know how to do such a thing. I guess this question is not specific to this script, but all of them i guess.

Because as sherk. said, i am getting the warning on all of them, so i am not really considering it to be a big deal at all. just curious
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

It is relatively easy to do so :).
Image
User avatar
cometripas
Posts: 36
Joined: Sat Feb 13, 2010 5:23 pm

Re: Handy Game History 1.1

Post by cometripas »

I have using handy game history for a few days and it worked fine, but now it doesn't work. I have uninstalled it and installed it again, tried with different games, but nothing. Does anyone have the same problem? Maybe incompatibility with other scripts from CC?

Thanks.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

The script is not working due to the last site changes. I am waiting for admins to fix 1 minor error and then the script will work again. I will post about it in this thread.
Image
User avatar
cometripas
Posts: 36
Joined: Sat Feb 13, 2010 5:23 pm

Re: Handy Game History 1.1

Post by cometripas »

Ok, we are waiting.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Handy Game History 1.1

Post by Dako »

New version is out with the fixed of current site changes.

Enjoy - http://userscripts.org/scripts/show/83035.
Image
Post Reply

Return to “Tool Archives”