Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: more detailed unit report? (was: Submit patch again?)
Home

[Freeciv-Dev] Re: more detailed unit report? (was: Submit patch again?)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Reinier Post <rp@xxxxxxxxxx>
Cc: Justin Moore <justin@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, "Zverina, David" <David.Zverina@xxxxxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: more detailed unit report? (was: Submit patch again?)
From: Kevin Brown <kevin@xxxxxxxxxxxxxx>
Date: Sun, 19 Aug 2001 15:29:08 -0700

Reinier Post <rp@xxxxxxxxxx> wrote:
> On Wed, Aug 15, 2001 at 12:48:22PM -0400, Justin Moore wrote:
> 
> >    Would this be code integrated into freeciv itself or an addon script to
> > parse the gamelog?  I don't think most players are going to have {m,My}SQL
> > installed.
> 
> I'm thinking of code that would read and write a sequence of civgame.savs.
> I don't think C is a good language for it, so if a 'live' connection
> to civserver is implemented it will probably have to use a separate
> executable.
> 
> > It seems like it would be easier to do the latter and just
> > have a web interface (perl/php/whatever) to let players look at a whole
> > range of stats after the game's over.
> 
> That already exists (http://civserver.freeciv.org/) but it doesn't
> use the whole of the game data, only a limited set of statistics.
> 
> There is one good reason for that: the amount of data is huge.
> To hold all of the savegame data for thousands of games you need
> substantially more storage and memory than the average PC supplies.
> 
> So this is something we'd have to solve.

Hmm...but why is there so much data?  More precisely, how much of it
is *real* data, as opposed to stuff that just repeated needlessly?

Seems to me that what you need is:

1.  The initial layout of the map.
2.  The initial units on the map and their state
3.  An event log.


Question is, how large will the event log grow?  Obviously *every*
event which has any effect on the game at all will have to be
included, along with all the details necessary to allow the client or
server (or whatever) to recreate the game state at any point in time.


-- 
Kevin Brown                                           kevin@xxxxxxxxxxxxxx

    It's really hard to define what "unexpected behavior" means when you're
                       talking about Windows.


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