SRCDS Steam group


LINUX + MUSIC + MOTD
#1
I cant figuer out how to have a .mp3 to play in the motd.txt I can get it to work in windows servers and stuff no problem, but not linux.

I have tried
<embed src"motd.mp3">
<embed src"/home/hlds/dod/motd.mp3">
<embed src"home/hlds/dod/motd.mp3">
<bgsound src"motd.mp3">
<bgsound src="/home/hlds/dod/motd.mp3">
<bgsound src="home/hlds/dod/motd.mp3">
<bgsound src="//home/hlds/dod/motd.mp3">

I just cant seem to have it point in the right place for the mp3.

Any Ideas, thanks in advance !

-Blackhawk
Reply
#2
I'm not enitrely sure why this doesn't work, but you can have an embedded sound on a linux server as I had it working myself. Is apache installed on the server? If so, try creating your motd in a html page (<bgsound src="motd.mp3"> is the correct syntax), and place this and the mp3 file in the default apache dir (mine is /var/www/htdocs and then put this in your motd.txt;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<title>CStrike MOTD</title>
<meta http-equiv="Refresh" content="0;url=http://www.yourwebspace.com/MOTD.html">
</head>
<body>
</body>
</html>

If all the above doesn't work, try making the sound a .wav file rather than mp3.
Reply
#3
Well that didnt work.

I try doing like

<bgsound src="ftp://**.*.**.***.***/motd.html
will that work.

Someone please help, im like really lost on this.
Reply
#4
That won't work you are linking a HTML file to the background sound. The above *will* work if you do it right.

1. Where is your server?
2. What distro of linux is it running?
3. Where is hlds installed?

Give us some useful information and we might be able to help.
Reply
#5
yeah, sorry about that, that sometimes helps

Server is on my private nextwork, right next to the computer im useing.
Linux distro is fedora 3.0 kernel 2.6
and its /home/hlds/dod or /home/dod that is where the valve folder is and all half-life stuff.
Reply
#6
Ok firstly when I tried making an MOTD with a picture in it didn't work. I tried placing the picture in all sorts of places, but no joy. I have Apache installed and working on my server, so I just set up a redirect. If you want this to work, you will have to have Apache installed and working (I am presuming this is so, if not you will need to install/configure Apache; this shouldn't be too hard on Fedora). Once you have done this, you will have a default web server directory. Only things in this directory can be displayed by Apache. I run Slackware, so my default dir is /var/www/htdocs but if you are using Fedora, this might be different. So, once you have created your MOTD html page and got your sound file, you need to put them in the root apache directory, *NOT* your root hlds dir. If you don't have Apache installed and you struggle with this sort of thing you might want to ask how important it is to have a sound on entry in your server. I personally don't use this method any more as I have Mani installed and there is a sound triggered every time someone enters the server. Good luck!
Reply
#7
nononono, you creates a motd and puts it in your web-server root ( wwwroot / htdocs ) in the motd file on the server you need to use IFRAME in the html code so it will catch the http://www.what_ever_your_address_is.com/motd.htm


likes this one:
http://www.warzone.nu/motd/motd.htm

and the motd for the server:

Quote:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Cstrike MOTD</title>
<style type="text/css">
pre {
font-family:Verdana,Tahoma;
color:#FFB000;
}
body {
background:#000000;
margin-left:8px;
margin-top:0px;
}
a {
text-decoration: underline;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:active {
color: #FFFFFF;
}
a:hover {
color: #FFFFFF;
text-decoration: underline;
}
</style>
</head>
<body scroll="no">

</body>
<iframe src="http://www.warzone.nu/motd/motd.htm" name="main" width="500" height="600" frameborder="0" title="Meny" BORDER="0"
</iframe>

</html>
Server Admin @ http://www.warzone.nu
Webmaster @ http://www.warzone.nu
Warzone.nu a Swedish CS/BF(2) Community!
Reply
#8
Zapy Wrote:nononono, you creates a motd and puts it in your web-server root ( wwwroot / htdocs ) in the motd file on the server you need to use IFRAME in the html code so it will catch the http://www.what_ever_your_address_is.com/motd.htm

No, you do not need an IFRAME, the redirect in the MOTD.txt does that.

<meta http-equiv="Refresh" content="0;url=http://www.yourwebspace.com/MOTD.html">
Reply
#9
I normally always setup the motd.txt like this, but point it to a given web site, from the website you can do what you want.

<html>

<frameset>
<frame src="http://www.steampowered.com/status/game_stats.html">
</frameset>

</html>
Reply
#10
ok first of all im the infamous ghostface killah from Wu-tang clans server and if any1 here is familiar with that ur familiar with my music script and how i not only run a mp3 at start up but many songs to choose from thanks to mani admin.... its simple html people if the mp3 is not accessible via web then it cannot be played or atleast not this way


<bgsound src="http://www.teamwu.com/intro/teamwuintro.mp3" />


id put our ip in but our old kmart bought server is beat liek a hooker so we r gonna blow it up caz i jus rented a box and im trying to install srcds on it but having many problems feel free to look at my thread and HELP Smile

http://www.srcds.com/forums/showthread.php?tid=1043
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)