Skip to content

Conversation

@Gcommer
Copy link
Contributor

@Gcommer Gcommer commented Apr 16, 2025

Still WIP

This is a rebased version of #592 with a bit more wiring and demo JSON format updates.

Not yet ready to land as we don't actually create matches yet and there's some more work to do on tf2_demostats first; will continue to update. We can pull any DB migrations out separately if you'd like.

@leighmacdonald
Copy link
Owner

I think its ok to leave the migrations in here.

Id like to get going on this fairly soon and should have some cycles free to help with this more. Is there something I can help with on the golang/frontend side perhaps? How stable do you think the data shape is from tf2_demostats is at this point?

@Gcommer
Copy link
Contributor Author

Gcommer commented May 12, 2025

I have some WIP local changes to tf2_demostats for A) shots/hits tracking for more weapon types B) more medic stats and C) playtime-per-class and playtime-per-team.

I also have limited cycles but I should be able to find time to send those PRs in the next 2 weeks.

How stable do you think the data shape is from tf2_demostats is at this point?

I filed leighmacdonald/tf2_demostats#18 for the only structural change left. If you make a decision there I'll implement it.

Otherwise I'm happy with the current output -- remaining work will at most add more fields to existing objects.

Is there something I can help with on the golang/frontend side perhaps?

I'm totally paused on this branch -- please take it/discard it/iterate however you'd like.

My only real opinion on the gbans side is that I think the DB schema should store stats per-demo with the tf2_demostats version that was used to analyze each demo. Even if we don't reference that version anywhere for the MVP, it'd be good in the future to be able to reanalyze demos and/or delete bad stats if we have a buggy tf2_demostats release.

@leighmacdonald
Copy link
Owner

I have some WIP local changes to tf2_demostats for A) shots/hits tracking for more weapon types B) more medic stats and C) playtime-per-class and playtime-per-team.

I also have limited cycles but I should be able to find time to send those PRs in the next 2 weeks.

How stable do you think the data shape is from tf2_demostats is at this point?

I filed leighmacdonald/tf2_demostats#18 for the only structural change left. If you make a decision there I'll implement it.

Otherwise I'm happy with the current output -- remaining work will at most add more fields to existing objects.

Is there something I can help with on the golang/frontend side perhaps?

I'm totally paused on this branch -- please take it/discard it/iterate however you'd like.

My only real opinion on the gbans side is that I think the DB schema should store stats per-demo with the tf2_demostats version that was used to analyze each demo. Even if we don't reference that version anywhere for the MVP, it'd be good in the future to be able to reanalyze demos and/or delete bad stats if we have a buggy tf2_demostats release.

Sounds good, I agree about storing the raw output & versions makes sense for potential reconstruction later on, makes sense, at least for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants