skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

is watching an active/live game possible (question) #65

Open caiomendesc opened 1 week ago

caiomendesc commented 1 week ago

Hi. I wanted to ask if it's possible to watch for a match while you're playing it. I was looking to make a script to determine based on the enemy team items, picks and strenghts what's the best approach on a deadlock game.

spheenik commented 1 week ago

There is a Source implementation, that can read replays while they are written. See LiveSource.

Basically, what you would need to do is start recording your game, and then point Clarity at the file while it's written.

caiomendesc commented 1 week ago

There is a Source implementation, that can read replays while they are written. See LiveSource.

Basically, what you would need to do is start recording your game, and then point Clarity at the file while it's written.

And how do I start recording my game while it's active?

spheenik commented 1 week ago

I recommend you learn how to google yourself.

For example: https://wiki.sourceruns.org/wiki/Demo_Recording

caiomendesc commented 1 week ago

I recommend you learn how to google yourself.

For example:

https://wiki.sourceruns.org/wiki/Demo_Recording

You didn't need to be rude. I had no idea I could record in game, I thought the only possible way to get demos was downloading it after the match is done and it's made available by Valve.

Anyways, thanks for the replies, manage to get it working and your software worked well for my need

spheenik commented 1 week ago

Sorry, I have thin skin lately. It felt like you did put zero effort in finding an answer yourself. After all, when I wrote what you would need to do is start recording your game I expected at least a tiny bit of effort on your side. Anyway. I hope you make it work, and if you have further questions, I'm here.