Quote:
MaxWilson said:
Actually, I really like that .dll idea. The thing I like about interfacing through .2h and .trn files is that the infrastructure is already there, and you could write your AI in any language--but there are also concerns about possible hacks. A .dll could still implement the AI in another language by spawning an AI process and communicating with it through a pipe.
-Max
|
Yeah, you've got a point about hacks.
Ok, a separate .exe that links a .dll that provides an API for dealing with the world, reading the .trn file, writing the .2h file etc. No data it's not allowed will even be in it's memory space. Have the main game engine read in the .2h file and check the legality of the orders in it.
To help things along I would suggest releasing the source for the AI. It wouldn't cost any sales--without a Dominions game the code is worthless.