scripts/readme.txt
author Darkvater
Sat, 12 Aug 2006 12:35:23 +0000
branch0.4
changeset 10075 7ae6bc813772
parent 9959 984493ab6fff
permissions -rw-r--r--
(svn r5862) - Prepare 0.4 branch for release. Update readme's, bugs, installers, changelog, etc. to 0.4.8
9959
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     1
Scripting
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     2
---------
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     3
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     4
OpenTTD supports scripts.
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     5
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     6
local scripts:
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     7
 - 'autoexec.scr' is executed on gamestart [all - use this for custom aliases per ex.]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     8
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
     9
+network scripts:
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    10
   should be used to set client optimization settings:
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    11
 - 'on_client.scr' is executed when you join a server [all clients]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    12
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    13
   should be used to set the servers port/ip and/or server optimization settings/patches:
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    14
 - 'pre_server.scr' is executed before the servers tcp stack is started [in-game only]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    15
 - 'pre_dedicated.scr' is executed before the servers tcp stack is started [dedicated only]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    16
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    17
   should be used to set the servers name, password and so on:
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    18
 - 'on_server.scr' is executed after starting a server [dedicated and in-game]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    19
 - 'on_dedicated.scr' is additionally executed after starting a server [dedicated only]
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    20
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    21
For examples how a script can look, check the .example examples.
984493ab6fff (svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
matthijs
parents: -1
diff changeset
    22