Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] journals
Home

[Freeciv-Dev] journals

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] journals
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 11 Nov 2002 15:20:36 +0000 (GMT)

On Sat, 2 Nov 2002, Raimar Falke wrote:
> > But this got me thinking. Let's say we manage to do this in a clean and
> > extensible way.
>
> > We add the possibility in dataio.c to output to file instead of to a
> > network socket.
>
> This is very easy sincedataio works on memory blocks and not on
> sockets.

That's what I thought. Minus the usual suspects (worklists, city maps,
etc), dataio code looks very tidy.

> > We use dataio, libz and good sense to keep
> > the output small. Now we send packets to this file each turn as if it was
> > an omniscient observer... what do we have?
> >
> > A journal!
> >
> > >From this we can do game replay or load a savegame from any given turn...
>
> We need to filter the packet stream for each connection. In others
> words we have to save the packet stream for each connection (if the
> same packet goes to multiple connections it can be merged but these
> are details).

Why not connect an omniscient observer connection to, say, one of the
barbarian players, which records to disk instead of to network? This way
we don't have to merge identical packets where several players observe the
same event.

  - Per




[Prev in Thread] Current Thread [Next in Thread]