-
Notifications
You must be signed in to change notification settings - Fork 8
Stats Pages
This works slightly differently from other Graphical Outputs, it has access to statData Replicants, which the HUD does not have.
You can call stats from
this.statData.latestGame.
which are stats from the last finished game.
this.statData.latestSet.
is cumulative stats from X finished games, set by the Best Of option on the dashboard.
The Stats you can call are:
OPENINGS_PER_KILL = "opk"
DAMAGE_PER_OPENING = "dpo"
NEUTRAL_WINS = "nw"
KILL_MOVES = "mckm"
NEUTRAL_OPENER_MOVES = "mcno"
INPUTS_PER_MINUTE = "ipm"
AVG_KILL_PERCENT = "akp"
DAMAGE_DONE = "tdd"
EARLY_KILLS = "ek"
LATE_DEATHS = "ld"
SELF_DESTRUCTS = "sd"
HIGH_DAMAGE_PUNISHES = "hdp"
FIRST_BLOOD = "fb"
L_CANCEL = "lc"
Example Call for Low Port
this.statData.latestGame.mckm1
Example Call for High Port
this.statData.latestGame.mckm2
You can also call
this.statData.latestSet.gt
which will tell you how many games were played in the last full set.
this.statData.latestSet.g#
will give you a output of the called games main data.
For Example
this.statData.latestSet.g1
will give you the result 2,0:14,0,White,loser,5,Default,winner
2 is the stageID
0:14 is time the game took
0 is the Character Id of Low Port
White is the Character Color of Low Port
loser describes outcome of that game for the Low Port
5 is the Character ID of the High Port
Default is the Character Color of How Port
winner describes outcome of that game for the High Port
If you want a specific data out of that csv you can call
this.statData.latestSet.g1.split(",")[0]
Which will return the first value of the array.
0 is StageID
1 is Match Length in Minutes:Seconds
2 Low Port Character ID
3 Low Port Color Name
4 Low Port Game Result
5 High Port Character Id
6 High Port Color Name
7 High Port Game Result
It will cause a template to not load if you attempt to split an csv that does not exist. I've set GameEnd Debug template to only parse g1 so once you're completed a set it will always work.
SetEnd is setup to parse all possible outcomes, so if it isn't working for you, make the last set you completed a 5 game Best of 5 and then refresh the page.
As of Slippi Playback 3.4.0, SlippiHUD now works with Online Spectating and Replays.