Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] Re: (PR#18260) Configuration files in LUA
Home

[Freeciv-Dev] Re: (PR#18260) Configuration files in LUA

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#18260) Configuration files in LUA
From: "Jerome Plut" <Jerome.Plut@xxxxxx>
Date: Tue, 4 Jul 2006 09:06:02 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18260 >

HODIE 2006-07-04 scripsit Per I. Mathisen :
> I miss more documentation, both in doc/README.rulesets and in the source 
> code. Some of the lua macros need to be documented clearly how they are to 
> be used and probably recommend not to be changed by ruleset authors.

As this patch was only a proof-of-concept (and in particular the
design of the LUa part is totally open for discussion -- for instance,
there should also be some way to use the LUA metatable capability to
make syntax file easier to keep forward compatible), I would not write
too much documentation susceptible to change thereafter (or worse, to
become obsolete). Also note that, for the same reasons, I have not
translated the other rulesets apart from the default one.

> I see that the lua data is read the same way that ruleset data is
> read now, which means that it will still not be possible to change
> ruleset configuration the fly, for example from a scenario
> script.lua file.

This patch does not change the moment in server startup when the
ruleset (and script.lua) are read; (well, it actually does not change
anything at all...). There are some actual code changes to do to make
this work... One of the modifications I suggest would be to turn the
server prompt into a LUA prompt.

> The patch contains some noise with one or more changed po files in

Whoops, sorry (svn was not very happy with my working copy so I had to
do things by hand).

> I have some thoughts on how to turn savegames into lua, but we can
> discuss that separately and later. I am not sure what the special
> issues are with specfiles.

Mainly that the client currently does not understand LUA (or I am
mistaken). But this could be a nice way to handle client
configuration.





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