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:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to