Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding

Closed Thread
 
Thread Tools Display Modes
Old 07-07-2009, 05:57 PM   #1
eaxs

eaxs's Avatar
 
Join Date: May 2008
Location: Germany
Posts: 2,437
Default Server-side Message of the day script

If you are running a Savage 2 server, this script allows you to add messages of the day. It is very easy to install and does not change the gameplay or any maps at all. And furthermore...it runs on every platform; win, linux, mac server...if savage 2 works, this script will work too.


Installation
First, download the motd.zip and unpack the motd.cfg on your server into your
"documents/savage2/game" folder (there should be also a file called "startup.cfg").

If your game server is currently running, you have to shut it down for a second to make some small changes:

Open the "startup.cfg" and add the following lines at the end of the file:
Quote:
// START MOTD CONFIG
SetSave motd_interval "60000"
SetSave motd_MaxCount "10"
SetSave motd_run "1"
SetSave motd_msg1 "Message 1"
SetSave motd_msg2 "Message 2"
SetSave motd_msg3 "Message 3"
SetSave motd_msg4 "Message 4"
SetSave motd_msg5 "Message 5"
SetSave motd_msg6 "Message 6"
SetSave motd_msg7 "Message 7"
SetSave motd_msg8 "Message 8"
SetSave motd_msg9 "Message 9"
SetSave motd_msg10 "Message 10"
exec motd.cfg
// END MOTD CONFIG
That is all you basically have to do. The variables mentioned above can be changed to whatever you want. I will explain that below:

Configuration

SetSave motd_interval "60000"
This is the interval in milliseconds in which a random message will appear. 60000ms = 1 minute.

SetSave motd_MaxCount "10"
This is the amount of maximum messages you want to display. If you need more than 10, you'll also have to edit the motd.cfg

SetSave motd_run "1"
This defines whether the motd is turned on or off.

SetSave motd_msg1 "Message 1"
etc...

Here you can define the messages you want to display. You can also use colorcodes such as
^r = red
^g = green
etc.

exec motd.cfg
This includes the motd script. It is important that this command is placed after the other config settings above


Changes on the fly through SSH/in-game console
If you want to change the script through SSH, simply execute the command examples below.
If you want to do this through the in-game console, you have to type:
Quote:
remote <remote_pass> <command>
Where <remote_pass> is your remote password, and <command> is one of the command examples below.

Stopping the motd
setsave motd_run 0

Starting the motd again, once stopped
setsave motd_run 1
exec motd.cfg

Changing a message
setsave motd_msg1 "bla"
__________________
Quote:
Originally Posted by Osleg
SELECT FROM weed INSERT INTO osleg
eaxs is offline System Specs  
Old 07-07-2009, 06:07 PM   #2
OpMindcrime

OpMindcrime's Avatar
 
Join Date: Oct 2007
Posts: 2,804
Default

Thank you eaxs, I've already said this, but you can never get too much positive feedback.
this is awesome :thumbsup:
__________________

No one expects the NEWERTH INQUISITION!!!

NEW PLAYERS:
My Alt account is GlassPrison
If you ever see me online & have any questions or would like a few tips, feel free to ask
OpMindcrime is offline System Specs  
Old 07-07-2009, 06:09 PM   #3
eaxs

eaxs's Avatar
 
Join Date: May 2008
Location: Germany
Posts: 2,437
Default

thx u
__________________
Quote:
Originally Posted by Osleg
SELECT FROM weed INSERT INTO osleg
eaxs is offline System Specs  
Old 07-08-2009, 09:11 AM   #4
Osleg

Osleg's Avatar
 
Join Date: Jan 2009
Posts: 1,117
Default

awesome work eaxs!
__________________
Quote:
Osleg: taawus disapeared
Hazza: ...and nothing of value was lost
Quote:
<booiiing> but that's osleg, he doesn't give you a warning-shot, he instantly kills you, instagib-player
Quote:
Truth about savagers:
<weik> i swear i have dreams where im having a great evening with the gf or where my parents live toa ripe old age and i have great kids and then I GET A FUCKING K2 EXCEPTION AND I CRASH TO DESKTOP AND THE DESKTOP IS BEING A FUCKING HOBO WHO IS ADDICTED TO METH AND HAS 12 CHILDREN FROM 8 DIFFERENT LADIES
Osleg is online now System Specs  
Old 07-08-2009, 09:58 AM   #5
stony

