Show whole topic Jan 05, 2013 1:21 pm
alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Location: Ditzingen (nahe Stuttgart)


Subject: Re: Ai implementation
Quote by Eiko:
Now that you mention it, I remember...

Alzi once wrote a concept for lua integration:

http://www.maxr.org/showtopic.php?id=650&page=1

But I don't understand the concept in deep detail. Does this mean, the script is interpreted by the server, so this would be a variant of method 3) ?

Yes this would mean the script is interpreted by the server. The advantages would be that with lua we would have one interface for AI scripts and for scenarios that would be very powerful. And the AI would then not be directly integrated within any of the C++ code, but can be handled as separate module that does not affect compilation.
As for the slow down problem with the server I'am with pagra: It should definitely be possible to write this in a multi-threaded manner, so that we can use even more processes.
Albert Ziegenhagel