Upvote Upvoted 140 Downvote Downvoted
1 ⋅⋅ 8 9 10 11
Logs.tf match stats
posted in Projects
301
#301
trends.tf
1 Frags +

Can you add the ability to paginate starting at a specific logid? E.g. something like

https://logs.tf/api/v1/log?before=some_logid

. A naïve iteration will get duplicate logs. E.g. imagine if there are 25 logs and I have a limit of 10. The first request will get logs 24-15. Then someone uploads a new log. I then ask for another 10 logs, starting at offset 10. This gets me logs 6-15. Notice how log 15 gets requested twice. If the import lasts for a long time (and no corrective measures are taken), this can end up being a significant fraction of the requested logs.

I would also like to verify a few things about the JSON. Is info.date the upload time? In UTC? And rounds[].start_time in the local timezone? Do new log uploads get their own logid even if they are updates to another logid? Or do they keep the same logid as the log they update? Does info.date change if the log is updated? Is there a "statute of limitations" after which a log can no longer be updated?

And lastly, what in the world does players[].heal represent? On some logs it seems to represent healing done, and on others it seems to count self-healing. For example in this log, Kumis has 38634 heal and in this log he has 0, even though he played scout/heavy both times. Complicating matters, for medics the player[].heal mostly equals the sum of healspread[][], which implies that it is healing done.

Can you add the ability to paginate starting at a specific logid? E.g. something like [code]https://logs.tf/api/v1/log?before=some_logid[/code]. A naïve iteration will get duplicate logs. E.g. imagine if there are 25 logs and I have a limit of 10. The first request will get logs 24-15. Then someone uploads a new log. I then ask for another 10 logs, starting at offset 10. This gets me logs 6-15. Notice how log 15 gets requested twice. If the import lasts for a long time (and no corrective measures are taken), this can end up being a significant fraction of the requested logs.

I would also like to verify a few things about the JSON. Is info.date the upload time? In UTC? And rounds[].start_time in the local timezone? Do new log uploads get their own logid even if they are updates to another logid? Or do they keep the same logid as the log they update? Does info.date change if the log is updated? Is there a "statute of limitations" after which a log can no longer be updated?