stony's Avatar
 
Join Date: Dec 2008
Location: Right among you, ladies.
Posts: 3,697
Default

What about official server status - does this affect it or would this be allowed?
__________________

(\_/) . . Download most of the REPLAYS at http://www.playsavage2.com
(O.O °o Watch stony's videos here: http://forums.savage2.com/showthread.php?t=20039
c(")("). .

Donations welcome/needed for hosting replays: click me
stony is offline System Specs  
Old 07-08-2009, 10:05 AM   #6
Osleg

Osleg's Avatar
 
Join Date: Jan 2009
Posts: 1,117
Default

it's for official servers
__________________
Quote:
Osleg: taawus disapeared
Hazza: ...and nothing of value was lost
Quote:
<booiiing> but that's osleg, he doesn't give you a warning-shot, he instantly kills you, instagib-player
Quote:
Truth about savagers:
<weik> i swear i have dreams where im having a great evening with the gf or where my parents live toa ripe old age and i have great kids and then I GET A FUCKING K2 EXCEPTION AND I CRASH TO DESKTOP AND THE DESKTOP IS BEING A FUCKING HOBO WHO IS ADDICTED TO METH AND HAS 12 CHILDREN FROM 8 DIFFERENT LADIES
Osleg is online now System Specs  
Old 07-08-2009, 11:08 AM   #7
stony

stony's Avatar
 
Join Date: Dec 2008
Location: Right among you, ladies.
Posts: 3,697
Default

Allright - then S2 (e.g. Mercenary) would choose the messages to be sent to all servers alltogether?
__________________

(\_/) . . Download most of the REPLAYS at http://www.playsavage2.com
(O.O °o Watch stony's videos here: http://forums.savage2.com/showthread.php?t=20039
c(")("). .

Donations welcome/needed for hosting replays: click me
stony is offline System Specs  
Old 07-08-2009, 11:19 AM   #8
Osleg

Osleg's Avatar
 
Join Date: Jan 2009
Posts: 1,117
Default

as far as i know
__________________
Quote:
Osleg: taawus disapeared
Hazza: ...and nothing of value was lost
Quote:
<booiiing> but that's osleg, he doesn't give you a warning-shot, he instantly kills you, instagib-player
Quote:
Truth about savagers:
<weik> i swear i have dreams where im having a great evening with the gf or where my parents live toa ripe old age and i have great kids and then I GET A FUCKING K2 EXCEPTION AND I CRASH TO DESKTOP AND THE DESKTOP IS BEING A FUCKING HOBO WHO IS ADDICTED TO METH AND HAS 12 CHILDREN FROM 8 DIFFERENT LADIES
Osleg is online now System Specs  
Old 07-08-2009, 01:43 PM   #9
eaxs

eaxs's Avatar
 
Join Date: May 2008
Location: Germany
Posts: 2,437
Default

Merc won't be using this for official servers. He will use RedOmen's suggestion as it allows for a lot more than just giving out messages to the server.

I don't know if you can use my script on any official server anyway. But I guess so, because it does not alter any exising configurations or gameplay. But ask Merc first though...no guarantee from my side that this is allowed

And of course, if your server is unofficial, you can do whatever you want and use my script if you like
__________________
Quote:
Originally Posted by Osleg
SELECT FROM weed INSERT INTO osleg
eaxs is offline System Specs  
Old 07-10-2009, 01:49 AM   #10
eaxs

eaxs's Avatar
 
Join Date: May 2008
Location: Germany
Posts: 2,437
Default

Hey quick update on this matter:
You are allowed to install this script on your official server. I'm using it on the s2howto.com server right now
__________________
Quote:
Originally Posted by Osleg
SELECT FROM weed INSERT INTO osleg
eaxs is offline System Specs  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:26 PM.


Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.