scripts/readme.txt
author bjarni
Sat, 10 Dec 2005 11:16:45 +0000
changeset 2736 1ea068235989
parent 1065 0f8760146009
child 3971 2116cd6db7fd
permissions -rw-r--r--
(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)
you can still use SDL drivers if you like and you have to run "make upgradeconf" to start using the cocoa drivers (or manually write WITH_COCOA:=1)
since SDL breaks the cocoa drivers, you can't compile with both SDL and cocoa support
Using cocoa drivers makes it easier to make universal binaries and it solves:
-FS#18 [OSX] SDL is weird in universal binaries
-FS#2 [OSX] lazy pointer crash on exit
-FS#10 [OSX] linking error when linking statically to SDL 1.2.8 (needless to explain this, but it means it should be able to compile statically with the default settings now)
-[ 1215073 ] Switching to large size out of fullscreen crashes
Using SDL drivers will still have those issues though
620
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     1
Scripting
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     2
---------
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     3
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     4
OpenTTD supports scripts.
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
     5
1065
0f8760146009 (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:
0f8760146009 (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.]
0f8760146009 (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
     8
0f8760146009 (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:
0f8760146009 (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:
0f8760146009 (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]
0f8760146009 (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    12
0f8760146009 (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:
0f8760146009 (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]
0f8760146009 (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]
0f8760146009 (svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
darkvater
parents: 644
diff changeset
    16
0f8760146009 (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:
0f8760146009 (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]
0f8760146009 (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
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
    20
c9050bce280f (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.
c9050bce280f (svn r1050) -Fix: [Network] Scripts are no longer under revision control
truelight
parents:
diff changeset
    22