Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2002:
[Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)
Home

[Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 31 May 2002 10:17:55 +0200

On Thu, May 30, 2002 at 11:09:40PM +0200, Reinier Post wrote:
> On Thu, May 30, 2002 at 08:07:12PM +0200, Raimar Falke wrote:
> 
> > Attributes aren't endian safe. CMA uses attributes.
> 
> Shouldn't they be?  savegames are supposed to be portable?

From an old email:

--------------
Date: Mon, 15 Jan 2001 09:09:02 +0100
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
To: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Cc: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Re: attrhash
Reply-To: rf13@xxxxxxxxxxxxxxxxxxxxx
User-Agent: Mutt/1.2.5i
In-Reply-To: <87snmm6vn9.fsf@xxxxxxxxxxxxxxxxxxxxxxxx>; from 
falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx on Sun, Jan 14, 2001 at
+03:44:26PM +0100
X-Location: Dresden, Saxonia, Germany, Europe, Earth

On Sun, Jan 14, 2001 at 03:44:26PM +0100, Falk Hueffner wrote:
> Hi,
>
> I've just thought about the problem of endianess when transfering
> attribute data to the server. It needs to be properly swapped on
> sending and retrieveing. Perhaps one could have an array of swapper
> functions with one entry per category, which would get called from
> set_attribute. Does anybody have a good idea?

[ The common client code can't handle it since it only sees a
  bytestream. So the actual user of the bytestream has to do it. ]

There is no easy way to make this automatic. It would only affect
clients which switch during a game the architecture. IMHO the
cost-benefit ratio isn't nice. I would vote to list it as a limitation.

        Raimar
--------------

There was no reply to this.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Sit, disk, sit. Good boy. Now spin up. Very good. Here's a netscape
  cookie for you. Fetch me some data. Come on, you can do it. No, not that
  data. Bad disk. Bad." 
    -- Calle Dybedahl, alt.sysadmin.recovery


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