Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1999:
[Freeciv-Dev] Re: two utilities for use on saved games
Home

[Freeciv-Dev] Re: two utilities for use on saved games

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: two utilities for use on saved games
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Mon, 15 Nov 1999 10:41:00 -0500

At 1999/11/05 18:23 , Reinier Post wrote:
>The patch will produce a util/ subdir with two utilities
>that operate on *.sav files.  sav2score creates a civscore.log;
>sav2ppm creates bitmaps of the game map in PPM format.

I agreed with your own embedded comments about the mainless-civserver kluge
being a hack.  So, I rearranged things a bit.  Now, much like civclient,
the main() routine does little but call srv_main(), which is contained in a
new file called server/srvmain.c (also, there's a new server/srvmain.h).
Most of the source in server is compiled into a library, libcivserver.a,
which both civserver and the utilities can use.

The attached patch is your patch, plus my few changes.  After applying the
patch, you will need to do "automake;autoheader;autconf".

I believe there's still more to be done on this patch.  I'd like to see as
much of srv_main() as possible moved back into main().  Also, the
util/README could use more info on how to use the utilities (I just copied
in the --help texts).  Hopefully, though, this is a good start.

Attachment: gamereport-4.diff.gz
Description: Binary data

jjm

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