OpenTTD/bin/scripts
truebrain a3dd7506d3 (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
..
autoexec.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
game_start.scr.example (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see. 2009-01-12 17:11:45 +00:00
on_client.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
on_dedicated.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
on_server.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
pre_dedicated.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
pre_server.scr.example (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00
readme.txt (svn r7759) -Merge: makefile rewrite. This merge features: 2007-01-02 19:19:48 +00:00

readme.txt

Scripting
---------

OpenTTD supports scripts.

local scripts:
 - 'autoexec.scr' is executed on gamestart [all - use this for custom aliases per ex.]

+network scripts:
   should be used to set client optimization settings:
 - 'on_client.scr' is executed when you join a server [all clients]

   should be used to set the servers port/ip and/or server optimization settings/patches:
 - 'pre_server.scr' is executed before the servers tcp stack is started [in-game only]
 - 'pre_dedicated.scr' is executed before the servers tcp stack is started [dedicated only]

   should be used to set the servers name, password and so on:
 - 'on_server.scr' is executed after starting a server [dedicated and in-game]
 - 'on_dedicated.scr' is additionally executed after starting a server [dedicated only]

For examples how a script can look, check the .example examples.