C-evo-x

A freeware empire building game.

The Protocol

> C-evo 1.2.0, C-evo-x 1.2.1

One of the foundational goals of C-evo is to be a playground and testbed for creating AIs. To make the playground open to other developers, C-evo is designed with a client-server architecture, where the game engine acts as the server and players (both human and AI) act as clients that communicate with the server using the “protocol”, a binary interface of functions, data structures and constants.

In the Game

The most authoritative version of the protocol is the Protocol.pas file included with the game source code.

Low Level AI Development

Along with C-evo 1.2.0, Steffen released an AI manual and header file so that developers can build AIs in any language that can produce a Windows DLL.

Delphi AI Development

The Delphi AI Development Kit appears to target C-evo 1.1.0, so it’s a little out of date. The Delphi Kit includes classes and utilities built on top of the low level protocol.

C# AI Development

The C# AI Development Kit is installed with C-evo 1.2.0. The code that describes the protocol in C# is spread around multiple files in the Lib\ directory.