Hey everyone, I've dabbled with casting in the past, even lucky enough to be hosted by tftv once upon a time!
I'm just wondering if there are any sort of publicly available pieces of software to grab logs.tf stats to be displayed on-stream? Being able to customize the way stats are displayed would be really helpful in terms of production.
I'm also very unfamiliar with coding so that makes things pretty difficult for me.
Hey everyone, I've dabbled with casting in the past, even lucky enough to be hosted by tftv once upon a time!
I'm just wondering if there are any sort of publicly available pieces of software to grab logs.tf stats to be displayed on-stream? Being able to customize the way stats are displayed would be really helpful in terms of production.
I'm also very unfamiliar with coding so that makes things pretty difficult for me.
for TFTV and most casting orgs we use a tool called nodeCG for our graphics package and we have scripts that will pull log data.
I was working on a package for it but never finished it so afaik there is no open source log parser for casting.
I might go back and finish it but it requires a lot of setup to work.I.E. you need a nodeJS server
I know there are some producers who have things in the work for this but I can't comment on their work.
It's not necessarily a hard thing to do.
All logs on logs.tf can be pulled through a json file and that is typically used to display the logs.
If you want here is a link to my open source casting package for tf2. It's been a couple months since I updated so it's a case of what you see is what you get.
https://github.com/themicrocheeze/essential-score
logs.tf api about page
https://logs.tf/about#json
If you don't want to go through the trouble of setting up a server for this stuff to run on feel free to reach out and I can see what I can do.
for TFTV and most casting orgs we use a tool called nodeCG for our graphics package and we have scripts that will pull log data.
I was working on a package for it but never finished it so afaik there is no open source log parser for casting.
I might go back and finish it but it requires a lot of setup to work.I.E. you need a nodeJS server
I know there are some producers who have things in the work for this but I can't comment on their work.
It's not necessarily a hard thing to do.
All logs on logs.tf can be pulled through a json file and that is typically used to display the logs.
If you want here is a link to my open source casting package for tf2. It's been a couple months since I updated so it's a case of what you see is what you get.
https://github.com/themicrocheeze/essential-score
logs.tf api about page
https://logs.tf/about#json
If you don't want to go through the trouble of setting up a server for this stuff to run on feel free to reach out and I can see what I can do.
You don't need a whole nodeJS server to do an XMLHttpRequest to the logs.tf JSON endpoint to get a log file on your PC and then JSON.parse(returnedJson.target.responseText) and do things with the data in the log file you downloaded. You will then need to make it interesting by converting the raw data to html and add some CSS to have it look pretty.
Alternatively, if you have rcon access to the server you can try setting up this Ruby on Rails live log listener and use the realtime data to do things with too, this has been used on VanillaTV & TFTV streams before, as can be see here at 1:11:24 sliding in from the right side showing the previous round's stats.
https://youtu.be/r3EQAz1gHSA?t=4284
You don't need a whole nodeJS server to do an XMLHttpRequest to the logs.tf JSON endpoint to get a log file on your PC and then JSON.parse(returnedJson.target.responseText) and do things with the data in the log file you downloaded. You will then need to make it interesting by converting the raw data to html and add some CSS to have it look pretty.
Alternatively, if you have rcon access to the server you can try setting up this Ruby on Rails [url=https://github.com/Arie/tf2_live_stats]live log listener[/url] and use the realtime data to do things with too, this has been used on VanillaTV & TFTV streams before, as can be see here at 1:11:24 sliding in from the right side showing the previous round's stats.
[youtube]https://youtu.be/r3EQAz1gHSA?t=4284[/youtube]
WiethoofdAlternatively, if you have rcon access to the server you can try setting up this Ruby on Rails live log listener...
Please don't use that. It's unmaintained and not user friendly. I just wrote it for myself because it was something interesting for VanillaTV at the time, so that's some indication of how old it is ;)
[quote=Wiethoofd]Alternatively, if you have rcon access to the server you can try setting up this Ruby on Rails [url=https://github.com/Arie/tf2_live_stats]live log listener[/url]...[/quote]
Please don't use that. It's unmaintained and not user friendly. I just wrote it for myself because it was something interesting for VanillaTV at the time, so that's some indication of how old it is ;)