August 20, 2018, 11:12:23 pm
Welcome, Guest. Please login or register.
143821 Posts in 17323 Topics- by 29784 Members - Latest Member: pieees
Pages: 1 [2]
  Print  
Author Topic: LootTracker  (Read 6653 times)
Full Member
***
Posts: 303
View Profile
« Reply #15 on: March 14, 2018, 12:42:12 pm »

There's a fork with minor tweaks:
LootTracker Fork by Road-Block

-Item Edit frame closable by Esc
-Better compatibility with shootyepgp
-More Compact Browser window


Also:
The Export Format is rather badly parseable. Anyone eager to fix that? Luise? Should I fix and pull-request?
Logged
Tester
Jr. Member
*****
Posts: 116
View Profile
« Reply #16 on: August 04, 2018, 08:55:01 am »

There's a fork with minor tweaks:
LootTracker Fork by Road-Block

-Item Edit frame closable by Esc
-Better compatibility with shootyepgp
-More Compact Browser window


Also:
The Export Format is rather badly parseable. Anyone eager to fix that? Luise? Should I fix and pull-request?

*yawns* what would be a good parsable output? csv? json? yaml?
Logged

Discord: isitLoVe#4989
Full Member
***
Posts: 303
View Profile
« Reply #17 on: August 04, 2018, 09:45:33 am »

Some random plain text is fine to me  Cheesy

Quote
18-07-22 19:46:48 - Pauldrons of Elemental Fury: Oldshamy - 48

but my main concern is the use of field separators because it's unnecessarily hard to parse the 4 main fields: timestamp, item name, player, gp.
Everything except item name and player are separated by dashes, while again you find dashes in the date part of the timestamp.
E.g. parsing it requires multiple commands:

Quote
player = $(( cut -d'-' -f4 $line | cut -d':' -f2 ))
item = $(( cut -d'-' -f4 $line | cut -d':' -f2 ))

with a consistent field delimiter we could boil it down to:

Quote
player = $(( cut -d'-' -f5 $line ))
item = $(( cut -d'-' -f4 $line ))

OR

player = $(( awk '{ print $4 }' $line ))
player = $(( awk '{ print $5 }' $line ))

Quite noticeable when you parse alot of logs to create ratio graphs Smiley
Logged
Tester
Jr. Member
*****
Posts: 116
View Profile
« Reply #18 on: August 06, 2018, 08:37:50 pm »

There you go: https://github.com/isitLoVe/LootTracker/releases/download/latest/LootTracker.zip

CTRL+Click the Export Button to get a csv output, should be easier to parse


« Last Edit: August 06, 2018, 08:39:25 pm by Luise » Logged

Discord: isitLoVe#4989
Full Member
***
Posts: 303
View Profile
« Reply #19 on: August 06, 2018, 09:24:31 pm »

Thank you very much and great function names! :-P
Logged
Pages: 1 [2]
  Print  
 
Jump to: