From 83bdec9b91f8bf54772db6495d2b3de18bbd36e5 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 13 Dec 2004 17:47:21 +0000 Subject: (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port' -Add: [Network] Add ip-bind ('set server_bind_ip ' in console or use scripts/pre_dedicated.scr) --- scripts/pre_dedicated.scr.example | 2 ++ scripts/pre_server.scr.example | 1 + scripts/readme.txt | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 scripts/pre_dedicated.scr.example create mode 100644 scripts/pre_server.scr.example (limited to 'scripts') 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. -- cgit v1.2.3-70-g09d2