coh2stats
coh2stats copied to clipboard
Split stats into arranged teams / random teams
It should be as with http://coh2chart.com/
Problem: We don't know how to tell the teams apart.
Explore the API response on available ladders https://coh2-api.reliclink.com/community/leaderboard/GetAvailableLeaderboards?title=coh2
It looks like statgroup_type is either 1(random) or 2 in (arranged teams) But than on the single match object it's not mentioned anywhere.
The single match object from the API looks like this:
id: 235119300,
creator_profile_id: 1882602,
mapname: "4p_rails_and_metal",
maxplayers: 8,
matchtype_id: 0,
options: "eNozYPvGAAGMDEyMIHpj9qa5gt18FlBhBjlGORCJB4OAEBCbFMQXJWbmFMcn5qXE56aWJOYwDAYAAHUmDME=",
slotinfo:
"eNrjYWBg4GB4tVOGAQQYGTABM4zxHwpA7BdAtYwgDiMDJ2Om60QOkGBxMCtYIYQESlRAJXRvMKFKLL4iLgliZTxnQ5UohOrQQ9eRAZVg+8KMKhEOlZiLLlEJldiCKsGIAhEA5jN0MGWfOkowMCIFExO2oBFjRAqaV+15/FiD5gVUwhjdoy+hEkboEn+vHRUEsTjeo3mUoQOiAyNoWKASGEHDCJXAGjScjMI+k4XBPvFjRZfmZOSD6n38ACXqCAekYJgeaqAhAUa8aYyT0SfaDuz3DEgyRbiIkzHs2GawVOl1tPDygOo5LsqAKqEHlTiDLmEHlZAUR5OwgErIoEvk37IXAbHuiTNQksbEH1uCaRYsaYwBW9DoIqcx9znRIljTWBpU4gm6s3OgEs/QJTyhEt6f0VKMF1RCGl2HN1QCI2gCoRKSmEHDyWgckQCW7ENNRCApa0+IVJ44RlRnQ40kOen9RwNYxZAkGTGlGUnXQhtbAJrRNIc=",
description: "AUTOMATCH",
startgametime: 1605637963,
completiontime: 1605639516,
observertotal: 0,
matchhistoryreportresults: [
{
matchhistory_id: 235119300,
profile_id: 1882602,
resulttype: 1,
teamid: 0,
race_id: 3,
xpgained: 12552,
counters:
'{"manmax":650,"vvetrank":13,"cabil":5,"dmgdone":14227,"plost":3,"svetrank":2,"fuelmax":234,"cpearn":15,"blost":0,"edeaths":79,"pcap":9,"munspnt":855,"precap":4,"sqkill":10,"popmax":0,"sqprod":14,"bprod":16,"vabnd":0,"svetxp":2890,"fuelearn":696,"ismod":0,"vkill":4,"utypes":17,"abil":55,"sqlost":8,"fuelspnt":595,"vcap":0,"vlost":3,"manspnt":5562,"gt":1468,"upg":8,"version":3,"vvetxp":8816,"munearn":1099,"vp1":0,"vp0":440,"manearn":5523,"erein":54,"munmax":444,"cflags":0,"wpnpu":0,"ekills":81,"vprod":6}',
matchstartdate: 1605637963,
},
{
matchhistory_id: 235119300,
profile_id: 2604692,
resulttype: 0,
teamid: 1,
race_id: 2,
xpgained: 10249,
counters:
'{"manmax":645,"vvetrank":13,"cabil":0,"dmgdone":11539,"plost":3,"svetrank":2,"fuelmax":136,"cpearn":13,"blost":0,"edeaths":78,"pcap":4,"munspnt":540,"precap":2,"sqkill":4,"popmax":0,"sqprod":16,"bprod":13,"vabnd":0,"svetxp":2060,"fuelearn":416,"ismod":0,"vkill":2,"utypes":8,"abil":39,"sqlost":5,"fuelspnt":290,"vcap":0,"vlost":2,"manspnt":5880,"gt":1468,"upg":7,"version":3,"vvetxp":6600,"munearn":701,"vp1":0,"vp0":440,"manearn":5804,"erein":54,"munmax":194,"cflags":128,"wpnpu":0,"ekills":62,"vprod":7}',
matchstartdate: 1605637963,
},
{
matchhistory_id: 235119300,
profile_id: 3036689,
resulttype: 1,
teamid: 0,
race_id: 1,
xpgained: 11574,
counters:
'{"manmax":676,"vvetrank":9,"cabil":6,"dmgdone":12778,"plost":7,"svetrank":5,"fuelmax":318,"cpearn":13,"blost":0,"edeaths":66,"pcap":13,"munspnt":430,"precap":9,"sqkill":5,"popmax":0,"sqprod":14,"bprod":16,"vabnd":1,"svetxp":3570,"fuelearn":696,"ismod":0,"vkill":3,"utypes":11,"abil":70,"sqlost":6,"fuelspnt":500,"vcap":1,"vlost":2,"manspnt":5737,"gt":1468,"upg":3,"version":3,"vvetxp":5200,"munearn":1099,"vp1":0,"vp0":440,"manearn":5745,"erein":42,"munmax":772,"cflags":128,"wpnpu":0,"ekills":58,"vprod":5}',
matchstartdate: 1605637963,
},
{
matchhistory_id: 235119300,
profile_id: 3793687,
resulttype: 0,
teamid: 1,
race_id: 0,
xpgained: 12607,
counters:
'{"manmax":1725,"vvetrank":12,"cabil":0,"dmgdone":16187,"plost":10,"svetrank":5,"fuelmax":150,"cpearn":15,"blost":0,"edeaths":70,"pcap":13,"munspnt":650,"precap":8,"sqkill":8,"popmax":0,"sqprod":17,"bprod":18,"vabnd":0,"svetxp":5950,"fuelearn":416,"ismod":0,"vkill":3,"utypes":7,"abil":23,"sqlost":11,"fuelspnt":325,"vcap":0,"vlost":6,"manspnt":5765,"gt":1468,"upg":10,"version":3,"vvetxp":6360,"munearn":701,"vp1":0,"vp0":440,"manearn":6062,"erein":25,"munmax":267,"cflags":128,"wpnpu":0,"ekills":67,"vprod":4}',
matchstartdate: 1605637963,
},
],
matchhistoryitems: [
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738225,
itemdefinition_id: 186414,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738232,
itemdefinition_id: 186413,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 420992163,
itemdefinition_id: 452456,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738199,
itemdefinition_id: 259229,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738216,
itemdefinition_id: 259078,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738233,
itemdefinition_id: 259252,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 1882602,
matchhistory_id: 235119300,
iteminstance_id: 143738217,
itemdefinition_id: 349043,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 6,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 328420371,
itemdefinition_id: 347670,
durabilitytype: 0,
durability: 1,
metadata: "",
itemlocation_id: 2,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258901992,
itemdefinition_id: 186419,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258901993,
itemdefinition_id: 186418,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 298178301,
itemdefinition_id: 257800,
durabilitytype: 0,
durability: 1,
metadata: "{}",
itemlocation_id: 3,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258902016,
itemdefinition_id: 259078,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258902017,
itemdefinition_id: 259252,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258902020,
itemdefinition_id: 259229,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258901994,
itemdefinition_id: 349043,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 6,
},
{
profile_id: 2604692,
matchhistory_id: 235119300,
iteminstance_id: 258902030,
itemdefinition_id: 450787,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 8,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 289299246,
itemdefinition_id: 5580,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 289299272,
itemdefinition_id: 5575,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 296994390,
itemdefinition_id: 186229,
durabilitytype: 0,
durability: 1,
metadata: "{}",
itemlocation_id: 3,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 289299256,
itemdefinition_id: 5916,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 289299262,
itemdefinition_id: 5913,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 339729007,
itemdefinition_id: 6110,
durabilitytype: 0,
durability: 1,
metadata: "",
itemlocation_id: 4,
},
{
profile_id: 3036689,
matchhistory_id: 235119300,
iteminstance_id: 289299276,
itemdefinition_id: 7272,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 5,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341854523,
itemdefinition_id: 5998,
durabilitytype: 0,
durability: 1,
metadata: "",
itemlocation_id: 2,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341858355,
itemdefinition_id: 450702,
durabilitytype: 0,
durability: 1,
metadata: "",
itemlocation_id: 2,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548105,
itemdefinition_id: 258891,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548134,
itemdefinition_id: 6116,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548140,
itemdefinition_id: 6118,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 3,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548106,
itemdefinition_id: 5915,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548107,
itemdefinition_id: 5916,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548113,
itemdefinition_id: 5913,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 4,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548103,
itemdefinition_id: 349043,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 6,
},
{
profile_id: 3793687,
matchhistory_id: 235119300,
iteminstance_id: 341548139,
itemdefinition_id: 450787,
durabilitytype: 0,
durability: 1,
metadata: '{"dlc":1}',
itemlocation_id: 8,
},
],
matchurls: [],
Quick question, does match involving AT still counted with current all player / top200 matchups?
Yes it counts. Because I can't tell from the match records if they were played with AT or not.