summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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.