Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: unknown terrain type error (PR#974)
Home

[Freeciv-Dev] Re: unknown terrain type error (PR#974)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Francois Taiani <francois.taiani@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: unknown terrain type error (PR#974)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 23 Sep 2001 21:23:47 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Sun, Sep 23, 2001 at 11:43:58AM -0700, Francois Taiani wrote:
> Hi everyone,
> 
> I stumbled on a strange error message while trying to load a previously
> saved game: 
> 
> unknown terrain type (map.t) in map at position (41,46): -111 ''
> 
> After that, the server aborts. Following is the whole server output.
> 
> ---------
> ftaiani@deepo:~/downloads/freeciv-cvs-Sep-11-infoButton-sound$
> server/civserver -f aztec.current.sav.gz 
> This is the server for Freeciv version 1.12.1-devel
> You can learn a lot about Freeciv at http://www.freeciv.org/
> 2: Loading saved game: aztec.current.sav.gz
> 2: Loading rulesets
> 0: unknown terrain type (map.t) in map at position (41,46): -111 ''
> ---------
> 
> I'm using the cvs snapshot of September 11. I've uploaded the
> corresponding savegame at
> ftp://ftp.freeciv.org/freeciv/incoming/aztec.current.sav.gz. Has anyone
> a clue of what may be going wrong ? 

$ grep "t046" aztec.current.sav
...
map_t046="    p                              g mh        gtg pp pt             
ptppf tg   "
map_t046="    p                              g mh        gtg pp pt             
ptppf tg   "
map_t046="    p                              g m"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This line looks wrong. This happends if
"terrain_chars[map_get_player_tile(x, y, plr)->terrain]" is 0.

static const char terrain_chars[] = "adfghjm prstu";

So "map_get_player_tile(x, y, plr)->terrain" is
>=sizeof(terrain_chars). I don't know the cause. Have you added a new
terrain?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "There are three ways to get something done. Do it yourself, hire someone
  to do it for you or forbid your kids to do it."


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