[Freeciv-Dev] Re: Server from Client
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Dec 27, 2001 at 06:53:52PM +0100, Reinier Post wrote:
> On Sat, Dec 22, 2001 at 01:42:41PM -0500, Daniel L Speyer wrote:
> > I've been working a little on putting server controls into the client GUI,
> > and have been running into trouble getting the needed data. Is there a
> > way for the client to request just the value of a config variable, or just
> > its max/min? The Show Server Options menu commands just get a single text
> > string, which would be very annoying to parse.
> >
> > Is there a way? Would it be reasonable to add a way?
>
> There are three ways that I'm aware of.
>
> 1) Closest to the Freeciv design: let the config vars be
> part of the data structure shared between server and client,
> and make sure they get updated upon any change by regular updating
> packets from the server. [...]
> 2) The second way is to use the special 'reporting' packets that send the
> current settings as a text string, and parse the text. [...]
> 3) The third way is to use the server command language: /show <var> or
> similar.
> Extend the language as necessary. This method has already been discussed.
> However, we only discussed the language to use for the command, not the
> language of the command results. At the moment, there is no restriction
> on the form of the results, because they are intended for human
> consumption; the same problem as with method #2.
But Per's rfcstyle solves this problem. So this seems to be the best way
for the moment.
--
Reinier
- [Freeciv-Dev] Server from Client, Daniel L Speyer, 2001/12/22
- [Freeciv-Dev] Re: Server from Client, Reinier Post, 2001/12/27
- [Freeciv-Dev] Re: Server from Client,
Reinier Post <=
- [Freeciv-Dev] Re: Server from Client, Daniel L Speyer, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Per I. Mathisen, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Christian Knoke, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Daniel L Speyer, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Reinier Post, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Daniel L Speyer, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Reinier Post, 2001/12/29
- [Freeciv-Dev] Re: Server from Client, Chris Richards, 2001/12/29
- [Freeciv-Dev] Re: Server from Client, Reinier Post, 2001/12/28
- [Freeciv-Dev] Re: Server from Client, Reinier Post, 2001/12/28
|
|