Login

Username:


Password:


Remember me



Forgot Password?




 Merchandise




World of Tanks Signatures

World of Tanks Signatures

Postby Spack » Sat Jul 14, 2012 2:19 pm

After much tinkering with the Zippyho signature generator (the same one 1stcav.net hosts), and realising that it won't do quite I want (it hasn't been updated for 2 WoT versions so is missing the new tank icons, for instance), I'm working on a new signature generator. The end result will look like Zippho's one, it can use the same interface to create the sig (albeit with the extra images I've added, and can add custom sig images for members on request), but the back end will be radically different. Rather than parsing the HTML from the profile page for a WoT player I've built a new parser that utilises the JSON APIs that a few stats site use (such as wot-news) and so can access a lot more data about a player - for instance, the achievements list so that small medal icons can be added to the signature :) I've also got the calc for the "Efficiency Rating" used in XVM, WoT-News, and a few other WoT stats.

I'm still sorting out the parsing code, but an example can be see here:

wot/WoTAPI.php

That's the data for my own account, cached for 12 hours. After 12 hours a new file will be requested. I haven't played for a few days so this was ideal to initially test with, but I don't have many achievements, so I then pulled King's data, which you can see here:

wot/WoTAPI.php?id=501098707

What I need now is player IDs for players with many more achievements, such as the one for killing over 100 IS tanks, as Nige doesn't have all of them.

Once I'm happy that the parser is working I'll be modifying Zippyho's code to replace the HTML parser, and add in some of the new elements. The main advantage with this change is the tank icons - the data returned includes URLs to the graphics which are used on the profile page, so I can pull those too and cache them - whenever new tanks are added the icons will be pulled and cached automatically :D

Also included in the API is clan data, including URL to the clan icon, so this can also be added to the sig easily.

So, anyone have some IDs I can use to pull more data?
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Sun Jul 15, 2012 12:04 pm

After digging around the details of other players who have the Lion of Sinai achievement it appears that it hasn't been added to the API yet ... :(
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby killmaimburn » Sun Jul 15, 2012 12:06 pm

Could you make badges for your avatars. Like boardgame geek do.
(myself I'm not a fan, but you lot want to show stuff you could take the 6 nugget thing below the avatar and reserve for buttons of achievement in games X Y and Z (just jpgs/smilies)
Barely even lurking..
ruffian4 wrote:Handy fellow, this kmb...Like Ahriman delving the paths of the webway ...
World of ME First try at Apoc Batrep WHAT/WHO is AOS?
User avatar
killmaimburn
Now Vanus Clade
 
Posts: 6581
Joined: Fri Sep 21, 2007 12:00 am
Location: Nottingham, mid-land
Blog: View Blog (1)

Re: World of Tanks Signatures

Postby Spack » Sun Jul 15, 2012 2:54 pm

There are over 40 achievements in World of Tanks at the moment, although only 36 are shown in the API results. Would have to be very selective in what to show. The sig image works well enough, the tweaks i'm making should speed it up and will mean it won't break when the profile page layout is changed :)

Have spent this afternoon sat in a café while my son is at a party so have had time to go through the source code I printed out this morning and figure out what needs changing. Will try to code it up later today or tomorrow.
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Mon Jul 16, 2012 12:45 am

First stage of modding is complete; I've got a copy of the sig code using the JSON API data rather than scraping the profile page HTML. It's also using the icons from the WoT website, so will pick up new tank icons automatically.

I've got the Efficiency Rating calculation from wot-news.de working too, but I've left it off for now.

So, time for a comparison. First pic is the old sig code, second is the new:

aos_v2.png


aos_v3.png


With the shorter names for the stats there's more space. I should be able to look at adding achievements as an option as there's plenty of room now.
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Mon Jul 16, 2012 10:00 am

