Posts: 33
Threads: 4
Joined: May 2005
Reputation:
0
06-14-2005, 04:01 PM
(This post was last modified: 06-14-2005, 04:02 PM by [Ph34r]Blackhawk.)
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
Posts: 40
Threads: 1
Joined: Mar 2005
Reputation:
0
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.
Posts: 33
Threads: 4
Joined: May 2005
Reputation:
0
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.
Posts: 40
Threads: 1
Joined: Mar 2005
Reputation:
0
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.
Posts: 33
Threads: 4
Joined: May 2005
Reputation:
0
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.
Posts: 40
Threads: 1
Joined: Mar 2005
Reputation:
0
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!
Posts: 2
Threads: 0
Joined: Jun 2005
Reputation:
0
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>