Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: replacement for fcivppsav
Home

[Freeciv-Dev] Re: replacement for fcivppsav

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Zastoupil <paul@xxxxxxxxxxxxx>
Cc: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: replacement for fcivppsav
From: Paul Zastoupil <paul@xxxxxxxxxxxxx>
Date: Mon, 13 Dec 2004 16:07:23 -0800

On Mon, Dec 13, 2004 at 10:26:19AM -0800, Paul Zastoupil wrote:
> On Sat, Dec 11, 2004 at 01:45:26PM +0100, Reinier Post wrote:
> > On Fri, Dec 10, 2004 at 09:54:25PM -0600, Mike Kaufman wrote:
> > > I put a copy of the source in /home/freeciv/temp
> > > 
> > > pubserver:~/temp/fcsav2ppm % ./main/fcsav2ppm --help
> > > Usage: ./main/fcsav2ppm [option ...]
> > > Valid options are:
> > >   -f, --file FILE       Load saved game FILE
> > >   -o, --output FILE     PPM is output to FILE
> > >   -h, --help            Print a summary of the options
> > >   -l, --log FILE        Use FILE as logfile
> > 
> > Looks good, I still do not have any time, maybe next week.
> > I doubt Paul will have much time, considering
> > 
> >    http://www2.zastoupil.org:8080/gallery/andrej
> > 
> 
> Well, I'm trying anyway.
> 
> This new command is a huge savings, about 4 times faster!
> 
> But this is got a little messy.  The new fcsav2ppm doesn't work with
> a FREECIV_PATH pointing to a 1.14.2 ruleset because the cities.ruleset
> doesn't contain [specialist].
> 
> 0: There must be exactly 3 types of specialist.
> 
> So...
> 
> I commented out the:
> if (nval != SP_COUNT) {
>   freelog(LOG_FATAL, "There must be exactly %d types of specialist.",
>     SP_COUNT);
>   exit(EXIT_FAILURE);
> } 
> 
> in the fcsav2ppm main/ruleset.c source and everything seems to be working.
> 
> Got it installed in picture-civgame.
> 

Ok that didn't quite do it, so I set up a temporary FREECIV_PATH for
all the games.  Hope this works well.

Also, something that would really make this faster, if it didn't have
to be invoked for each savegame, but you could pass it a list.

As you mentioned, if the server could have a switch to just output this
during the game as it made the saves, that would be even better.

-- 
Paul Zastoupil



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