Jump to content

Api Road Map, Stats Side


3 replies to this topic

#1 Dark DeLaurel

    Member

  • PipPipPipPipPipPipPip
  • The Devoted
  • The Devoted
  • 579 posts
  • Google+: Link
  • LocationWarShip Sleipnir, Spinward-Coreward Quadrant

Posted 17 August 2014 - 08:17 PM

Hi Jon,

Is there a road map anywhere on what you would like to accomplish with the API? It has been suggested by you that we maybe able to see player stats through it. If we do go down this road (and man I hope ha), can I suggest the World of Tanks model? As an example here is what I can see without an access token (which is granted by the Wargaming developer web site) and there is no worry about these stats as they are my own.

Basically we are able to get through json everything that the WG web site displays when we visit http://worldoftanks....5-DarkDeLaurel/ then with an access token granted through OpenID you can see stuff like gold (their MC) and silver (their C-Bills).

The API is split up also so you can get Personal data, player vehicles, player achievements (https://na.wargaming...http_method=GET) depending on how you access the API. I myself have just started to play with the WoT API but can already see the potential here for MWO.

Good?, Bad? Terribad?

{
	"status": "ok",
	"count": 1,
	"data": {
		"1008809865": {
			"achievements": {
				"tank_expert_uk": 0,
				"medal_dumitru": 0,
				"invader": 5,
				"medal_lehvaslaiho": 0,
				"warrior": 1,
				"medal_halonen": 0,
				"medal_pascucci": 0,
				"medal_orlik": 0,
				"medal_brothers_in_arms": 1,
				"mousebane": 0,
				"tank_expert_france": 0,
				"tank_expert_japan": 0,
				"mechanic_engineer_ussr": 0,
				"medal_bruno_pietro": 0,
				"medal_delanglade": 0,
				"lucky_devil": 0,
				"defender": 1,
				"armor_piercer": 1,
				"medal_kay": 3,
				"supporter": 3,
				"mechanic_engineer": 0,
				"steelwall": 0,
				"max_sniper_series": 46,
				"medal_knispel": 3,
				"medal_boelter": 0,
				"medal_ekins": 4,
				"medal_heroes_of_rassenay": 0,
				"medal_tamada_yoshio": 0,
				"tank_expert_usa": 0,
				"mechanic_engineer_germany": 0,
				"max_piercing_series": 18,
				"tank_expert": 0,
				"iron_man": 6,
				"medal_radley_walters": 0,
				"kamikaze": 2,
				"tank_expert_germany": 0,
				"beasthunter": 0,
				"sniper": 0,
				"medal_tarczay": 0,
				"medal_lavrinenko": 3,
				"main_gun": 3,
				"medal_oskin": 0,
				"medal_burda": 0,
				"medal_billotte": 0,
				"huntsman": 0,
				"hand_of_death": 1,
				"medal_fadin": 0,
				"medal_lafayette_pool": 0,
				"max_killing_series": 4,
				"tank_expert_china": 0,
				"mechanic_engineer_usa": 0,
				"medal_kolobanov": 0,
				"patton_valley": 0,
				"bombardier": 0,
				"mechanic_engineer_france": 0,
				"sniper2": 0,
				"medal_abrams": 3,
				"max_invincible_series": 2,
				"medal_poppel": 3,
				"medal_crucial_contribution": 0,
				"raider": 0,
				"max_diehard_series": 3,
				"mechanic_engineer_uk": 0,
				"invincible": 0,
				"lumberjack": 0,
				"sturdy": 1,
				"title_sniper": 1,
				"sinai": 0,
				"diehard": 0,
				"medal_carius": 3,
				"medal_le_clerc": 3,
				"tank_expert_ussr": 0,
				"evileye": 0,
				"mechanic_engineer_japan": 0,
				"mechanic_engineer_china": 0,
				"medal_nikolas": 0,
				"scout": 0
			},
			"client_language": "en",
			"statistics": {
				"clan": {
					"spotted": 0,
					"hits": 0,
					"battle_avg_xp": 0,
					"draws": 0,
					"wins": 0,
					"losses": 0,
					"capture_points": 0,
					"battles": 0,
					"damage_dealt": 0,
					"hits_percents": 0,
					"damage_received": 0,
					"shots": 0,
					"xp": 0,
					"frags": 0,
					"survived_battles": 0,
					"dropped_capture_points": 0
				},
				"all": {
					"spotted": 713,
					"hits": 4621,
					"battle_avg_xp": 251,
					"draws": 11,
					"wins": 482,
					"losses": 548,
					"capture_points": 1986,
					"battles": 1041,
					"damage_dealt": 241186,
					"hits_percents": 45,
					"damage_received": 233847,
					"shots": 10315,
					"xp": 261718,
					"frags": 571,
					"survived_battles": 278,
					"dropped_capture_points": 821
				},
				"max_xp": 1390,
				"company": {
					"spotted": 0,
					"hits": 0,
					"battle_avg_xp": 0,
					"draws": 0,
					"wins": 0,
					"losses": 0,
					"capture_points": 0,
					"battles": 0,
					"damage_dealt": 0,
					"hits_percents": 0,
					"damage_received": 0,
					"shots": 0,
					"xp": 0,
					"frags": 0,
					"survived_battles": 0,
					"dropped_capture_points": 0
				},
				"historical": {
					"spotted": 0,
					"hits": 0,
					"battle_avg_xp": 0,
					"draws": 0,
					"wins": 0,
					"losses": 0,
					"capture_points": 0,
					"battles": 0,
					"damage_dealt": 0,
					"hits_percents": 0,
					"damage_received": 0,
					"shots": 0,
					"xp": 0,
					"frags": 0,
					"survived_battles": 0,
					"dropped_capture_points": 0
				},
				"max_damage": 2470,
				"max_damage_vehicle": 11857
			},
			"account_id": 1008809865,
			"last_battle_time": 1408196045,
			"created_at": 1401283200,
			"updated_at": 1408196096,
			"private": null,
			"global_rating": 2323,
			"clan_id": 1000015707,
			"nickname": "DarkDeLaurel",
			"logout_at": 1408196092
		}
	}
}


#2 Prophet Roshak

    Member

  • PipPipPip
  • Survivor
  • Survivor
  • 64 posts
  • LocationRussia

Posted 26 August 2014 - 03:31 AM

Greetings!

Looking through forums, I stumbled upon this forum section, which were hiding from my eyes somehow.

While playing MWO with my unit, we came to a moment when a correct vision and comparison of players become something important. To begin with, we chose to make some kind of a composite formula, using published pilot stats, submitted by players into a web-based comparison tool. After doing some maths in spreadsheets, I’ve made a tool which allows the upload of HTML stats pages saved from player profiles, which works perfectly, except that the rating which it computes hardly represents actual combat performance.

To make the rating more precise, I would like to break down the XP rewards by 'mech and by rewarded combat actions, such as assists, captures, counter-ECMs, destroyed components, and so on. It will be even better to have actual actions count. It will be decent to have this info on website, or really awesome to get it all via API.

Having a roadmap on this feature, will help me to be prepared for it's release ;)

P.S. One question which will improve my current formulas: does current XP earned for 'mechs include premium account bonus? Could it be subtracted from overall XP, or shown as separate column?

#3 Escobar

    Member

  • PipPip
  • The Hammer
  • The Hammer
  • 35 posts
  • LocationAdana, Turkey

Posted 26 August 2014 - 10:22 AM

View PostProphet Roshak, on 26 August 2014 - 03:31 AM, said:

P.S. One question which will improve my current formulas: does current XP earned for 'mechs include premium account bonus? Could it be subtracted from overall XP, or shown as separate column?


Yes, XP gained as published by the web pages does include FWOTD and Premium Time, which really makes it useless in factoring in to your calculations.

I am always interested in using the stats available to derive a 'score' of some form. If you feel like tossing around some ideas on what can be used today, ill happily bounce some ideas back (and criticism of my own approach, always welcome).

At mechStats we derive a score as detailed here.

Ive recently revised the scoring in how it accounts for old stats (older than 90 days). I think the new changes are more correct. (instead of the downright-wrong factoring of old stats as additive to new stats as was done before, we now have old stats adjusting your recent stats by up to 25% swing. Its simplistic, but I think effective).

Coming up with a good score given what little we have today is definitely a challenge. I have yet to come up with anything that is not entirely offensive output based.

#4 Prophet Roshak

    Member

  • PipPipPip
  • Survivor
  • Survivor
  • 64 posts
  • LocationRussia

Posted 27 August 2014 - 02:07 AM

View PostEscobar, on 26 August 2014 - 10:22 AM, said:

Yes, XP gained as published by the web pages does include FWOTD and Premium Time, which really makes it useless in factoring in to your calculations.

I am always interested in using the stats available to derive a 'score' of some form. If you feel like tossing around some ideas on what can be used today, ill happily bounce some ideas back (and criticism of my own approach, always welcome).


Thanks for your answer!:P I'll think about the use of useless XP for the time being.

In my current maths I mostly do averaging, with an objective to get player's effectiveness in an average match played. Then I set the goals for main variables, like damage per match, kills per match, damage per kill, damage per death, survival rate. The goals are describing an ideal mechwarrior (by clans sense), and by comparing player stats to that ideal, I compose a weighted sum which acts as rating.

Damage per kill and per death are a bit synthetic, but given, that you can't lose your mech twice in a match, I think it still makes sense.

Also, I wanted to use "Action XP", which is (regular xp - wins xp - loses xp - kills xp - assist xp (also synthetic, just like yours)) per match played, but with all this premium bonus it will give unjustified advantage to premium users. So, we are all waiting for actual actions count to make "score" happen :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users