Pulling in game chat out of a replay

Pulling in game chat out of a replay

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Pulling in game chat out of a replay

Post 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...
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Pulling in game chat out of a replay

Post 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.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Pulling in game chat out of a replay

Post by Acidd_UK »

Sorry, what I meant was that autohosts relay in game allchat to their lobby battle room.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Pulling in game chat out of a replay

Post 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.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Pulling in game chat out of a replay

Post by Regret »

also use some autoexit widget
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Pulling in game chat out of a replay

Post 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 :-/
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Pulling in game chat out of a replay

Post 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.
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Re: Pulling in game chat out of a replay

Post 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?
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Pulling in game chat out of a replay

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Pulling in game chat out of a replay

Post 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.
Post Reply

Return to “General Discussion”