Flags of the world

Have suggestion for a new or old tool/enhancement? Come on in!

Moderators: Tech Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Flags of the world

Postby grifftron on Fri Mar 16, 2012 10:03 am

Can you guys make a tool that once you click on it, it will bring up a new page that shows you the flags of all the people you have played against and how many from each country next to it...

Africa flag: 12 people
USA: 8029341 people
Thailand: 1 person
Mexico: 3 people

so on.. but with the flags instead of the names, this way I can hunt down the countries I have not yet played against.

Thanks
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby ender516 on Fri Mar 16, 2012 1:21 pm

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.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
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: Flags of the world

Postby chapcrap on Fri Mar 16, 2012 7:11 pm

What if someone's flag changes?
Image
User avatar
Captain chapcrap
 
Posts: 9581
Joined: Sun Feb 03, 2008 12:46 am
Location: Kansas City
Medals: 168
Standard Achievement (4) Doubles Achievement (4) Triples Achievement (3) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (3) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (3)
Cross-Map Achievement (4) Beta Map Achievement (1) Battle Royale Achievement (1) Ratings Achievement (4) Tournament Achievement (31)
General Achievement (16) Clan Achievement (17) Training Achievement (6) Challenge Achievement (1) Tournament Contribution (34)

Re: Flags of the world

Postby grifftron on Fri Mar 16, 2012 7:42 pm

Yea I just wanna know the ones I've played already
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby danfrank on Fri Mar 16, 2012 8:13 pm

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...
Image
Sergeant danfrank
 
Posts: 600
Joined: Mon Dec 24, 2007 1:19 am
Medals: 46
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (3) Teammate Achievement (1) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3)
Tournament Achievement (5) General Achievement (2) Clan Achievement (8) Tournament Contribution (1)

Re: Flags of the world

Postby danfrank on Fri Mar 16, 2012 8:16 pm

grifftron wrote:Yea I just wanna know the ones I've played already



Beard slap thats interesting you got one for bald guys :lol:
Image
Sergeant danfrank
 
Posts: 600
Joined: Mon Dec 24, 2007 1:19 am
Medals: 46
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (3) Teammate Achievement (1) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3)
Tournament Achievement (5) General Achievement (2) Clan Achievement (8) Tournament Contribution (1)

Re: Flags of the world

Postby grifftron on Fri Mar 16, 2012 9:34 pm

danfrank wrote:
grifftron wrote:Yea I just wanna know the ones I've played already



Beard slap thats interesting you got one for bald guys :lol:


google it :)

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! :ugeek:
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby ender516 on Fri Mar 16, 2012 11:54 pm

danfrank wrote:
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. :D ;)

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.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
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: Flags of the world

Postby grifftron on Sat Mar 17, 2012 12:43 am

I know their might be some errors and incorrect locations on some of the flags at the start, but cant you guys just get a trial and error version out :?:
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby betiko on Sat Mar 17, 2012 5:07 am

griff i didn't know africa was a country and that it had it's own flag! :lol:
Image
User avatar
Brigadier betiko
 
Posts: 5607
Joined: Fri Feb 25, 2011 3:05 pm
Location: Paris
Medals: 159
Conquer Cup Gold Achievement (1) 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) Polymorphic Achievement (2)
Nuclear Spoils Achievement (3) Fog of War Achievement (4) Trench Warfare Achievement (3) Speed Achievement (4) Teammate Achievement (2)
Random Map Achievement (3) Cross-Map Achievement (4) Beta Map Achievement (2) Battle Royale Achievement (2) Bot Achievement (3)
Ratings Achievement (4) Tournament Achievement (17) General Achievement (30) Clan Achievement (12) Training Achievement (2)

Re: Flags of the world

Postby grifftron on Wed Mar 21, 2012 3:38 am

betiko wrote:griff i didn't know africa was a country and that it had it's own flag! :lol:


:lol:


Anything new on this? can it be done ?
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby ender516 on Wed Mar 21, 2012 8:50 am

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.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
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: Flags of the world

Postby grifftron on Wed Mar 21, 2012 3:24 pm

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.


hehe OK thanks a lot ender, appreciate it!
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby runewake2 on Thu Mar 22, 2012 11:31 pm

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.
User avatar
Corporal 1st Class runewake2
Tech Contributor
Tech Contributor
 
Posts: 92
Joined: Sun May 23, 2010 1:50 pm
Location: Betwixt Two Curly Braces
Medals: 6
Standard Achievement (1) Fog of War Achievement (1) Ratings Achievement (1) General Contribution (3)

Re: Flags of the world

Postby grifftron on Mon Apr 30, 2012 1:33 am

bump... ender anything new ? :P
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)

Re: Flags of the world

Postby ThrushAAX on Mon Apr 30, 2012 7:45 am

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.
Colonel ThrushAAX
 
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am
Medals: 52
Conquer Cup Bronze Achievement (1) Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (2)
Terminator Achievement (2) Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (2) Tournament Achievement (7) General Achievement (12) Clan Achievement (3)
General Contribution (3)

Re: Flags of the world

Postby ender516 on Mon Apr 30, 2012 11:25 pm

grifftron wrote:bump... ender anything new ? :P

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.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
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: Flags of the world

Postby grifftron on Thu May 03, 2012 3:49 am

thanks :)
‹army of nobunaga› me and so many other people including people in your own clan look at you as a joke
User avatar
Major grifftron
SoC Training Adviser
 
Posts: 3221
Joined: Thu Jul 09, 2009 6:11 am
Location: Chiang Mai
Medals: 123
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (3) Tournament Achievement (8) General Achievement (14)
Clan Achievement (18) Training Achievement (3) Map Contribution (1) Tournament Contribution (30) General Contribution (3)


Return to Tools Suggestions

Who is online

Users browsing this forum: No registered users

Login