Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1999:
[Freeciv-Dev] Re: 'read' and 'write' command
Home

[Freeciv-Dev] Re: 'read' and 'write' command

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: 'read' and 'write' command
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Thu, 11 Nov 1999 12:30:33 -0500

At 1999/11/05 18:12 , Reinier Post wrote:
>This has been on my todo list since February: the 'read' and 'write'
>server commands.  'read' reads server commands from file; it doesn't
>check for recursion.  'write' saves all server options and some state
>info from commands, but nothing player-specific.

As a side effect of saving the metaserver address, even if the server
wasn't reporting to the metaserver, when the written file was read, it
would cause the server to start reporting to the metaserver.  This seemed
wrong.

So, given that Reinier's patch already fiddled with the metaserver stuff a
bit, I changed it some more.  Now, 'meta' controls the connection state
('meta up', 'meta down', 'meta ?') -- and I removed 'nometa'.  A new
command, 'metainfo', sets the metaserver info string, and 'metaserver' can
now take a port number, colon-separated from the host name.

The 'write' command saves the state of 'metaserver' and 'metainfo'.

Also, I now have the metaserver port number stored in saved games.

Attachment: read-write-3.diff.gz
Description: Binary data

jjm

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