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: <freeciv-dev@xxxxxxxxxxx>
Cc: "Zverina, David" <David.Zverina@xxxxxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: more detailed unit report? (was: Submit patch again?)
From: Justin Moore <justin@xxxxxxxxxxx>
Date: Wed, 15 Aug 2001 12:48:22 -0400 (EDT)

> > > civscore.log type output for analysis by external programs would
> > > be quite suitable although ultimate goal may include displaying
> > > the data directly in freeciv.
>
> > > Is anyone working on anything like this? Would this be a suitable
> > > patch?

   Did you mean the scorelog or the gamelog?  Since the scorelog only
associates an int value with a turn, player and category, this seems like
it would be somewhat difficult.  You might be able to maintain an overall
win/loss percentage for a particular player, which would kind of be neat
in and of itself.  But the full 3D array of player/unit/odds seems like it
would be more complex to maintain externally as the game progresses.

> > It's ideas like this that make me wonder if implementing a full
> > civgame to SQL database import/export function wouldn't be a
> > better approach in the long run.  That way, you can use
> > SQL to implement any report you want.
>
> Sounds nice. However the data still have to go into a civgame in some
> way. If the data are in the civgame you can also use perl/python or
> some other tool.

   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.  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.  Maybe let them download the scripts
so they have the option of setting up their own database/web interface?

-jdm

Department of Computer Science, Duke University, Durham, NC 27708-0129
Email:  justin@xxxxxxxxxxx



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