Efficiency ratings (same value as shown at http://wot-news.com/index.php/stat/calc/en/ ) are now enabled, replacing the server location at the moment.

aos_v3_1.png




Unfortunately, at the time of writing, my efficiency rating is "below average", hence the red ... just need to push it up to 900 to squeeze into the "average" bracket (which will turn yellow).

Here are King's sigs.

Original hosted at 1stcav.net:

king_1stcav.png
king_1stcav.png (62.56 KiB) Viewed 9964 times




New one here on AoS:

king_v3_1.png
king_v3_1.png (69.5 KiB) Viewed 9964 times




And new one with Efficiency Rating

king_v3_2.png
king_v3_2.png (70.12 KiB) Viewed 9964 times




As you can see (at least at the time of writing), Nige's ER is in the "good" range of 1200-1500.
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby killmaimburn » Mon Jul 16, 2012 11:16 am

Looks readable and informative to me :D
How come his is only 2/3rds the size of yours?
Barely even lurking..
ruffian4 wrote:Handy fellow, this kmb...Like Ahriman delving the paths of the webway ...
World of ME First try at Apoc Batrep WHAT/WHO is AOS?
User avatar
killmaimburn
Now Vanus Clade
 
Posts: 6581
Joined: Fri Sep 21, 2007 12:00 am
Location: Nottingham, mid-land
Blog: View Blog (1)

Re: World of Tanks Signatures

Postby Spack » Tue Jul 17, 2012 8:14 am

There are 2 size options - Nige chose the small one.

Also if you notice the tanks listed on his sig, in the one I've built the tanks being shown are slightly different - the original one sorts by Tier (high to low), but doesn't check Battle count so ends up putting the highest tier+lowest battles first, reversing the default ordering of by Battles first.

I've tweaked the image again, moving the efficiency rating into the stats list.

aos_v3_2.png




And Nige's:

king_v3_3.png
king_v3_3.png (70.19 KiB) Viewed 9952 times
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Socaddict » Tue Jul 17, 2012 11:20 pm

My account should be Socaddict. Can I get one of these from you?

Cheers.
Image
Waaargh.
Orks project log here
User avatar
Socaddict
Mekboy
Warlord
 
Posts: 823
Joined: Thu Jan 05, 2006 12:00 am
Location: London
Medals: 2
Painting Entrant (2)

Re: World of Tanks Signatures

Postby Spack » Wed Jul 18, 2012 8:09 pm

Sure can. Just change the
Code: Select all
http://1stcav.net/sig2
in your sig URL to
Code: Select all
http://www.ageofstrife.com/wot/sig3
, the rest of the URL is the same :)
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Thu Jul 19, 2012 6:39 pm

Change them again slightly, efficiency rating is back at top right:

aos_v3_5.png




king_v3_5.png
king_v3_5.png (70.1 KiB) Viewed 9923 times
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Fri Jul 20, 2012 9:20 pm

Clan icon now added (only a sig for Nige and Socaddict here as I'm not in a clan), and I've moved the columns of status down 5 pixels as they were a bit close to the name.

king_v3_6.png
king_v3_6.png (65.73 KiB) Viewed 9907 times




socaddict_v3.png
socaddict_v3.png (76.62 KiB) Viewed 9907 times


EDIT: just realised the clan icon is a fraction too big, just adjusted from 24x24 to 18x18 pixels but haven't change images.
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby Spack » Sat Jul 21, 2012 12:38 pm

Clan icon option for large version at upper right now added too:

socaddict_v3_3.png




king_v3_9.png




and smaller icons adjusted slightly

socaddict_v3_2.png




king_v3_8.png


User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Re: World of Tanks Signatures

Postby KInG » Sat Jul 21, 2012 11:34 pm

Lost me. Just give me a URL I can put in my sig dan. ;)
www.GamingFigures.com & http://www.AgeofStrife.com 15% off GW models 10% off FoW & GF9 - extra 1% off orders £100+ & 2% off orders £250+ with FREE UK SHIPPING now added
AoS_GF moderator
Image
User avatar
KInG
Archon
Archon
 
Posts: 5209
Joined: Sun Mar 13, 2005 12:00 am
Medals: 2
Painting Entrant (2)

Re: World of Tanks Signatures

Postby Spack » Sun Jul 22, 2012 8:38 am

What do you want enabled on it?

Identical to your 1stcav sig:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111100@uk@0.png


Efficiency Rating added:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111110@uk@0.png


Clan icon small:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111101@uk@0.png


Clan icon big:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111102@uk@0.png


Clan icon small plus efficiency rating:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111111@uk@0.png


Clan icon big plus efficiency rating:
Code: Select all
http://www.ageofstrife.com/wot/sig3@501098707-KInG_UK@eu@89@0@11111111111111@1111111111111@0111112@uk@0.png


Pick one and use it in your sig ;)

I'll be updating the interface for creating the sigs soon, wanted to get the code finalised first.
User avatar
Spack
I R Ginger
Field Marshall
 
Posts: 6815
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Medals: 2
Bronze (1) Painting Entrant (1)
Blog: View Blog (29)

Next



Return to World of Tanks




 Social Links