Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#6987) corrupt technology
Home

[Freeciv-Dev] Re: (PR#6987) corrupt technology

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6987) corrupt technology
From: "Genevieve Gracian" <ggracian@xxxxxxx>
Date: Fri, 13 Feb 2004 11:32:45 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6987 >

On Fri, 13 Feb 2004 03:27:47 -0800
"Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx> wrote:

> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=6987 >
> 
> On Sat, Feb 07, 2004 at 02:37:57AM -0800, Genevieve Gracian wrote:
> > > > > It crashes for me with both clean CVS HEAD and veteran patch. You are
> > > > > researching a tech which is already researched, triggering an assert. 
> > > > > The
> > > > > savegame is likely corrupt.
> > > > > 
> > > > 
> > > > corrupted savegames: they occur when techlevel > 0 and compress = 9 
> > > > (ok with compress between 5 and 8, not tested with compress 4 or less)
> > > 
> > > It is possible this is depends on techlevel > 0 but I doubt that it
> > > depends on the compression level. Anyway, how do you reproduce this
> > > problem? Is it possible to reproduce this with an autogame?
> > > 
> > 
> > Automatic savegames aren't corrupted, only the ones made manually with
> > the save command. You only need to 'trigger' research by building one
> > city for this to happen, so not a lot of turns are needed.
> > 
> > set techlevel 5, set compress 9
> > start, build a city, end turn (to have more than 0 bulb)
> > manual savegame
> > endgame 
> > reload the game -> corrupted research in science dialog
> 
> I can't reproduce this here.
> 
> > now, try with :
> > techlevel 0 and compress 9 -> seems ok
> > and another with 
> > techlevel 5 and compress 8 -> seems ok
> 
> If it depends on the compression I suspect a timing problem. However I
> have no idea what is timing depending here. The server is single
> threaded.
> 
> Can you please try the attached patch. It adds the same test at
> saving. It should either print it for both (compression 8 and 9) or
> none.
> 
> Also can you do the action outline above using these settings:
>  - set techleven 5
>  - set compress 9
>  - set seed 1234
>  - set randseed 5678
> 
> and the same with compression 8? If you also replicate the other
> actions (client moves for example) the uncompressed savegames should
> be the same. Can you test this and if the savegames are different send
> the diff.
> 

I noticed something new. With a default compress and techlevel 5 when I
save manually in 3950 BC and reload the game I gain 2 techs freely.

With techlevel 50 the gain is more interesting: 6 techs :)

-- 
G. Gracian

Attachment: diff_compress9_compress8
Description: Binary data


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