truelight@620: Scripting truelight@620: --------- truelight@620: truelight@620: OpenTTD supports scripts. truelight@620: darkvater@1065: local scripts: darkvater@1065: - 'autoexec.scr' is executed on gamestart [all - use this for custom aliases per ex.] darkvater@1065: darkvater@1065: +network scripts: darkvater@1065: should be used to set client optimization settings: darkvater@1065: - 'on_client.scr' is executed when you join a server [all clients] darkvater@1065: darkvater@1065: should be used to set the servers port/ip and/or server optimization settings/patches: darkvater@1065: - 'pre_server.scr' is executed before the servers tcp stack is started [in-game only] darkvater@1065: - 'pre_dedicated.scr' is executed before the servers tcp stack is started [dedicated only] darkvater@1065: darkvater@1065: should be used to set the servers name, password and so on: darkvater@1065: - 'on_server.scr' is executed after starting a server [dedicated and in-game] darkvater@1065: - 'on_dedicated.scr' is additionally executed after starting a server [dedicated only] truelight@620: truelight@620: For examples how a script can look, check the .example examples.