Star Trek Fan Games
http://bote2.square7.ch/forum/

AI Scripting
http://bote2.square7.ch/forum/viewtopic.php?f=12&t=1416
Page 1 of 1

Author:  mstrobel [ 06 Dec 2006, 00:12 ]
Post subject:  AI Scripting

I've been debating two different routes for a moddable AI system. The first is to use dynamically compiled C#. The second is to use IronPython.

C# has the advantage of being the same language used to develop the game, so modders who want to modify the core game library will only have to learn one language.

IronPython is basically a .NET implementation of Python, so it would be easy to pick up for people that already know Python. They would only have to learn some of the .NET-specific language constructs.

I was wondering what the community thinks. Does anyone have a preference?

Author:  cdrwolfe [ 06 Dec 2006, 01:49 ]
Post subject:  Re: AI Scripting

I would first say which ever is easiest for you, otherwise as you said C# has the advantage of being the same as the core ad cerainly make it easier for me :D.

Also you are more likely to find AI on the net based upon C/C++/C# i would assume makes it easier to transfer ideas perhaps when the two languages are interpretable, I don't know how differant Python is to C++/C# etc.....

Regards Wolfe

Author:  mstrobel [ 06 Dec 2006, 02:02 ]
Post subject:  Re: AI Scripting

Neither one would be particularly harder than the other to implement, and I'm really not worried about finding examples. I guarantee you that even if I find remotely useful AI sample code, I'll have to completely rewrite it to work with the game anyway.

Author:  SonOfMogh [ 06 Dec 2006, 05:29 ]
Post subject:  Re: AI Scripting

Personally, I'd perhaps prefer it to be the same as the rest of the code. I'd imagine a few people will learn some basic coding just they can mod this game! Would be easier to learn one language.

I imagine anyone who already knows one is that way inclined and will pick up the other easily enough...

Author:  Azhdeen [ 06 Dec 2006, 18:26 ]
Post subject:  Re: AI Scripting

C# without question. There's little point in making people be familiar with 2 seperate languages, particularly if the difficulty in utilizing each language is roughly the same.

Besides, wouldn't you have to write some sort of interface code to utilize the python?

Author:  mstrobel [ 06 Dec 2006, 19:21 ]
Post subject:  Re: AI Scripting

Azhdeen wrote:
C# without question. There's little point in making people be familiar with 2 seperate languages, particularly if the difficulty in utilizing each language is roughly the same.
I tend to agree. I wanted to at least consider Python because so many other games use it

Azhdeen wrote:
Besides, wouldn't you have to write some sort of interface code to utilize the python?
Nope, that's the beauty of IronPython.

Author:  Winterhawk [ 08 Dec 2006, 07:41 ]
Post subject:  Re: AI Scripting

As long as it works... I'm happy.. :D

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/