Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: (PR#3546) "Arhus is bugged:" - crash
Home

[Freeciv-Dev] Re: (PR#3546) "Arhus is bugged:" - crash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3546) "Arhus is bugged:" - crash
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 28 Feb 2003 13:26:26 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, Feb 28, 2003 at 01:16:25PM -0800, ChrisK@xxxxxxxx wrote:
> On Fri, Feb 28, 2003 at 05:38:58AM -0800, Raimar Falke wrote:
> > On Fri, Feb 28, 2003 at 03:41:55AM -0800, ChrisK@xxxxxxxx wrote:
> > > > The savegame is invalid. The size of Århus is 5 and there are indeed 7
> > > > workers assigned.
> > > > 
> > > > Can you reproduce the steps which lead to this savegame?
> > > 
> > > Oh man, I love you coders. Can you tell me at least how do I know
> > > whether a savegame is valid or invalid in this respect?
> > 
> > Sure:
> > 
> > $ zcat power+0360.sav.gz | grep rhus
> > 135,11,22,"Århus",0,5,0,1,0,0,0,0,0,0,10,28,120,13,0,28,0,0,0,0,0,0,17,0,0,15,"2101201010201002200220002",0,13,"00000000000000000000000000000000000001000000000000000000000000000000",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
> > 135,11,22,"Århus",5,0,0
> > 135,11,22,"Århus",5,0,0
> > 135,11,22,"Århus",5,0,0
> > $
> > 
> > We are interrested in the first line and here the 6th item (size),
> > 8th-10th (elvises, scientists, taxmans) and the citymap (second string
> > "2101201010201002200220002"). Workers are here marked by "1". But the
> > central one shouldn't be counted.
> > 
> >   size = elvises + scientists + taxmans + workers
> >    5   =    1    +     0      +    0    +   (5-1)
> > 
> > So this savegame is correct in this respect.
> 
> Thank you.
> 
> > I can reproduce the problem.
> > 
> > I'm not able to solve it.
> 
> I have filtered all my existing savegames with the attached script
> but found only a single occurence of this bug.

Hehe. IMHO this bug would also cause the "city is bugged" message. So
without this message all the savegames should be ok.

> Hhm think it would crash anyway?

Jason is working on it: "so auto_adjust_workers is called, and within
this worker_loop gets called re-entrantly". We will see.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Transported to a surreal landscape, a young girl kills the first woman
  she meets and then teams up with three complete strangers to kill again."
    -- TV listing for the Wizard of Oz in the Marin Independent Journal




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