[Freeciv-Dev] Re: (PR#18260) Configuration files in LUA
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|