"How Do I" Taking Stats

Discussion in 'E-Sports Hockey League - Xbox' started by LG McDonald, Sep 18, 2019.

Thread Status:
Not open for further replies.
  1. LG McDonald

    LG McDonald Director of Hockey Operations

    Sep 30, 2013
    LG McDonald#5572
    Trophy Points:
    Ottawa, ON
    +10,364 / 77 / -570
    How To Take States Using the New LG Stats API

    Exciting news, we finally have the single biggest feature we've all been waiting for, a direct API to EA Sports for stats. This means no fumbling with screen shots, OCR, twitter or your phone to prove stats. This also means managers no longer will need to correct stats or spend hours fixing and managing their organisations stats.

    This API is for both Xbox One and PS4, and we'll support it for every LG NHL league Team league we do including

    • Pro Series
    • CanAm
    • Friday Night Puck
    • IHL & LGWJ
    • And any other supported LG League
    This is the killer LG Feature we've all been waiting for.

    There is still some manual input as this API doesn't give us everything we have today, Rather then losing these stats we decided to make those stats manual, So manual stat input is this

    • Team Time on Attack
    • Team Power Play Goals & Attempts
    • Goals by Period
    Everything else we get from the API.

    How it works is simple, the user selects the LG Game, then types in the "EA Sports Club" their LG game was played on, That brings up a list of the last 5 games that EA Sports Club played. The user simply needs to select which EA Sports Game is connected to the LG Game.

    Here is a full demo

    There are a few things to consider though

    • We can only get stats from Club Challenge, Not the match making PIN System
    • It takes roughly 30-50 minutes after the game to show up on the API
    • We can only see a teams last 5 games right now, meaning if they play all night in club challenge we might not be able to get stats for that game
    Here is a list of the benefits
    • Makes being a manager in LG much easier, less work
    • IF we remove the OCR input, we could move all stat entry away from managers so that only BOG could manage stats and we never have to worry about stats being padded
    • 100% accuracy
    • We could do things like team records, season achieves now, now that players wont accidentally be given 1000 goals for a single game by accident ect.
    We will still support the OCR going forward while we test out the API but going forward this should really help our community and grow LG to new levels,

    Enjoy everyone

    How To Take Stats Using the OCR

    1. Prerequisite & Setup
    Before your game, these are things to make sure are working
    1. Make sure your Leaguegaming "Xbox GamerTag" is linked to the correct gamertag (under external accounts) you played your LG game with. This is the account we look for xbox screen shots and game clips
    2. Make sure all your Xbox Privacy settings are set to everyone for "See your game clips".
    3. Make sure you are either signed up for the LG game (either unconfirmed or confirmed) using the signup system.

    2. After Game

    (If your game is disconnected, follow the instructions of 2b. listed down below)

    Once a game is over a member from the winning team is required to take 4 screen shots from their xbox one, those screen shots are

    1. Team Stats - Example.
    2. Period Stats - Example.

    For Player stats, we use the new NHL 17 player stats screen that has gamertags and all 12 players on a single screen shot. We require 2 images here to get all stats.

    3. Player stats (scroll so PIM is highlighted) - Example.
    4. Player stats (scroll FO% is highlighted) - Example.

    Tips for taking screen shots - Do not take a screen shot with any screen overlays over any part of the stats, ie notification popups. If there is any blockage of the stats table the OCR will not be able to find where to start , or what stats are for what columns.
    3. Using the OCR (optical character recognition) on Leaguegaming.com

    Now that the game is over a member from the winning team (or team manager) can use the OCR to do stats, to do so goto

    1. The League the game is for (LGHL or LGAHL, or LGCHL or LGECHL)
    2. Hover "My LG" > Input Score > Select the game
    Once in the "OCR", follow the steps outlined.

    First step is to search all screen shots from players in the game.

    The 2nd step is for the old player name system, if your screen shots are from the new NHL 17 stat system, skip this step.

    The 3rd step is to search for images, select them by clicking on them and selecting the type of image its for (Team Stats, or Period Stats or User Stats ect).

    Last step is submit and save the game stats.
    4. Manual Stats Corrections by Team Managers

    If for whatever reason the OCR does not include a player, or adds an extra digit or does an 8 instead of a zero for example, its up to the managers to manually edit and correct game stats. They can do so by viewing the game, and there is a link at the bottom of the game to edit stats.

    2b. If a game is disconnected

    If a game requires any type of restart, simply take the 4 screen shots to capture the state of the game at that point. Then when the game is over after the restart, take the other 4 screen shots. In the OCR you can create a partition where you simply select which set of screen shots or for what periods played.

    Here is a video of how to use the OCR from NHL 16, the process is basically exactly the same except we use the new NHL 17 menu for screen shots.

    If you have any questions, please post below and we'll update this document.

    Thank you
Thread Status:
Not open for further replies.