And lastly, what in the world does players[].heal represent? On some logs it seems to represent healing done, and on others it seems to count self-healing. For example in [url=https://logs.tf/api/v1/log/2789061]this log[/url], Kumis has 38634 heal and in [url=https://logs.tf/api/v1/log/2788889]this log[/url] he has 0, even though he played scout/heavy both times. Complicating matters, for medics the player[].heal mostly equals the sum of healspread[][], which implies that it is healing done.
302
#302
4 Frags +

Does self damage count towards dtm?

Does self damage count towards dtm?
303
#303
0 Frags +
capnnofapnDoes self damage count towards dtm?

If you shoot yourself in a tf2 match it doesn't get added to the log file. Therefor it won't be added towards damage taken or damage dealt.
If you look at the code zoob uploaded some time ago for is 1.0 version of the log parser (which isn't the version currently being used for sure) the only thing that increases damage dealt/taken is the event : ' triggered "damage" '. So if you were to configure a server to log the events when you shoot yourself as "(player 1) triggered "damage" against (player 1)". It would be taken into account.

[quote=capnnofapn]Does self damage count towards dtm?[/quote]
If you shoot yourself in a tf2 match it doesn't get added to the log file. Therefor it won't be added towards damage taken or damage dealt.
If you look at the code zoob uploaded some time ago for is 1.0 version of the log parser (which isn't the version currently being used for sure) the only thing that increases damage dealt/taken is the event : ' triggered "damage" '. So if you were to configure a server to log the events when you shoot yourself as "(player 1) triggered "damage" against (player 1)". It would be taken into account.
304
#304
1 Frags +
Forty-Bot

info.date is the upload time in UTC.
rounds[].start_time originates from the log file. It's basically the time next to the logfile event: " L 12/27/2020 - 20:38:19: World triggered "Round_Start" "
There's some other keywords as well but it's one of them. I'm pretty certain logs.tf assumes the logfile is in UTC therefor the time you see is also in UTC. I guess it could be a local-timezone as well if for some reason the server admin decides to make the logfiles non UTC.
This also means that the rounds[].start_time could be days before info.date as well btw.

I'm not 100% certain but 90% certain that if you were to update a log e.g on a per round basis it keeps the same logid.

I will look into the players[].heal tomorrow a bit more but I believe it should be the healing the person has issued e.g the amount of healing a medic has done.
If I take a look at the log you mentioned in which Kumis has 38634(heal) for some reason almost every shot he makes as a scout looks like this

L 12/27/2020 - 20:39:03: "Kumis<14><[U:1:169048576]><Red>" triggered "damage" against "Dummy<11><[U:1:389475398]><Blue>" (damage "3") (weapon "scattergun") (healing "82")

I don't know what happened there but that's most likely the root cause of why he has such a high healing stat.

Hope this helps a little bit!

[quote=Forty-Bot][/quote]
info.date is the upload time in UTC.
rounds[].start_time originates from the log file. It's basically the time next to the logfile event: " L 12/27/2020 - 20:38:19: World triggered "Round_Start" "
There's some other keywords as well but it's one of them. I'm pretty certain logs.tf assumes the logfile is in UTC therefor the time you see is also in UTC. I guess it could be a local-timezone as well if for some reason the server admin decides to make the logfiles non UTC.
This also means that the rounds[].start_time could be days before info.date as well btw.

I'm not 100% certain but 90% certain that if you were to update a log e.g on a per round basis it keeps the same logid.

I will look into the players[].heal tomorrow a bit more but I believe it should be the healing the person has issued e.g the amount of healing a medic has done.
If I take a look at the log you mentioned in which Kumis has 38634(heal) for some reason almost every shot he makes as a scout looks like this
[code]L 12/27/2020 - 20:39:03: "Kumis<14><[U:1:169048576]><Red>" triggered "damage" against "Dummy<11><[U:1:389475398]><Blue>" (damage "3") (weapon "scattergun") (healing "82")[/code]
I don't know what happened there but that's most likely the root cause of why he has such a high healing stat.

Hope this helps a little bit!
305
#305
trends.tf
0 Frags +
I'm not 100% certain but 90% certain that if you were to update a log e.g on a per round basis it keeps the same logid.

Does the upload time get updated? And is there a limit to when a log can get updated? E.g. could I update a log I uploaded 1 year ago?

If I take a look at the log you mentioned in which Kumis has 38634(heal) for some reason almost every shot he makes as a scout looks like this

This is actually super common. A significant amount of his logs have over 500 heals/minute, even though he never plays medic (or even engie). You can look at any other player and see the same effect.

[quote]I'm not 100% certain but 90% certain that if you were to update a log e.g on a per round basis it keeps the same logid.[/quote]

Does the upload time get updated? And is there a limit to when a log can get updated? E.g. could I update a log I uploaded 1 year ago?

[quote]If I take a look at the log you mentioned in which Kumis has 38634(heal) for some reason almost every shot he makes as a scout looks like this [/quote]

This is actually super common. [url=https://trends.tf/player/76561198129314304/logs]A significant amount of his logs[/url] have over 500 heals/minute, even though he never plays medic (or even engie). You can look at any other player and see the same effect.
306
#306
4 Frags +

Can someone explain how is this possible?
Looks like this https://logs.tf/2932021 is a changed version of this https://logs.tf/2931449. Not only names and some stats have been changed, but also killstreaks and chat messages.

Can someone explain how is this possible?
Looks like this https://logs.tf/2932021 is a changed version of this https://logs.tf/2931449. Not only names and some stats have been changed, but also killstreaks and chat messages.
307
#307
0 Frags +

Would anyone know how accuracy is calculated for the logs? The info itself is not in the JSON files that logs.tf provides, so I'm assuming its calculated from the raw logs, but I have no idea how its calculated exactly.

Any help?

Would anyone know how accuracy is calculated for the logs? The info itself is not in the JSON files that logs.tf provides, so I'm assuming its calculated from the raw logs, but I have no idea how its calculated exactly.

Any help?
308
#308
2 Frags +
KastalingWould anyone know how accuracy is calculated for the logs? The info itself is not in the JSON files that logs.tf provides, so I'm assuming its calculated from the raw logs, but I have no idea how its calculated exactly.

Any help?

discovered it literally after this post, its just shots hit in the json divided by total shots

[quote=Kastaling]Would anyone know how accuracy is calculated for the logs? The info itself is not in the JSON files that logs.tf provides, so I'm assuming its calculated from the raw logs, but I have no idea how its calculated exactly.

Any help?[/quote]
discovered it literally after this post, its just shots hit in the json divided by total shots
309
#309
whitelist.tf
6 Frags +
NikCan someone explain how is this possible?
Looks like this https://logs.tf/2932021 is a changed version of this https://logs.tf/2931449. Not only names and some stats have been changed, but also killstreaks and chat messages.

Looks like someone did a find & replace for some name + steamids, as well as scores, and the chat:

https://i.imgur.com/jTd6BfB.png


(the right one in the screenshot is tampered with)

[quote=Nik]Can someone explain how is this possible?
Looks like this https://logs.tf/2932021 is a changed version of this https://logs.tf/2931449. Not only names and some stats have been changed, but also killstreaks and chat messages.[/quote]
Looks like someone did a find & replace for some name + steamids, as well as scores, and the chat:
[url=https://i.imgur.com/jTd6BfB.png][img]https://i.imgur.com/jTd6BfB.png[/img][/url]
(the [url=https://logs.tf/2932021]right one in the screenshot[/url] is tampered with)
310
#310
trends.tf
0 Frags +

Some logs return 500 errors starting at https://logs.tf//3001608 and ending at https://logs.tf/3001646

I guess it could be a local-timezone as well if for some reason the server admin decides to make the logfiles non UTC

For a "fun" example of when this happens, see https://logs.tf/2726837

Some logs return 500 errors starting at https://logs.tf//3001608 and ending at https://logs.tf/3001646

[quote]I guess it could be a local-timezone as well if for some reason the server admin decides to make the logfiles non UTC[/quote]

For a "fun" example of when this happens, see https://logs.tf/2726837
311
#311
-2 Frags +

I'm not sure if it's just an idea but, is it possible to make the uploaded logs unlisted? I own a linux dedicated server that I use from scrims and I want to save the logs for my team.

I'm not sure if it's just an idea but, is it possible to make the uploaded logs unlisted? I own a linux dedicated server that I use from scrims and I want to save the logs for my team.
312
#312
payload.tf
0 Frags +
maneI'm not sure if it's just an idea but, is it possible to make the uploaded logs unlisted? I own a linux dedicated server that I use from scrims and I want to save the logs for my team.

It's just an idea- there's no such feature nor is there probably hope of this feature coming to life anytime soon.

I offer a plugin with Payload to automatically render log previews when a game is detected as "finished"; you can see that plugin here: https://www.teamfortress.tv/59986/payload-logs-plugin which may help you somewhat.

[quote=mane]I'm not sure if it's just an idea but, is it possible to make the uploaded logs unlisted? I own a linux dedicated server that I use from scrims and I want to save the logs for my team.[/quote]
It's just an idea- there's no such feature nor is there probably hope of this feature coming to life anytime soon.

I offer a plugin with Payload to automatically render log previews when a game is detected as "finished"; you can see that plugin here: https://www.teamfortress.tv/59986/payload-logs-plugin which may help you somewhat.
313
#313
1 Frags +

I'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?

I'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?
314
#314
serveme.tf
2 Frags +
maneI'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?

In

tf/logs
[quote=mane]I'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?[/quote]

In
[code]tf/logs[/code]
315
#315
0 Frags +
AriemaneI'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?
In
tf/logs

I might be blind but the only type of log files I'm seeing in there are typical raw console logs. Nothing else in particular to resemble the logs.tf type of logs.

[quote=Arie][quote=mane]I'm not surprised. From what I heard, tf2 logs are fist being locally saved in your server directory and then uploaded to logs.tf, right? Is the log file like in the root 'tf' folder or where should I find it?[/quote]

In
[code]tf/logs[/code][/quote]

I might be blind but the only type of log files I'm seeing in there are typical raw console logs. Nothing else in particular to resemble the logs.tf type of logs.
316
#316
NA Production Lead
8 Frags +
maneAriemane
I might be blind but the only type of log files I'm seeing in there are typical raw console logs. Nothing else in particular to resemble the logs.tf type of logs.

they are indeed the same logs; logs.tf simply parses all of the raw data into something more digestible/readable for the average player and uses server plugins like F2's Medic Stats and SupStats2 to add additional data that would be otherwise missing

[quote=mane][quote=Arie][quote=mane][/quote]
[/quote]

I might be blind but the only type of log files I'm seeing in there are typical raw console logs. Nothing else in particular to resemble the logs.tf type of logs.[/quote]
they are indeed the same logs; logs.tf simply parses all of the raw data into something more digestible/readable for the average player and uses server plugins like F2's Medic Stats and SupStats2 to add additional data that would be otherwise missing
1 ⋅⋅ 8 9 10 11
Please sign in through STEAM to post a comment.