From ad30c7a2c1f8c0aa92493d1525182163ebcd4589 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 28 May 2005 16:59:51 +0000 Subject: (svn r2372) - Fix (console): update the example scripts in the scripts/ directory to reflect the new console functionality - Fix (console): any line starting with a '#' is a comment so ignore it - Fix (console): The special variables whose value can only be set by a custom process should, also print out their newly set value there, instead of relying on the default printout which is slightly confusing. Eg after you change the value it still printed out 'current value for...' instead of 'XXX changed to...' --- scripts/autoexec.scr.example | 4 +--- scripts/on_client.scr.example | 2 +- scripts/on_dedicated.scr.example | 5 +++-- scripts/pre_dedicated.scr.example | 5 +++-- scripts/pre_server.scr.example | 3 ++- 5 files changed, 10 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/autoexec.scr.example b/scripts/autoexec.scr.example index 3057ea971..af1b66d21 100644 --- a/scripts/autoexec.scr.example +++ b/scripts/autoexec.scr.example @@ -1,6 +1,4 @@ -# # send chat messages from the console with -# # ] s i love this chat # -alias "s" "say %!" \ No newline at end of file +alias s "say %!" \ No newline at end of file diff --git a/scripts/on_client.scr.example b/scripts/on_client.scr.example index 53db9b9c2..5bbd76049 100644 --- a/scripts/on_client.scr.example +++ b/scripts/on_client.scr.example @@ -1,2 +1,2 @@ echo "Setting default network client settings..." -set name "myname" +name = "myname" diff --git a/scripts/on_dedicated.scr.example b/scripts/on_dedicated.scr.example index 53cee5a63..5465cd797 100644 --- a/scripts/on_dedicated.scr.example +++ b/scripts/on_dedicated.scr.example @@ -1,3 +1,4 @@ echo "Setting dedicated network server settings..." -set server_pw "*" -set server_name "My example dedicated gameserver" +# empty the server password +server_pw = "*" +server_name = "My example dedicated gameserver" diff --git a/scripts/pre_dedicated.scr.example b/scripts/pre_dedicated.scr.example index c4a9e2e8f..f915ba2b7 100644 --- a/scripts/pre_dedicated.scr.example +++ b/scripts/pre_dedicated.scr.example @@ -1,2 +1,3 @@ -set server_ip 0.0.0.0 -set server_port 3979 +# set default server port, and have the dedicated server listen on all ports +server_ip = 0.0.0.0 +server_port = 3979 diff --git a/scripts/pre_server.scr.example b/scripts/pre_server.scr.example index 25e8756f2..c1b6c822c 100644 --- a/scripts/pre_server.scr.example +++ b/scripts/pre_server.scr.example @@ -1 +1,2 @@ -set server_port 3979 +# set the server port to the default value +server_port = 3979 -- cgit v1.2.3-54-g00ecf