summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 17:47:21 +0000
committertruelight <truelight@openttd.org>2004-12-13 17:47:21 +0000
commit9ced62e239c6ff424659cc1151632766d366da20 (patch)
tree01af336ac91325c4ce99a24b1968cfe7078c5e6b /scripts
parent382b924b41f1448ef5a843fd6ce07d31415afb99 (diff)
downloadopenttd-9ced62e239c6ff424659cc1151632766d366da20.tar.xz
(svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use scripts/pre_dedicated.scr)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pre_dedicated.scr.example2
-rw-r--r--scripts/pre_server.scr.example1
-rw-r--r--scripts/readme.txt2
3 files changed, 5 insertions, 0 deletions
diff --git a/scripts/pre_dedicated.scr.example b/scripts/pre_dedicated.scr.example
new file mode 100644
index 000000000..c4a9e2e8f
--- /dev/null
+++ b/scripts/pre_dedicated.scr.example
@@ -0,0 +1,2 @@
+set server_ip 0.0.0.0
+set server_port 3979
diff --git a/scripts/pre_server.scr.example b/scripts/pre_server.scr.example
new file mode 100644
index 000000000..25e8756f2
--- /dev/null
+++ b/scripts/pre_server.scr.example
@@ -0,0 +1 @@
+set server_port 3979
diff --git a/scripts/readme.txt b/scripts/readme.txt
index 99535e37c..3cd4e4c32 100644
--- a/scripts/readme.txt
+++ b/scripts/readme.txt
@@ -6,6 +6,8 @@ OpenTTD supports scripts.
- 'on_client.scr' is executed when you join a server as client
- 'on_server.scr' is executed when you start a server / dedicated server
- 'on_dedicated.scr' is additionally executed when you start a dedicated server
+ - 'pre_server.scr' is executed before the server is started
+ - 'pre_dedeicated.scr' is additionally executed when you start a dedicated server
For examples how a script can look, check the .example examples.