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]
To: Jerome.Plut@xxxxxx
Subject: [Freeciv-Dev] Re: (PR#18260) Configuration files in LUA
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 12 Jul 2006 04:16:56 -0700
Reply-to: bugs@xxxxxxxxxxx

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

On Tue, 4 Jul 2006, Jerome Plut wrote:
> 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...).

Understood. This is acceptable as a beginning. I would just like to hear 
some ideas on how this should be done eventually, so that we do not code 
ourselves into a difficult corner.

One simple way to do it would be to query lua whenever we want to check a 
ruleset option. This could be very slow. Another option is to create lua 
commands to reload a ruleset from lua when necessary.

> One of the modifications I suggest would be to turn the server prompt 
> into a LUA prompt.

That will be less user-friendly, however.

>> 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.

Yes to both.

   - Per





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