Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Freeciv server/client communication protocol
Home

[Freeciv-Dev] Freeciv server/client communication protocol

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Freeciv server/client communication protocol
From: Teemu Kurppa <tkurppa@xxxxxxxxxx>
Date: Tue, 12 Feb 2002 15:42:05 +0200 (EET)

Freeciv server/client communication has some pecularities. To me, it seems
that the client/server communication has evolved to a working whole,
instead of being a well-defined communication protocol.

For example, this afternoon I found that the server doesn't always send
REMOVE_UNIT packet, when I disband my unit. Server sends it only, if I can
see the tile unit was on after the removal. However, server sends
TILE_INFO packet of the just-fogged tile, and the client updates it's unit
data structures appropriately in handle_tile_info. Aargh.

I've done some initial attempts to start implementing my own AI client,
and most of the time I've been hunting these pecularities. I expect that
others have tried to do AI clients also. This problems may not pop up, if
one uses C and existing client code. But I use different language. 

I would be glad of any information on your attempts, even of anectodal
information such as the example above.  I could collect a list of
problems, which could later be used to implement a cleaner communication
protocol.

Teemu Kurppa




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