You can commit the patch. Due to other changes I have to rebase this patch. Another function to check for is OK. If all goes as planned I have a good internet connection at the start of the next month.

Sorry, I do use this only as helper to find all the dependend tickets ;-) So here is a summary of the history and a current status:

In patch #2143 the possibility of an lua script AI is discussed. I started to work on it. This resulted in some problems. To solve them I did a rework of the script module:

patch #2513 (only moving of existing files) and patch #2514 (changes and new files) are the basic parts. The directory ./server/scripting is splitted in a common part (./common/scriptcore) and the server part. All functions which do not need data only available in the server are moved. Also the core of the lua script module is defined there. It includes the signal submodule as well as the functions submodule (lua functions called from the c code; see freeciv database).

the other patches define the client lua console - as lua was now also available for the client it was something easy to do (easier than a lua AI!)

not posted are some cleanups to this interface and lua functions to print all variables / functions, definition of constants in lua and work for the lua AI.

The state of the lua AI is 'not working' ... As it calls the default AI from the lua code, my first test resulted in a lot of errors. There was no clear line between both AIs. But I could start the server with this AI module!

Copyright (C) 2004-2006, the Gna! people. Posted items are owned by whoever posted them.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.