Update of patch #2554 (project freeciv):
Status: Ready For Test => In Progress
Summary: stub lua AI module => lua AI module
_______________________________________________________
Follow-up Comment #7:
I reworked the lua ai patch. At the moment it can be activated (use ./fcser -L
lua) and runs without crash or errors. But, the lua AI does not really moves
its units etc. Thus, help is needed!
I suspect the error in the area of data handling. The AI functions use
arguments which are not handled in the default lua name space. Remembering the
calling flow:
<server> => LuaAI function => call to lua => callback to C => default AI
the arguments (pointers) have to be 'tunneled' throw lua. I use a 'dummy' data
type lai_data for this. It 'transports' the pointer via the lua environment.
I'm not sure if this is the corret way to go ...
(file #17404)
_______________________________________________________
Additional Item Attachment:
File name: 0006-basic-commit-for-a-lua-ai.patch Size:108 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2554>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev