Tool: LIHL Player Parser

Moderator: LIHL Staff

Diablo_
Protector of Nature
Posts: 3181
Joined: Sat Apr 06, 2013 10:26 pm
Has thanked: 54 times
Been thanked: 145 times

Tool: LIHL Player Parser

Postby Diablo_ » Mon Oct 24, 2016 2:56 pm

Hello.

Some months ago I was working on a stats tracking system for LIHL already (to see historical stats, track the stats changes per day etc.) but put it on ice after some time. Now with the LIHL Fantasy League coming up I have created a little tool that uses parts of my old project. Since hug and/or tin want to regularly update the current stats of the fantasy league they would every time have to manually check and store the Elo of 56 players, which would be pretty tedious :)

What my tool does is to automate this process, checking the Elo of all players (possibly split into multiple groups) specified in an input file and create reports to display this data. The tool can be configured and e.g. could also be used to fetch and store the Elo of every player in LIHL (if someone wants to create a daily snapshot to track the Elo progress or something).

You can find more information about how it works and how to use it in the readme file which u can find in the download package and the project repository.

Just some short information:
In the file config.properties you can set 3 parameters
- the name of the input file containing the players/groups
- the amount of players per group that should be considered for calculating the average Elo per group (e.g. for the current fantasy league set it to 6)
- the symbol that should be used as decimal separator ("." or ","). It can be useful to set it to the symbol that e.g. your Microsoft Excel uses as decimal separator to allow easy working with it.

The input file (default name: "players.txt") contains the name of the groups and the players per group. Every group must be seperated by an empty line, the first line per block is used as group name (displayed in the reports), then add one player per line.

If both these files exist and are configured you can just double click the file "lihl_player_parser-1.0.jar".
You need java version 1.5 or higher to do so. You can see your version by typing "java -version" in the windows command prompt. If you don't have any version installed or only an older one, you can download the latest versions here: https://java.com/de/download/

After some seconds (mostly depending on your internet connection) it will create a logfile and 2 reports in the folders outputFiles/logs and outputFiles/reports. The log just shows what the tool did internally and if it worked successfully or if there was an error. If successful it will create a .txt report (e.g. to copy paste it into this forum) and a .csv report (e.g. to open with Excel to copy/paste it to google spreadsheet and/or do calculations).

Source code can be found here: https://bitbucket.org/Luke91/lihl_player_parser
Donwload: See the attached .zip file below (you have to unzip it).

Just post here/pm me if you have questions and/or feedback.
Attachments
lihl_player_parser-1.1.zip
(612.33 KiB) Downloaded 34 times
These users thanked the author Diablo_ for the post:
TinSoldier (Mon Oct 24, 2016 4:42 pm)
-----
LIHL player parser, a tool to automatically parse LIHL players' Elo and create reports for it: CLICK

Diablo_
Protector of Nature
Posts: 3181
Joined: Sat Apr 06, 2013 10:26 pm
Has thanked: 54 times
Been thanked: 145 times

Re: Tool: LIHL Player Parser

Postby Diablo_ » Mon Oct 24, 2016 3:03 pm

@iightstyle @hugmeonce

I hope this will be helpful for you. If you want to change something (like the format or the layout of report files) just tell me. What you will have to do is to possibly update the players.txt if there were swaps or something and just execute the .jar file. I'm also not sure if the attached players.txt is up-to-date.

PS:
That's what the fantasy league result would look like today in the current season:

Spoiler!
LIHL Fantasy League: 24.10.2016 16:58:19

Average Elo of highest 6 players per group:
Diablo_'s roster: 1168,80
Beastman's roster: 1159,17
PewPew-Lasergun's roster: 1107,92
Nore]Juno's roster: 1098,57
HugMeOnce's roster: 1095,99
Dweiler's roster: 1068,37
LForward's roster: 1051,80
TinSoldier's roster: 1045,28
BA_Fail's roster: 1037,21

Diablo_'s roster:
ilocos_norte: 1289,98
wolke: 1215,16
diablo_: 1204,00
xfiend: 1171,83
kwycky: 1089,22
45k: 1042,61
ztx)fiji: 1022,90

Beastman's roster:
dj.fm: 1314,18
kreutertee: 1211,65
forever.: 1182,28
trancedout: 1113,99
supremebeing: 1070,33
armedanddeadly: 1062,58
mindmachine: 966,57

PewPew-Lasergun's roster:
tinsoldier: 1640,09
ace_of_spades: 1090,60
patarinsky: 1059,36
n1ll3: 973,95
piper: 972,83
forestone: 910,69
pewpew-lasergun: 785,18

Nore]Juno's roster:
avadakedavra: 1466,79
marshmallows: 1158,85
clearfluids: 1078,35
jubadus: 1010,26
donbola: 944,34
yolo.style: 932,81
dong[thai]: 898,08

HugMeOnce's roster:
sony-: 1405,56
hugmeonce: 1119,62
1007: 1065,60
fredegl: 1039,61
iightfyre: 983,17
anda: 962,40
guennter: 918,79

Dweiler's roster:
fate: 1179,94
bugatti_veyron: 1123,41
dafuker: 1091,22
braveheart_wins: 1083,31
dweiler: 1039,35
tariq.td: 892,98
michonne: 795,49

LForward's roster:
tom_hardy: 1320,39
achillesgr: 1082,77
lforward: 1031,34
broud3r: 1009,77
fq.com: 947,05
zaigon: 919,46
don_killuminati: 885,07

TinSoldier's roster:
nore]juno: 1273,01
magic.potatoes: 1204,28
psyclone: 1061,55
fogey: 928,71
cryptonox: 908,21
artmas: 895,91
fanatismo: 868,13

BA_Fail's roster:
jason-: 1141,64
thegreatdane: 1102,44
beepboopbeep: 1040,24
occupyw.street: 1028,65
thandrin: 993,77
ba_fail: 916,49
hate2lose: 551,45
-----
LIHL player parser, a tool to automatically parse LIHL players' Elo and create reports for it: CLICK

HugMeOnce
ENT's Poet
Posts: 259
Joined: Thu May 30, 2013 1:34 am
Has thanked: 1 time
Been thanked: 76 times

Re: Tool: LIHL Player Parser

Postby HugMeOnce » Mon Oct 24, 2016 3:33 pm

This is pretty cool bro I'll be sure to familiarize myself with it before the season starts :3. We could probably designate someone to post weekly updates of how everyone is doing.

Diablo_
Protector of Nature
Posts: 3181
Joined: Sat Apr 06, 2013 10:26 pm
Has thanked: 54 times
Been thanked: 145 times

Re: Tool: LIHL Player Parser

Postby Diablo_ » Tue Dec 13, 2016 1:44 pm

I have changed it so that players with 0 games will be shown with 1000 Elo instead of 0 Elo.
New version is attached as zip file (version 1.1).

I'll archive this topic now, a link can be found in my signature.
-----
LIHL player parser, a tool to automatically parse LIHL players' Elo and create reports for it: CLICK


Return to “LIHL Archive”

Who is online

Users browsing this forum: No registered users and 4 guests