Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2000:
[Freeciv-Dev] Re: FreeCiv PBEM
Home

[Freeciv-Dev] Re: FreeCiv PBEM

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: FreeCiv PBEM
From: Asher Densmore-Lynn <jesdynf@xxxxxxxxxxxx>
Date: Wed, 11 Oct 2000 05:17:05 -0500

On Wed, Oct 11, 2000 at 11:52:43AM +0200, Sebstian Klasman wrote:

> So what about putting all game stats after each turn in a single file
> (somehow like autosave) and compressing it using some algorithms????

FreeCiv is, by default, a multi-player game. You need two things to resolve
this -- one, a way to resolve a turn down into a list of orders, and two, a
way to generate savefiles such they only contain the data the target player
already has.

For the first case, perhaps a simple way to handle it would be to hack the
client so that no move commands could be issued, only GOTO's; when done,
save the status of all cities and the movement plans of all units to a file;
send the file to a server.

The server sanity-checks all submitted turnfiles -- no cheating for you --
and then processes all the turnfiles as if they were just one long server
request. [Probably want to reorder all actions in the turnfile for fairness
-- execute all Fortify actions before Move [and attack!] actions, for
example.]

When the turn is over, regenerate each of the save games to be sent to each
player.

[There should probably be a LONG queue of messages awaiting the player when
the savegame is opened, since the player needs to know how things went and
how they are now.]

Repeat until you conquer the globe or get ruddy bored; early game Civ would
be, err, slow.

-- 
Asher Densmore-Lynn <jesdynf@xxxxxxxxxxxx>




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