Page 1 of 1
Pulling in game chat out of a replay
Posted: 16 Apr 2009, 20:43
by Acidd_UK
Is this possible, if so how? I know the autohosts do it for games in progress, but I want to pull out ally and spec chat too, from a replay file...
Re: Pulling in game chat out of a replay
Posted: 16 Apr 2009, 20:48
by lurker
Autohosts do not.
The good option is to parse the replay, getting each packet.
The cheap option is to look for chat packet headers and see if there is text after them.
Re: Pulling in game chat out of a replay
Posted: 16 Apr 2009, 21:29
by Acidd_UK
Sorry, what I meant was that autohosts relay in game allchat to their lobby battle room.
Re: Pulling in game chat out of a replay
Posted: 16 Apr 2009, 23:55
by Forboding Angel
Start replay, put on 10 or 20x speed, zoom in on a very small portion of ground.
When the game is over, open up infolog.
Re: Pulling in game chat out of a replay
Posted: 17 Apr 2009, 00:01
by Regret
also use some autoexit widget
Re: Pulling in game chat out of a replay
Posted: 17 Apr 2009, 00:34
by Acidd_UK
Forboding Angel wrote:Start replay, put on 10 or 20x speed, zoom in on a very small portion of ground.
When the game is over, open up infolog.
Thanks, I don't know why I didn't think of this :-/
Re: Pulling in game chat out of a replay
Posted: 17 Apr 2009, 11:56
by Auswaschbar
There is a small little program in the git repo called demodumper written for debugging purposes, which parses a demo (fast, much faster then running spring) and prints some messages, including chat messages, to stdout. If you know a bit C++, you can modify it to your needs.
Or maybe it is aleady what you were looking for.
Re: Pulling in game chat out of a replay
Posted: 17 Apr 2009, 16:12
by bashar
Forboding Angel wrote:Start replay, put on 10 or 20x speed, zoom in on a very small portion of ground.
When the game is over, open up infolog.
does that means the demo file is built from the infolog?
After the press on Exit when ingame?
Re: Pulling in game chat out of a replay
Posted: 17 Apr 2009, 19:04
by Acidd_UK
@bashar: I think its the other way round - the infolog is made from the commands/events that are/were recorded in the demo file.
Re: Pulling in game chat out of a replay
Posted: 18 Apr 2009, 09:07
by Forboding Angel
Demo's are quite literally a list of commands. When the demo is playing, it's as if it where the actual game being played.
Spring always write an infolog for each game so, anyway... yeah.