scripts/readme.txt
author peter1138
Sun, 26 Mar 2006 21:50:57 +0000
changeset 3342 cb9b5c6dd74c
parent 1065 9a1065aa729e
child 3971 77061ae9b534
permissions -rw-r--r--
(svn r4126) - Feature: A new multi-lingual multi-measuring-unit system:
- Replace miles/kilometres game option with a general measuring units option.
- Add {POWER}, {WEIGHT}, {WEIGHT_S} and {VOLUME_S} (_S for short) tags to the language/string system.
- Add SI as option for measuring units.
Language file updates to use the system will come soon.
620
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     1
Scripting
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     2
---------
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     3
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     4
OpenTTD supports scripts.
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     5
1065
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
     6
local scripts:
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
     7
 - 'autoexec.scr' is executed on gamestart [all - use this for custom aliases per ex.]
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
     8
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
     9
+network scripts:
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    10
   should be used to set client optimization settings:
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    11
 - 'on_client.scr' is executed when you join a server [all clients]
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    12
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    13
   should be used to set the servers port/ip and/or server optimization settings/patches:
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    14
 - 'pre_server.scr' is executed before the servers tcp stack is started [in-game only]
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    15
 - 'pre_dedicated.scr' is executed before the servers tcp stack is started [dedicated only]
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    16
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    17
   should be used to set the servers name, password and so on:
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    18
 - 'on_server.scr' is executed after starting a server [dedicated and in-game]
9a1065aa729e (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    19
 - 'on_dedicated.scr' is additionally executed after starting a server [dedicated only]
620
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
    20
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
    21
For examples how a script can look, check the .example examples.
080cc62ab544 (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
    22