Skip to content
dolly22 edited this page Oct 6, 2011 · 16 revisions

OpenTTD ServerAI (SAI) is OpenTTD modification designed for automated server processing.

Based on NoAI squirrel implementation and tweaked for dedicated server use. SAI exposes it’s own set of API classes and also makes some NoAI APIs visible for server scripts. It will allow you to move dedicated server’s logic out of the c++ code to easily editable and OpenTTD version independent squirrel scripts.

SAI was initialially developed only for my OpenTTD servers (Ex’s hard servers) which brings some limitations:

  • only dedicated server mode is supported
  • only win32 target was tested and used (but others may compile and run ok)
  • there is only incomplete documentation for SAI API and added openttd.cfg configuration values

I’m not c++ programmer, so do not expect the same code quality as original openttd code. My primary motivation was always to bring the features to servers as soon as possible and have more time to play :)

You can download precompiled windows packages (Ex's SAI scripts are included).

Clone this wiki locally