Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7265) Re: (PR#7339) unexpected exit from tabular
Home

[Freeciv-Dev] Re: (PR#7265) Re: (PR#7339) unexpected exit from tabular

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx, jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7265) Re: (PR#7339) unexpected exit from tabular
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Thu, 29 Jan 2004 02:32:25 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Wed, Jan 28, 2004 at 01:03:09PM -0800, Christian Knoke wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7265 >
> 
> On Wed, Jan 28, 2004 at 12:54:12PM -0800, Jason Short wrote:
> > 
> > >>>1: unexpected exit from tabular at u2.id (donut+1130.sav.gz)
> > >>>Spiel gespeichert als 'donut+1130.sav.gz'
> 
> > > but I guess this will not help you. What exactly do you need? An 
> > > unaffected
> > > savegame and a way to create that message? A core file?
> > 
> > In the savegame I got IIRC the error could not be reproduced.  This was 
> > very odd.
> 
> Try this. I attach donut+1130.sav.gz
> 
> 
> > An affected savegame that gives the error every time would be helpful. 
> > But, I have no knowledge whatsoever of how this code works so I doubt 
> > I'll be able to solve it quickly.  The registry code is very old and 
> > unlikely to contain bugs, so I suspect it's coming because of changes to 
> > the savefile code.  But since I don't even know what the error means I'm 
> > at a loss.

The problem are the unit orders. A normal savegame looks like this:

u={ "id","x","y","veteran","foul","hp","homecity","type","activity","activity_co
unt","activity_target","connecting","done_moving","moves","fuel","go","goto_x","
goto_y","ai","ord_map","ord_city","moved","paradropped","transported_by","goto_l
ength","goto_route_x","goto_route_y"
111,14,28,0,0,10,104,2,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,-1,0,"",""
110,7,22,0,0,10,104,2,11,0,0,0,1,0,0,0,0,0,1,0,1,1,0,-1,0,"",""
109,4,21,0,0,10,104,2,11,0,0,0,0,0,0,0,0,0,1,0,2,1,0,-1,0,"",""
108,9,28,0,0,10,0,5,11,0,0,0,1,0,0,0,0,0,1,0,0,1,0,-1,0,"",""
107,6,24,0,0,10,104,2,11,0,0,0,1,0,0,0,0,0,1,0,3,1,0,-1,0,"",""
106,78,24,0,0,10,104,2,11,0,0,0,1,0,0,0,0,0,1,0,4,1,0,-1,0,"",""
105,75,24,0,0,10,0,5,11,0,0,0,1,0,0,0,0,0,1,0,0,1,0,-1,0,"",""
103,78,27,0,0,10,0,50,11,0,0,0,1,0,0,0,0,0,1,0,0,1,0,-1,0,"",""
102,9,27,0,0,20,0,0,11,0,0,0,1,0,0,0,0,0,1,0,0,1,0,-1,0,"",""
}

while a new one looks like this:

u={ "id","x","y","veteran","foul","hp","homecity","type","activity","activity_co
unt","activity_target","connecting","done_moving","moves","fuel","go","goto_x","
goto_y","ai","ord_map","ord_city","moved","paradropped","transported_by","orders
_length","orders_index","orders_repeat","orders_vigilant","orders_list","dir_lis
t"
221,36,13,0,0,30,125,43,0,0,0,0,1,0,0,1,31,16,0,0,0,1,0,-1,13,8,0,0,"aaaaaaaaaaa
aa","afdfffafffffa"
220,31,22,0,0,30,203,43,7,210,0,0,0,21,0,0,0,0,0,0,0,0,0,-1,0
}
u2.id=215
u2.x=42
u2.y=11
u2.veteran=1
u2.foul=0
u2.hp=20
u2.homecity=294
u2.type=10
u2.activity=5
u2.activity_count=0
u2.activity_target=0
u2.connecting=0
u2.done_moving=0
u2.moves=3
u2.fuel=0
u2.go=0
u2.goto_x=0
u2.goto_y=0
u2.ai=0
u2.ord_map=0
u2.ord_city=0
u2.moved=0
u2.paradropped=0
u2.transported_by=-1
u2.orders_length=0

The form changes. I think this is caused by the extra index/dimension
of adding the orders.

Adding something to the log message I get:

1: unexpected exit from tabular at u2.id (b.gz) expected u1.orders_index

Which is quite clear.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "The very concept of PNP is a lovely dream that simply does not translate to
  reality. The confusion of manually doing stuff is nothing compared to the
  confusion of computers trying to do stuff and getting it wrong, which they
  gleefully do with great enthusiasm." 
    -- Jinx Tigr in the SDM




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