Pulling in game chat out of a replay
Moderator: Moderators
Pulling in game chat out of a replay
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
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.
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
Sorry, what I meant was that autohosts relay in game allchat to their lobby battle room.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Pulling in game chat out of a replay
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.
When the game is over, open up infolog.
Re: Pulling in game chat out of a replay
also use some autoexit widget
Re: Pulling in game chat out of a replay
Thanks, I don't know why I didn't think of this :-/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.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Pulling in game chat out of a replay
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.
Or maybe it is aleady what you were looking for.
Re: Pulling in game chat out of a replay
does that means the demo file is built from the infolog?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.
After the press on Exit when ingame?
Re: Pulling in game chat out of a replay
@bashar: I think its the other way round - the infolog is made from the commands/events that are/were recorded in the demo file.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Pulling in game chat out of a replay
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.
Spring always write an infolog for each game so, anyway... yeah.