Sounds like an interesting exercise, but just to be clear, at first glance, I think a tool could only list the flags of countries you have played. I do not think that there is any reasonable way to come up with a list of flags that you have [b]not[b] yet played, as I don't see any practical way to get a complete list of all flags of users on CC.

ender516 wrote:Sounds like an interesting exercise, but just to be clear, at first glance, I think a tool could only list the flags of countries you have played. I do not think that there is any reasonable way to come up with a list of flags that you have [b]not[b] yet played, as I don't see any practical way to get a complete list of all flags of users on CC.

There are 196 countries in the world.. Having a standard page with all the flags of these countries and then it just tallying each flag per opponent played is not to difficult to code.. And from a website point it could do the same thing as people join the site. That way CC can see where they need to market if possible to do so...

And after the flags of the world is complete and I can click a button to show how many people from what countries I have played against, and possible (but not needed to fulfill my enjoyment) see the countries I yet to play against could you make another button that shows the faces of the people I have played against? now THAT would be even more interesting!

ender516 wrote:Sounds like an interesting exercise, but just to be clear, at first glance, I think a tool could only list the flags of countries you have played. I do not think that there is any reasonable way to come up with a list of flags that you have [b]not[b] yet played, as I don't see any practical way to get a complete list of all flags of users on CC.

There are 196 countries in the world.. Having a standard page with all the flags of these countries and then it just tallying each flag per opponent played is not to difficult to code.. And from a website point it could do the same thing as people join the site. That way CC can see where they need to market if possible to do so...

Of course one could find pictures of all those flags and type up a page with all that in, but as an irredeemable coding monkey, I will do almost any amount of software development to get a computer to do something I could do myself by hand.

A question remains: how closely does the list of countries reported by the CC API match up with that list of 196 countries? I believe that CC's countries are determined from the IP address you log in from, and I seem to recall seeing some odd flags due to proxy use.

I will likely take a look at this once I release a couple of other scripts I am working on: a Player Link script (like Game Link, but pops up a quick mini-profile when hovering over tagged player names), and the Conquer Club Contrast Corrector (or C4, as I like to call it) which adds a white outline to the black outline on troop numbers on maps, solving the problem of blue being too dark to read on some maps, like ConquerMan. If you do not hear from me within a month, give me a nudge by PM or posting here.

ender516 wrote:I will likely take a look at this once I release a couple of other scripts I am working on: a Player Link script (like Game Link, but pops up a quick mini-profile when hovering over tagged player names), and the Conquer Club Contrast Corrector (or C4, as I like to call it) which adds a white outline to the black outline on troop numbers on maps, solving the problem of blue being too dark to read on some maps, like ConquerMan. If you do not hear from me within a month, give me a nudge by PM or posting here.

If you don't mind using a C# program (would require install) I could just change like 2 lines in my Windows Phone app and you would get something like what you describe, though I can't vouch for performance (likely terrible as no caching occurs). Anyway, if that is cool with you I could have something relatively quickly.

I'm not sure if my algorithm for grabbing the users flag is correct, might be a good way to debug it.

EDIT: Take back what I said about requiring an install, I can get around that. It would require you to be using Windows though, Linux and Mac would require teaching my code to dance, and it isn't up for that... at least not yet.

Woudn't this require a huge number of web requests? If you played 2000 unique players you would need to load 2000 different api calls? I suppose it could cash the result of each player after each run, but it still sounds like a lot. Maprank doesn't even hit 100 api calls (though they have a large result set) until you have 20000 games. Actually it would be similar to some of the maprank code as you still need to get and parse all games played then you need to look up each unique player.

It would be be faster to get and store country flags from the scoreboard in large batches, but that's only for the current active players.

Thanks for the reminder. I got my C4 script released here, but I am holding off on Player Link until Game Link, Map Rank, and BOB are all okay with Trench Warfare.

ThrushAAX wrote:Woudn't this require a huge number of web requests? If you played 2000 unique players you would need to load 2000 different api calls? I suppose it could cash the result of each player after each run, but it still sounds like a lot. Maprank doesn't even hit 100 api calls (though they have a large result set) until you have 20000 games. Actually it would be similar to some of the maprank code as you still need to get and parse all games played then you need to look up each unique player.

It would be be faster to get and store country flags from the scoreboard in large batches, but that's only for the current active players.

ThrushAAX makes some valid points. The Map Rank code would be a good base for this, but with the current API, you do need one call for each player. Maybe this would be best done as an enhancement to Map Rank. To be honest, I don't know if Map Rank caches lists of unique players, or recreates them with each run. I will try to get a closer look at this idea this week.